Skip to main content
Glama

Jira MCP Server

by sespinosa
MIT License
15
2
  • Apple
  • Linux
formatter.ts919 B
import { CallToolResult } from '@modelcontextprotocol/sdk/types.js'; export interface MCPResponse { success: boolean; data?: any; message?: string; error?: string; } export function formatResponse(response: MCPResponse): CallToolResult { if (response.success) { return { content: [ { type: 'text', text: JSON.stringify( { success: true, data: response.data, message: response.message, }, null, 2 ), }, ], }; } else { return { content: [ { type: 'text', text: JSON.stringify( { success: false, error: response.error, message: response.message, }, null, 2 ), }, ], isError: true, }; } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sespinosa/jira-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server