Python Jira MCP Server
- src
"""
Definition of tool schemas for the Jira MCP server.
"""
from typing import Dict, Any, List
# Tool schemas following MCP specification
TOOL_SCHEMAS = [
{
"name": "jql_search",
"description": "Perform an enhanced JQL search in Jira.",
"parameters": {
"type": "object",
"properties": {
"jql": {
"type": "string",
"description": "Jira Query Language string."
},
"next_page_token": {
"type": "string",
"description": "Pagination token."
},
"max_results": {
"type": "integer",
"description": "Maximum results to return."
},
"fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Fields to include in the response."
},
"expand": {
"type": "string",
"description": "Additional data to expand."
}
},
"required": ["jql"]
}
},
{
"name": "get_issue",
"description": "Retrieve details of a Jira issue by ID or key.",
"parameters": {
"type": "object",
"properties": {
"issue_id_or_key": {
"type": "string",
"description": "Issue identifier."
},
"fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Fields to return."
},
"expand": {
"type": "string",
"description": "Additional data to expand."
},
"properties": {
"type": "array",
"items": {
"type": "string"
},
"description": "Properties to include."
},
"fail_fast": {
"type": "boolean",
"description": "Fail quickly on errors."
}
},
"required": ["issue_id_or_key"]
}
}
]
def get_tool_schemas() -> List[Dict[str, Any]]:
"""Return the tool schemas for the Jira MCP server."""
return TOOL_SCHEMAS