Jira Insights MCP
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Integrations
Enables interaction with Atlassian's Jira Insights service for asset management, supporting schema operations, object type management, and object manipulation through the Atlassian API.
Provides tools for managing Jira Insights (JSM) asset schemas, including CRUD operations for object schemas, object types, and objects, as well as querying objects using Atlassian Query Language (AQL).
Jira Insights MCP
A Model Context Protocol (MCP) server for managing Jira Insights (JSM) asset schemas.
Last updated: 2025-03-20
Overview
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.
Features
- Manage object schemas (create, read, update, delete)
- Manage object types (create, read, update, delete)
- Manage objects (create, read, update, delete)
- Query objects using AQL (Atlassian Query Language)
Prerequisites
- Node.js 20 or later
- Docker (for containerized deployment)
- Jira Insights instance with API access
- Jira API token with appropriate permissions
Installation
Local Development
- Clone the repository:Copy
- Install dependencies:Copy
- Build the project:Copy
Docker
Build the Docker image:
Usage
MCP Configuration
To use this MCP server with Claude or other AI assistants that support the Model Context Protocol, add it to your MCP configuration:
Running Locally for Development
For local development and testing:
Available Tools
manage_jira_insight_schema
Manage Jira Insights object schemas with CRUD operations.
manage_jira_insight_object_type
Manage Jira Insights object types with CRUD operations.
manage_jira_insight_object
Manage Jira Insights objects with CRUD operations and AQL queries.
Available Resources
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 statistics
Planned Improvements
We are working on several improvements to enhance the functionality and usability of the Jira Insights MCP:
High Priority Improvements
- Enhanced Error Handling
- More detailed error messages with specific validation issues
- Suggested fixes for common errors
- Operation-specific examples to help users correct issues
- AQL Query Improvements
- Validation and formatting utilities for AQL queries
- Schema-specific example queries
- Better error messages for query issues
- Attribute Discovery Enhancement
- Improved attribute retrieval for object types
- Caching for better performance
- Better handling of the "expand" parameter
Medium Priority Improvements
- Object Template Generation
- Templates for creating objects based on object types
- Type-specific placeholder generation
- Validation rules in templates
- Example Query Library
- Schema-specific example queries
- Context-aware query suggestions
- Query templates for common operations
- Improved Documentation
- Enhanced AQL syntax documentation
- Operation-specific documentation
- Common error scenarios and solutions
For more details on the planned improvements, see:
TODO.md
- Comprehensive todo list with all tasks organized by priorityIMPLEMENTATION_PLAN.md
- Detailed implementation plans for the high-priority improvementsHANDLER_IMPROVEMENTS.md
- Specific changes needed for each handler fileIMPROVEMENT_SUMMARY.md
- Concise summary of the planned improvementsdocs/API_MIGRATION_TODO.md
- Status of the API migration and planned improvements
Development
Scripts
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
Docker Scripts
./scripts/build-local.sh
: Build the Docker image./scripts/run-local.sh
: Run the Docker container
Troubleshooting
Common Issues
- AQL Query Validation Errors
- Ensure values with spaces are enclosed in quotes:
Name = "John Doe"
- Use uppercase for logical operators:
AND
,OR
(notand
,or
) - Check that object types and attributes exist in your schema
- Ensure values with spaces are enclosed in quotes:
- Object Type Attribute Issues
- When using the "expand" parameter with "attributes", ensure the object type exists
- Check that you have permissions to view the attributes
- API Connection Issues
- Verify your Jira API token has the necessary permissions
- Check that the Jira host URL is correct
- Ensure your network allows connections to the Jira API
License
MIT
This server cannot be installed
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.