api-mockingbird
Version:
MCP server for creating HTTP mock APIs for frontend development
15 lines (14 loc) • 690 B
TypeScript
import { CallToolResult, Tool } from '@modelcontextprotocol/sdk/types.js';
import { MockServerManager } from '../services/MockServerManager.js';
import { ToolArgs } from '../types/index.js';
type ToolHandler = (serverManager: MockServerManager, args: ToolArgs) => Promise<CallToolResult>;
interface ToolRegistryEntry {
tool: Tool;
handler: ToolHandler;
}
export declare const TOOL_REGISTRY: Record<string, ToolRegistryEntry>;
export type ToolName = keyof typeof TOOL_REGISTRY;
export declare function getAllTools(): Tool[];
export declare function getToolHandler(name: string): ToolHandler | null;
export declare function isValidToolName(name: string): name is ToolName;
export {};