mirror of
https://github.com/hanzoai/sdk.git
synced 2026-11-03 03:12:24 +00:00
- Consolidated Python, JavaScript, Rust, and Go SDKs - Standard directory structure (src/py, src/js, src/rs, src/go) - Real implementations from existing SDKs (not stubs) - Comprehensive test framework with CI/CD matrix - Dual distribution support (pip and npm) - Language parity for all core commands - Smart routing based on language strengths
20 lines
572 B
TypeScript
20 lines
572 B
TypeScript
/**
|
|
* MCP (Model Context Protocol) server
|
|
*/
|
|
export interface MCPTool {
|
|
name: string;
|
|
handler: (action: string, params: any) => Promise<any>;
|
|
}
|
|
export declare class MCPServer {
|
|
private transport;
|
|
private tools;
|
|
constructor(transport?: string);
|
|
private registerDefaultTools;
|
|
registerTool(name: string, handler: (action: string, params: any) => Promise<any>): void;
|
|
private filesystemTool;
|
|
private shellTool;
|
|
private memoryTool;
|
|
serve(port?: number): Promise<void>;
|
|
listTools(): string[];
|
|
}
|
|
//# sourceMappingURL=mcp.d.ts.map
|