UNPKG

bottlenecks-mcp-server

Version:

Model Context Protocol server for Bottlenecks database - enables AI agents like Claude to interact with bottleneck data

72 lines 2.88 kB
/** * MCP Tools Registry * Exports all MCP tools for the Bottlenecks server */ import { MCPTool, MCPConfig } from '../types/mcp.js'; /** * Create all MCP tools with the given configuration */ export declare function createMCPTools(config: MCPConfig, apiKey?: string): MCPTool[]; /** * Get tool definitions for MCP server registration */ export declare function getToolDefinitions(): Array<{ name: string; description: string; inputSchema: any; }>; /** * Tool categories for organization */ export declare const TOOL_CATEGORIES: { readonly discovery: readonly ["agents_start_here", "get_capabilities"]; readonly schema: readonly ["get_bottleneck_schema", "get_taxonomy", "get_bottleneck_template"]; readonly read: readonly ["search_bottlenecks", "get_bottleneck", "list_bottlenecks", "list_unapproved_bottlenecks"]; readonly write: readonly ["create_bottleneck", "update_bottleneck", "validate_bottleneck_data"]; readonly files: readonly ["upload_file", "get_file_attachments", "get_file_content", "download_file", "delete_file"]; readonly images: readonly ["generate_bottleneck_image", "upload_bottleneck_image", "delete_bottleneck_image"]; readonly feedback: readonly ["submit_bug_report"]; }; /** * Get tools by category */ export declare function getToolsByCategory(category: keyof typeof TOOL_CATEGORIES, config: MCPConfig, apiKey?: string): MCPTool[]; /** * Tool usage examples for documentation */ export declare const TOOL_EXAMPLES: { readonly agents_start_here: { readonly description: "Get started with the Bottlenecks MCP server"; readonly example: { readonly include_examples: true; readonly focus_area: "workflow"; }; }; readonly search_bottlenecks: { readonly description: "Search for performance bottlenecks"; readonly example: { readonly query: "database performance"; readonly tags: readonly ["performance", "database"]; readonly limit: 10; }; }; readonly create_bottleneck: { readonly description: "Create a new bottleneck entry"; readonly example: { readonly title: "Database Query Performance Issue"; readonly description: "::: section details\nOur main search query is taking 2+ seconds during peak hours...\n"; readonly tags: readonly ["performance", "database", "high-impact"]; readonly is_public: false; }; }; readonly get_file_attachments: { readonly description: "Get files attached to a bottleneck"; readonly example: { readonly card_id: "123e4567-e89b-12d3-a456-426614174000"; readonly file_types: readonly ["pdf", "csv"]; readonly include_metadata: true; }; }; }; export default createMCPTools; //# sourceMappingURL=index.d.ts.map