jira insights mcp
An MCP server that allows management of Jira Insights (JSM) asset schemas, enabling CRUD operations for object schemas, object types, and objects through the Model Context Protocol.
An MCP server that allows management of Jira Insights (JSM) asset schemas, enabling CRUD operations for object schemas, object types, and objects through the Model Context Protocol.
A Model Context Protocol (MCP) server for managing Jira Insights (JSM) asset schemas.
Last updated: 2025-04-09
This MCP server provides tools for interacting with Jira Insights (JSM) asset schemas through the Model Context Protocol. It allows you to manage object schemas, object types, and objects in Jira Insights.
Clone the repository:
git clone https://github.com/aaronsb/jira-insights-mcp.git
cd jira-insights-mcp
Install dependencies:
npm install
Build the project:
npm run build
Build the Docker image:
./scripts/build-local.sh
To use this MCP server with Claude or other AI assistants that support the Model Context Protocol, add it to your MCP configuration using one of the following methods:
If you've built the project locally, use this configuration:
{
"mcpServers": {
"jira-insights": {
"command": "node",
"args": ["/path/to/jira-insights-mcp/build/index.js"],
"env": {
"JIRA_API_TOKEN": "your-api-token",
"JIRA_EMAIL": "[email protected]",
"JIRA_HOST": "https://your-domain.atlassian.net",
"LOG_MODE": "strict"
}
}
}
}
If you prefer to use the Docker image (recommended for most users), use this configuration:
{
"mcpServers": {
"jira-insights": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e", "JIRA_API_TOKEN",
"-e", "JIRA_EMAIL",
"-e", "JIRA_HOST",
"ghcr.io/aaronsb/jira-insights-mcp:latest"
],
"env": {
"JIRA_API_TOKEN": "your-api-token",
"JIRA_EMAIL": "[email protected]",
"JIRA_HOST": "https://your-domain.atlassian.net"
}
}
}
}
This Docker-based configuration pulls the latest image from GitHub Container Registry and runs it with the necessary environment variables.
For local development and testing:
# Build the Docker image
./scripts/build-local.sh
# Run the Docker container
JIRA_API_TOKEN=your_token JIRA_EMAIL=your_email JIRA_HOST=your_host ./scripts/run-local.sh
Manage Jira Insights object schemas with CRUD operations.
{
"operation": "list",
"maxResults": 10
}
Manage Jira Insights object types with CRUD operations.
{
"operation": "list",
"schemaId": "1",
"maxResults": 20
}
Manage Jira Insights objects with CRUD operations and AQL queries.
{
"operation": "query",
"aql": "objectType = "Application"",
"maxResults": 10
}
The MCP server provides several resources for accessing Jira Insights data:
jira-insights://instance/summary
- High-level statistics about the Jira Insights instancejira-insights://aql-syntax
- Comprehensive guide to Assets Query Language (AQL) syntax with examplesjira-insights://schemas/all
- Complete list of all schemas with their object typesjira-insights://schemas/{schemaId}/full
- Complete definition of a specific schema including object typesjira-insights://schemas/{schemaId}/overview
- Overview of a specific schema including metadata and statisticsjira-insights://object-types/{objectTypeId}/overview
- Overview of a specific object type including attributes and statisticsWe are working on several improvements to enhance the functionality and usability of the Jira Insights MCP:
Operation-specific examples to help users correct issues
AQL Query Improvements
Better error messages for query issues
Attribute Discovery Enhancement
Validation rules in templates
Example Query Library
Query templates for common operations
Improved Documentation
For more details on the planned improvements, see:
- TODO.md
- Comprehensive todo list with all tasks organized by priority
- IMPLEMENTATION_PLAN.md
- Detailed implementation plans for the high-priority improvements
- HANDLER_IMPROVEMENTS.md
- Specific changes needed for each handler file
- IMPROVEMENT_SUMMARY.md
- Concise summary of the planned improvements
- docs/API_MIGRATION_TODO.md
- Status of the API migration and planned improvements
npm run build
: Build the TypeScript codenpm run lint
: Run ESLintnpm run lint:fix
: Run ESLint with auto-fixnpm run test
: Run testsnpm run watch
: Watch for changes and rebuildnpm run generate-diagrams
: Generate TypeScript dependency diagrams./scripts/build-local.sh
: Build the Docker image./scripts/run-local.sh
: Run the Docker containerName = "John Doe"
AND
, OR
(not and
, or
)Check that object types and attributes exist in your schema
Object Type Attribute Issues
Check that you have permissions to view the attributes
API Connection Issues
MIT