Mirror of https://github.com/modelcontextprotocol/quickstart-resources — A repository of servers and clients from the Model Context Protocol tutorials
- JavaScript 19.6%
- Rust 17.3%
- Go 16.6%
- TypeScript 13.2%
- Ruby 11.8%
- Other 21.5%
| 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> |
||
| .github/workflows | ||
| mcp-client-go | ||
| mcp-client-python | ||
| mcp-client-ruby | ||
| mcp-client-rust | ||
| mcp-client-typescript | ||
| tests | ||
| weather-server-go | ||
| weather-server-python | ||
| weather-server-ruby | ||
| weather-server-rust | ||
| weather-server-typescript | ||
| .gitattributes | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| SECURITY.md | ||
Quickstart Resources
A repository of servers and clients from the following Model Context Protocol tutorials:
- Build an MCP server – a simple MCP weather server
- Build an MCP client – an LLM-powered chatbot MCP client
Security Note
These examples are intentionally minimal. If you expose an MCP server over a network (HTTP/SSE/WebSocket), add authentication and basic hardening (CORS allowlist, request size limits, timeouts, rate limits, and log redaction). See SECURITY.md.