Skip to main content
Glama
Jira Product Discovery MCP

Jira Product Discovery MCP

by aavaz-ai

Jira Product Discovery MCP

An MCP server for Jira Cloud and Jira Product Discovery. It exposes the existing generic Jira REST tools together with typed native JPD Insight and attachment operations.

Package: @enterpret/jira-product-discovery-mcp

Tool surface

The server exposes exactly eight tools:

Tool

Purpose

jira_get

Read from a Jira REST endpoint.

jira_post

Create through a Jira REST endpoint.

jira_put

Replace through a Jira REST endpoint.

jira_patch

Partially update through a Jira REST endpoint.

jira_delete

Delete through a Jira REST endpoint.

jira_add_attachment

Upload one UTF-8 or base64 attachment to an issue or JPD idea.

jira_list_jpd_insights

List native JPD Insights for an idea key.

jira_create_jpd_insight

Create a native JPD Insight with linked evidence in its description.

The generic tools preserve compatibility with Jira REST API v3. Callers provide only the REST path, query parameters, and request body; authentication remains server-owned.

Related MCP server: JIRA MCP Server

Authentication

OAuth bearer mode

Enterpret Agent uses Nango to refresh the Jira 3LO connection and injects the short-lived access token into the MCP subprocess:

ATLASSIAN_OAUTH_BEARER=<access-token> \
  npx -y @enterpret/jira-product-discovery-mcp@0.2.0

Native JPD Insight tools require this mode. They do not accept tokens, Atlassian IDs, GraphQL, or OAuth client IDs as tool arguments.

Set ATLASSIAN_CLOUD_ID when the bearer can access more than one Atlassian site. The server verifies the configured cloud ID against Atlassian's accessible resources and otherwise fails closed on ambiguous multi-site connections.

Jira API token mode

The generic Jira REST tools and attachment tool also support Jira API-token authentication:

ATLASSIAN_SITE_NAME=your-instance
ATLASSIAN_USER_EMAIL=you@example.com
ATLASSIAN_API_TOKEN=<api-token>

This mode does not support native JPD Insights.

MCP configuration

The default transport is stdio:

{
	"mcpServers": {
		"jira-product-discovery": {
			"command": "npx",
			"args": ["-y", "@enterpret/jira-product-discovery-mcp@0.2.0"],
			"env": {
				"ATLASSIAN_OAUTH_BEARER": "<access-token>"
			}
		}
	}
}

Supply secrets through the subprocess environment, never through MCP tool arguments or command-line flags.

Native JPD Insights

jira_list_jpd_insights accepts a human-friendly idea key such as MDP-2. The server resolves the selected Atlassian cloud, project ID, and issue ID, then constructs the fixed Polaris ARIs internally.

jira_create_jpd_insight accepts:

  • ideaKey

  • description

  • quote

  • sourceUrl (HTTPS)

  • sourceTitle

It creates a native JPD Insight with an Atlassian Document Format description containing the summary, quote, and linked source. It does not create a structured source snippet and does not require ATLASSIAN_OAUTH_CLIENT_ID.

Creation is intentionally marked non-idempotent. Retrying a create after an ambiguous provider response can create a duplicate Insight.

Native Insights currently use Atlassian's experimental Polaris GraphQL surface. The server exposes only fixed, typed list and create operations; arbitrary GraphQL and raw Polaris input are not available.

See JPD snippet representations for the difference between description-only Insights and structured source snippets.

Attachments

jira_add_attachment accepts an issue or idea key, filename, content, optional encoding (utf8 or base64), and optional MIME type. The server builds Jira's multipart request and limits decoded files to 10 MiB. Repeated calls create separate Jira attachments.

Data handling

Generic Jira REST calls retain the inherited raw-response diagnostics under /tmp/mcp/jira-product-discovery-mcp/. These files can contain Jira request and response payloads and should be handled accordingly. Attachment uploads are marked sensitive, so attachment bytes and returned content URLs are excluded from debug and raw-response output.

Large generic Jira responses are truncated for the MCP caller and include the corresponding raw-response path. Jira pagination, field selection, and the generic tools' jq filter can be used to request a smaller result.

Development

Requires Node.js 18 or newer.

npm ci
npm run format:check
npm run lint
npm run build
npm test -- --runInBand
npm pack --dry-run

Tests use mocked provider responses for JPD and attachment operations. Do not use production Atlassian credentials for local test runs.

Releasing

