Metadata-Version: 2.4
Name: jira-ticket-mcp
Version: 0.1
Summary: Minimal MCP server for managing Jira Cloud tickets
Author-email: Anton Lu <anton96lu@gmail.com>
License: MIT License
        
        Copyright (c) 2026 Anton Lu
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: homepage, https://github.com/antolu/jira-ticket-mcp
Project-URL: documentation, https://github.com/antolu/jira-ticket-mcp
Project-URL: repository, https://github.com/antolu/jira-ticket-mcp
Project-URL: changelog, https://github.com/antolu/jira-ticket-mcp/releases
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: httpx>=0.28.1
Requires-Dist: jira2markdown~=0.5
Requires-Dist: marklas~=0.8.6
Requires-Dist: mcp~=1.28.1
Requires-Dist: mistune>=3.0.0
Requires-Dist: pyadf~=0.5.2
Requires-Dist: pydantic>=2.13.4
Requires-Dist: pydantic-settings>=2.14.2
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-asyncio>=1.4.0; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Requires-Dist: respx>=0.23.1; extra == "test"
Provides-Extra: doc
Requires-Dist: sphinx; extra == "doc"
Requires-Dist: myst-parser; extra == "doc"
Requires-Dist: sphinx-copybutton; extra == "doc"
Provides-Extra: dev
Requires-Dist: mypy==2.3.0; extra == "dev"
Requires-Dist: pre-commit==4.6.1; extra == "dev"
Requires-Dist: ruff==0.16.0; extra == "dev"
Dynamic: license-file

# jira-ticket-mcp

Minimal MCP server for managing Jira Cloud tickets.

The official Jira MCP server exposes a tool surface large enough to crowd out an
LLM's context. This one exposes a deliberately small, curated set of tools
covering the actions that actually get used.

## Configuration

The server reads three settings, from environment variables or from the
equivalent CLI arguments (CLI wins):

| Environment variable | CLI argument | Description |
|----------------------|--------------|-------------|
| `JIRA_BASE_URL` | `--jira-base-url` | Your Jira Cloud site, e.g. `https://example.atlassian.net` |
| `JIRA_EMAIL` | `--jira-email` | The account email the API token belongs to |
| `JIRA_API_TOKEN` | `--jira-api-token` | An API token from https://id.atlassian.com/manage-profile/security/api-tokens |

## Running

```bash
uvx jira-ticket-mcp --jira-base-url https://example.atlassian.net \
                    --jira-email you@example.com \
                    --jira-api-token "$JIRA_API_TOKEN"
```

As an MCP server entry, e.g. for Claude Code:

```json
{
  "mcpServers": {
    "jira": {
      "command": "uvx",
      "args": ["jira-ticket-mcp"],
      "env": {
        "JIRA_BASE_URL": "https://example.atlassian.net",
        "JIRA_EMAIL": "you@example.com",
        "JIRA_API_TOKEN": "..."
      }
    }
  }
}
```

## Tools

| Tool | What it does |
|------|--------------|
| `whoami` | Return the authenticated account, including its `accountId` |
| `search_issues` | Search by JQL, returning a trimmed projection rather than full issues |
| `get_issue` | Fetch one issue in full detail |
| `list_transitions` | List the status transitions currently valid for an issue |
| `create_issue` | Create an issue; `parent_key` makes it a subtask or attaches it to an epic |
| `batch_create_issues` | Create many issues, returning a per-item result |
| `edit_issue` | Change any subset of summary, description, assignee, priority, type, parent, labels |
| `remove_issue` | Delete an issue |
| `transition_issue` | Move an issue to a new status |
| `link_issues` | Link two issues with a named link type |
| `add_comment` / `list_comments` / `remove_comment` | Manage comments |

Descriptions and comments are markdown in both directions; the server converts
to and from Atlassian Document Format at the boundary.

### Shrinking the surface further

Register only the tools you need with `--tools`:

```bash
uvx jira-ticket-mcp --tools search_issues,get_issue,edit_issue
```

Unlisted tools are never registered, so they cost the caller no context.

## Notes

- Jira **Cloud** only (REST API v3). Data Center and Server are not supported.
- Epics are linked through the `parent` field, which works on team-managed
  projects. Company-managed projects use an instance-specific Epic Link custom
  field; on those, setting a parent fails with an error saying so.
- `batch_create_issues` never raises on partial failure — Jira does not roll
  back, so it reports which items landed and which did not.

## Development

```bash
pip install -e ".[test,dev]"
pytest
pre-commit run --all-files
```

## License

MIT
