bottlenecks-mcp-server
Version:
Model Context Protocol server for Bottlenecks database - enables AI agents like Claude to interact with bottleneck data
46 lines • 1.44 kB
JavaScript
/**
* MCP Template Tools
* Simple template retrieval - no bullshit handlers
*/
import { getCardTemplate } from '../utils/template-loader.js';
/**
* Get bottleneck content templates
*/
export function createGetBottleneckTemplateTool(client) {
return {
type: 'call_tool',
name: 'get_bottleneck_template',
description: 'Get the actual card template from card-template.mdx',
inputSchema: {
type: 'object',
properties: {},
required: [],
},
handler: async (args) => {
try {
// Always include title and description placeholders at the top
const template = `# {title}\n\n{description}\n\n` + getCardTemplate();
return {
content: [
{
type: 'text',
text: template,
},
],
};
}
catch (error) {
return {
content: [
{
type: 'text',
text: `Error loading template: ${error instanceof Error ? error.message : 'Unknown error'}`,
},
],
isError: true,
};
}
},
};
}
//# sourceMappingURL=templates.js.map