Publishing is manual and never runs on a push to main. The release workflow validates the candidate, packs once, smoke-tests that exact tarball through npx, and publishes the same artifact with npm Trusted Publishing provenance.

See the release runbook for the one-time npm bootstrap, Trusted Publishing configuration, release gates, and post-publication verification.

License and ancestry

ISC licensed. This repository retains the generic Jira foundation and history from Andi Ashari's Jira MCP project and adds Enterpret's Jira Product Discovery integration. See LICENSE.

Available Tools

8 tools
jira_add_attachmentAdd Jira AttachmentA

Upload one attachment to a Jira issue or Jira Product Discovery idea.

The server converts UTF-8 or base64 content into Jira's required multipart request. Binary files must use encoding=base64. Uploading the same file twice creates two Jira attachments.

Inputs: content (required), filename (required), issueKey (required), encoding, +1 more. Returns: issueKey, attachment

jira_create_jpd_insightCreate Jira Product Discovery InsightA

Create a native Jira Product Discovery Insight with supporting evidence in its description.

The server builds a fixed ADF description containing the summary, customer quote, and linked source. Creation uses the existing Jira OAuth bearer and does not create a structured snippet.

Inputs: quote (required), ideaKey (required), sourceUrl (required), description (required), +1 more. Returns: idea, site, status, insight

jira_deleteJira DELETE RequestA

Delete Jira resources. Returns TOON format by default.

Output format: TOON (default) or JSON (outputFormat: "json")

Common operations:

  1. Delete issue: /rest/api/3/issue/{issueIdOrKey} Query param: deleteSubtasks=true to delete subtasks

  2. Delete comment: /rest/api/3/issue/{issueIdOrKey}/comment/{commentId}

  3. Delete worklog: /rest/api/3/issue/{issueIdOrKey}/worklog/{worklogId}

  4. Delete attachment: /rest/api/3/attachment/{attachmentId}

  5. Remove watcher: /rest/api/3/issue/{issueIdOrKey}/watchers Query param: accountId={accountId}

Note: Most DELETE endpoints return 204 No Content on success.

API reference: https://developer.atlassian.com/cloud/jira/platform/rest/v3/

Inputs: path (required), jq, queryParams, outputFormat.

jira_getJira GET RequestA

Read any Jira data. Returns TOON format by default (30-60% fewer tokens than JSON).

IMPORTANT - Cost Optimization:

  • ALWAYS use jq param to filter response fields. Unfiltered responses are very expensive!

  • Use maxResults query param to restrict result count (e.g., maxResults: "5")

  • If unsure about available fields, first fetch ONE item with maxResults: "1" and NO jq filter to explore the schema, then use jq in subsequent calls

Schema Discovery Pattern:

  1. First call: path: "/rest/api/3/search/jql", queryParams: {"maxResults": "1", "jql": "project=PROJ"} (no jq) - explore available fields

  2. Then use: jq: "issues[*].{key: key, summary: fields.summary, status: fields.status.name}" - extract only what you need

Output format: TOON (default, token-efficient) or JSON (outputFormat: "json")

Common paths:

  • /rest/api/3/project - list all projects

  • /rest/api/3/project/{projectKeyOrId} - get project details

  • /rest/api/3/search/jql - search issues with JQL (use jql query param). NOTE: /rest/api/3/search is deprecated!

  • /rest/api/3/issue/{issueIdOrKey} - get issue details

  • /rest/api/3/issue/{issueIdOrKey}/comment - list issue comments

  • /rest/api/3/issue/{issueIdOrKey}/worklog - list issue worklogs

  • /rest/api/3/issue/{issueIdOrKey}/transitions - get available transitions

  • /rest/api/3/user/search - search users (use query param)

  • /rest/api/3/status - list all statuses

  • /rest/api/3/issuetype - list issue types

  • /rest/api/3/priority - list priorities

JQ examples: issues[*].key, issues[0], issues[*].{key: key, summary: fields.summary}

Example JQL queries: project=PROJ, assignee=currentUser(), status="In Progress", created >= -7d

API reference: https://developer.atlassian.com/cloud/jira/platform/rest/v3/

Inputs: path (required), jq, queryParams, outputFormat.

jira_list_jpd_insightsList Jira Product Discovery InsightsA
Read-onlyIdempotent

List native Jira Product Discovery Insights for an idea key.

The server resolves the Jira site, project, issue IDs, and Polaris ARIs. It returns a normalized response and never exposes raw GraphQL or provider envelopes.

Inputs: ideaKey (required). Returns: idea, site, insights

jira_patchJira PATCH RequestA

