pharos-agent-kit
Version:
Connect AI Agents to Pharos protocols
34 lines • 1.15 kB
TypeScript
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import type { Action } from "../types/action";
import { PharosAgentKit } from "../agent";
/**
* Creates an MCP server from a set of actions
*/
export declare function createMcpServer(actions: Record<string, Action>, PharosAgentKit: PharosAgentKit, options: {
name: string;
version: string;
}): McpServer;
/**
* Helper to start the MCP server with stdio transport
*
* @param actions - The actions to expose to the MCP server
* @param PharosAgentKit - The Pharos 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 PharosAgentKit = new PharosAgentKit();
*
* startMcpServer(ACTIONS, PharosAgentKit, {
* name: "actions",
* version: "1.0.0"
* });
*/
export declare function startMcpServer(actions: Record<string, Action>, PharosAgentKit: PharosAgentKit, options: {
name: string;
version: string;
}): Promise<McpServer>;
//# sourceMappingURL=index.d.ts.map