UNPKG

@apify/actors-mcp-server

Version:

Model Context Protocol Server for Apify

23 lines 1.17 kB
/** * Create a simple chat client that connects to the Model Context Protocol server using the stdio transport. * Based on the user input, the client sends a query to the MCP server, retrieves results and processes them. * * You can expect the following output: * * MCP Client Started! * Type your queries or 'quit|q|exit' to exit. * You: Find to articles about AI agent and return URLs * [internal] Received response from Claude: [{"type":"text","text":"I'll search for information about AI agents * and provide you with a summary."},{"type":"tool_use","id":"tool_01He9TkzQfh2979bbeuxWVqM","name":"search", * "input":{"query":"what are AI agents definition capabilities applications","maxResults":2}}] * [internal] Calling tool: {"name":"search","arguments":{"query":"what are AI agents definition ... * I can help analyze the provided content about AI agents. * This appears to be crawled content from AWS and IBM websites explaining what AI agents are. * Let me summarize the key points: */ export type Tool = { name: string; description: string | undefined; input_schema: unknown; }; //# sourceMappingURL=clientStdioChat.d.ts.map