UNPKG

@oraichain/mcp-server

Version:
27 lines (26 loc) 823 B
#!/usr/bin/env node import "dotenv/config"; import { Tool } from "langchain/tools"; /** * Helper to start the MCP server with stdio transport * * @param actions - The actions to expose to the MCP server * @param solanaAgentKit - The Solana agent kit * @param options - The options for the MCP server * @returns The MCP server * @throws Error if the MCP server fails to start * @example * import { ACTIONS } from "./actions"; * import { startMcpServer } from "./mcpWrapper"; * * const solanaAgentKit = new SolanaAgentKit(); * * startMcpServer(ACTIONS, solanaAgentKit, { * name: "solana-actions", * version: "1.0.0" * }); */ export declare function startMcpServer(tools: Tool[], options: { name: string; version: string; }): Promise<import("@modelcontextprotocol/sdk/server/mcp.js").McpServer>;