Configuration
Authentication
Section titled “Authentication”jtk supports two authentication methods: interactive login and environment variables.
Interactive Login
Section titled “Interactive Login”jtk authYou will be prompted for your Jira domain, email, and API token. The command also prints the exact granular scopes to select when creating your token.
Credentials are saved to ~/.config/jtk/credentials.json with restricted file permissions.
API Token Scopes
Section titled “API Token Scopes”Create a Jira app token at id.atlassian.com. Select “Jira” as the app, then add granular scopes.
read:meread:jql:jiraread:issue-details:jiraread:issue-type:jiraread:issue-link:jiraread:issue-worklog:jiraread:issue.changelog:jiraread:issue.transition:jiraread:comment:jiraread:attachment:jiraread:project:jiraread:project-version:jiraread:status:jiraread:user:jiraread:permission:jiraread:board-scope:jira-softwareread:sprint:jira-softwareread:dev-info:jirawrite:issue:jirawrite:comment:jirawrite:issue-worklog:jirawrite:issue-link:jirawrite:attachment:jirawrite:sprint:jira-softwaredelete:issue:jiraCheck your auth status:
jtk statusLog out and remove stored credentials:
jtk logoutEnvironment Variables
Section titled “Environment Variables”For CI/CD or ephemeral environments, set these environment variables:
export JIRA_DOMAIN="mycompany"export JIRA_EMAIL="me@example.com"export JIRA_API_TOKEN="ATATT3x..."Environment variables take priority over stored credentials.
Credentials File Format
Section titled “Credentials File Format”{ "domain": "mycompany", "email": "me@example.com", "api_token": "ATATT3x...", "saved_at": "2025-01-15T10:30:00Z"}MCP Client Configuration
Section titled “MCP Client Configuration”To use jtk as an MCP server, configure your AI client:
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{ "mcpServers": { "jtk": { "command": "jtk", "args": ["mcp"] } }}claude mcp add jtk -- jtk mcpAdd to .cursor/mcp.json in your project root:
{ "mcpServers": { "jtk": { "command": "jtk", "args": ["mcp"] } }}If you prefer environment variables over stored credentials:
{ "mcpServers": { "jtk": { "command": "jtk", "args": ["mcp"], "env": { "JIRA_DOMAIN": "mycompany", "JIRA_EMAIL": "me@example.com", "JIRA_API_TOKEN": "ATATT3x..." } } }}Disabling Tools
Section titled “Disabling Tools”You can disable specific MCP tools via the JIRA_DISABLED_TOOLS environment variable:
export JIRA_DISABLED_TOOLS="manage_worklogs,manage_attachments"Or in your MCP client config:
{ "mcpServers": { "jtk": { "command": "jtk", "args": ["mcp"], "env": { "JIRA_DISABLED_TOOLS": "manage_worklogs,manage_attachments" } } }}