jira-api-mcp-wrapper
An MCP server that talks directly to Jira Cloud REST API v3 using static credentials and exposes tools for discovering customfield IDs, resolving account IDs, and updating issue fields including ADF JSON.
README
jira-api-mcp-wrapper
An MCP server (stdio) that talks directly to Jira Cloud REST API v3 using static credentials (no OAuth flow) and exposes a small set of deterministic tools for:
- discovering
customfield_*IDs - resolving
accountIdfor user picker fields - updating issue fields (including ADF JSON)
Testing
Running Tests
Unit and Contract Tests (default, no network):
npm test
This runs all unit tests and contract tests without making any network calls. These tests use mocked HTTP clients and are deterministic.
Integration Tests (requires Jira credentials):
Integration tests make real HTTP calls to Jira Cloud. They are split into read-only (smoke) and write tests.
Read-only smoke tests:
npm run test:integration:smoke
Requires:
JIRA_BASE_URL(orJIRA_URL)JIRA_EMAILandJIRA_API_TOKEN, ORJIRA_BEARER_TOKEN
Optional variables:
JIRA_TEST_USER_QUERY: User search queryJIRA_TEST_JQL: JQL query for search testJIRA_TEST_ISSUE_KEY: Issue key for get/transitions tests
Write tests (creates real data):
JIRA_INTEGRATION_WRITE_TESTS=1 npm run test:integration:write
Requires:
- All smoke test variables
JIRA_TEST_PROJECT_KEY: Project key for creating test issuesJIRA_TEST_TRANSITION_ID(optional): Transition ID for transition test
⚠️ Warning: Write tests create real issues and comments in your Jira instance. They use the tag [mcp-wrapper-test] in summaries for easy identification and cleanup.
All integration tests:
npm run test:integration
Test Structure
tests/unit/: Unit tests for individual components (no network)tests/contract/: Contract tests for MCP tool handlers (no network, uses fake Jira client)tests/integration/smoke.test.js: Read-only integration teststests/integration/write.test.js: Write integration tests (guarded by env var)
Configuration
Set environment variables (pick one auth method):
Mapping from ga-jira/mcp.json
JIRA_URL→JIRA_BASE_URL(same value)JIRA_EMAIL→JIRA_EMAILJIRA_API_TOKEN→JIRA_API_TOKEN
Option A: Basic auth (Jira Cloud email + API token)
JIRA_BASE_URL(example:https://your-domain.atlassian.net)JIRA_EMAIL(example:you@company.com)JIRA_API_TOKEN(create in Atlassian account settings)
Option B: Bearer token
JIRA_BASE_URLJIRA_BEARER_TOKEN
Cursor MCP config example
Add to your Cursor MCP config (typically ~/.cursor/mcp.json):
{
"mcpServers": {
"jira-api-mcp-wrapper": {
"command": "node",
"args": [
"/path/to/jira-api-mcp-wrapper/dist/index.js"
],
"env": {
"JIRA_BASE_URL": "https://your-domain.atlassian.net",
"JIRA_EMAIL": "you@company.com",
"JIRA_API_TOKEN": "your_api_token"
}
}
}
}
Tools
jira_list_fields
Lists Jira fields (including customfield_*) via /rest/api/3/field.
jira_search_issues_jql
Search issues using JQL via /rest/api/3/search.
jira_create_issue
Create an issue via /rest/api/3/issue (provide fields including project + issuetype + summary, plus any customfield_*).
jira_search_users
Searches users and returns accountId candidates via /rest/api/3/user/search.
jira_resolve_user_account_id
Resolves a best-match user and returns the chosen accountId (useful for user picker custom fields).
jira_get_issue
Fetches an issue via /rest/api/3/issue/{key}.
jira_update_issue_fields
Updates issue fields via /rest/api/3/issue/{key} PUT.
- Supports
customfield_*updates - Supports sending raw ADF JSON for ADF-backed fields (e.g.,
descriptionand some multi-line custom fields) - Includes optional flags:
notifyUsersoverrideScreenSecurityoverrideEditableFlagvalidateAdf(default true)
jira_add_comment
Add a comment via /rest/api/3/issue/{key}/comment (wrapper accepts plain text or ADF doc).
jira_get_transitions
List available transitions via /rest/api/3/issue/{key}/transitions.
jira_transition_issue
Apply a transition via /rest/api/3/issue/{key}/transitions (use jira_get_transitions to find transitionId).
jira_bulk_create_issues
Bulk create issues via POST /rest/api/3/issue/bulk.
Input is an array of issueUpdates entries, each with:
fields: issue creation fields (must includeproject,issuetype,summary, etc.)update(optional): Jira update object
jira_bulk_get_editable_fields
Get the bulk-editable field IDs for a set of issues via GET /rest/api/3/bulk/issues/fields.
Use the returned field IDs as selectedActions for jira_bulk_edit_issues.
jira_bulk_edit_issues
Bulk edit issues via POST /rest/api/3/bulk/issues/fields.
Requires:
selectedIssueIdsOrKeys: issue IDs or keys to editselectedActions: field IDs to edit (usejira_bulk_get_editable_fields)editedFieldsInput: object containing values to apply (must align withselectedActions)
Practical examples
Set a user picker field (e.g. customfield_10246)
- Resolve accountId:
- call
jira_resolve_user_account_idwithquery="you@company.com"
- Update the issue:
- call
jira_update_issue_fieldswith:issueKey="WOR-2367"fields={ "customfield_10246": { "accountId": "<accountId>" } }
Set an ADF field
If your local record already stores ADF JSON, send it directly as the field value (must include type:"doc", version, and content).
Notes / caveats
- Jira Cloud frequently does not expose email addresses in API responses depending on org privacy settings. This wrapper supports resolving by display name as a fallback.
- For many “people picker” fields, Jira Cloud expects
accountId(not email).
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。