Skip to content

Configuration

jtk supports two authentication methods: interactive login and environment variables.

Terminal window
jtk auth

You 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.

Create a Jira app token at id.atlassian.com. Select “Jira” as the app, then add granular scopes.

read:me
read:jql:jira
read:issue-details:jira
read:issue-type:jira
read:issue-link:jira
read:issue-worklog:jira
read:issue.changelog:jira
read:issue.transition:jira
read:comment:jira
read:attachment:jira
read:project:jira
read:project-version:jira
read:status:jira
read:user:jira
read:permission:jira
read:board-scope:jira-software
read:sprint:jira-software
read:dev-info:jira

Check your auth status:

Terminal window
jtk status

Log out and remove stored credentials:

Terminal window
jtk logout

For CI/CD or ephemeral environments, set these environment variables:

Terminal window
export JIRA_DOMAIN="mycompany"
export JIRA_EMAIL="me@example.com"
export JIRA_API_TOKEN="ATATT3x..."

Environment variables take priority over stored credentials.

{
"domain": "mycompany",
"email": "me@example.com",
"api_token": "ATATT3x...",
"saved_at": "2025-01-15T10:30:00Z"
}

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"]
}
}
}

You can disable specific MCP tools via the JIRA_DISABLED_TOOLS environment variable:

Terminal window
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"
}
}
}
}