| Filename | Latest commit message | Latest commit date |
|---|---|---|
Apply the same Messages API tool-use fixes that #141 made to the Python client (mcp-client-python/client.py) to mcp-client-typescript/index.ts: - Reply to each tool_use with a proper tool_result block carrying tool_use_id, and append the assistant's full content (preserving the tool_use block) instead of sending the result as a plain user string. - Restructure processQuery into a turn-level loop so parallel tool calls in one response and chained tool calls across turns both work; pass tools on every follow-up request. - Add MAX_TOOL_TURNS = 10 cap with a "[Stopped after N tool-use turns]" notice to prevent unbounded tool-use loops. - Fix chatLoop to exit cleanly on EOF (Ctrl-D) and SIGINT (Ctrl-C) via an AbortController wired to readline close, instead of hanging or throwing on stdin EOF. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
| .. | ||
| .env.example | ||
| .gitignore | ||
| index.ts | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
An LLM-Powered Chatbot MCP Client written in TypeScript
See the Build an MCP client tutorial for more information.