Partially update Jira resources. Returns TOON format by default.

IMPORTANT - Cost Optimization: Use jq param to filter response fields.

Output format: TOON (default) or JSON (outputFormat: "json")

Common operations:

  1. Update issue fields: /rest/api/3/issue/{issueIdOrKey} body: {"fields": {"summary": "Updated title"}} (only updates specified fields)

  2. Update comment: /rest/api/3/issue/{issueIdOrKey}/comment/{commentId} body: {"body": {"type": "doc", "version": 1, "content": [{"type": "paragraph", "content": [{"type": "text", "text": "Updated comment"}]}]}}

  3. Update worklog: /rest/api/3/issue/{issueIdOrKey}/worklog/{worklogId} body: {"timeSpentSeconds": 7200}

Note: PATCH only updates the fields you specify, leaving others unchanged.

API reference: https://developer.atlassian.com/cloud/jira/platform/rest/v3/

Inputs: body (required), path (required), jq, queryParams, +1 more.

jira_postJira POST RequestA

Create Jira resources. Returns TOON format by default (token-efficient).

IMPORTANT - Cost Optimization:

  • Use jq param to extract only needed fields from response (e.g., jq: "{key: key, id: id}")

  • Unfiltered responses include all metadata and are expensive!

Output format: TOON (default) or JSON (outputFormat: "json")

Common operations:

  1. Create issue: /rest/api/3/issue body: {"fields": {"project": {"key": "PROJ"}, "summary": "Issue title", "issuetype": {"name": "Task"}, "description": {"type": "doc", "version": 1, "content": [{"type": "paragraph", "content": [{"type": "text", "text": "Description"}]}]}}}

  2. Add comment: /rest/api/3/issue/{issueIdOrKey}/comment body: {"body": {"type": "doc", "version": 1, "content": [{"type": "paragraph", "content": [{"type": "text", "text": "Comment text"}]}]}}

  3. Add worklog: /rest/api/3/issue/{issueIdOrKey}/worklog body: {"timeSpentSeconds": 3600, "comment": {"type": "doc", "version": 1, "content": [{"type": "paragraph", "content": [{"type": "text", "text": "Work done"}]}]}}

  4. Transition issue: /rest/api/3/issue/{issueIdOrKey}/transitions body: {"transition": {"id": "31"}}

  5. Add attachment: /rest/api/3/issue/{issueIdOrKey}/attachments Use the typed jira_add_attachment tool, which constructs the required multipart request.

API reference: https://developer.atlassian.com/cloud/jira/platform/rest/v3/

Inputs: body (required), path (required), jq, queryParams, +1 more.

jira_putJira PUT RequestA

Replace Jira resources (full update). Returns TOON format by default.

IMPORTANT - Cost Optimization: Use jq param to extract only needed fields from response

Output format: TOON (default) or JSON (outputFormat: "json")

Common operations:

  1. Update issue (full): /rest/api/3/issue/{issueIdOrKey} body: {"fields": {"summary": "New title", "description": {...}, "assignee": {"accountId": "..."}}}

  2. Update project: /rest/api/3/project/{projectIdOrKey} body: {"name": "New Project Name", "description": "Updated description"}

  3. Set issue property: /rest/api/3/issue/{issueIdOrKey}/properties/{propertyKey} body: {"value": "property value"}

Note: PUT replaces the entire resource. For partial updates, prefer PATCH.

API reference: https://developer.atlassian.com/cloud/jira/platform/rest/v3/

Inputs: body (required), path (required), jq, queryParams, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool maps to a distinct HTTP method or unique action (get, post, put, patch, delete, add_attachment, list insights, create insight). Put vs patch could be confused, but descriptions clearly separate full replacement from partial updates, leaving no ambiguity.

    Naming Consistency5/5

    All tool names follow a consistent jira_<verb>_<object> pattern in snake_case, using clear verbs (get, post, put, patch, delete, add, list, create). The naming is uniform and predictable with no mixed casing or vague terms.

    Tool Count5/5

    With 8 tools, the set is well-scoped for a Jira/Product Discovery server, covering full CRUD, attachment upload, and Product Discovery insights. This falls comfortably in the ideal 3-15 range and each tool serves a distinct purpose.

    Completeness4/5

    Generic Jira operations are well covered via jira_get (search), post (create), put/patch (updates), and delete, including comments, worklogs, and attachments. The JPD insight tools add create and list, but lack update/delete for insights; however, generic verbs may cover some of that. The core surface is strong with minor gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers