Ts Mcp Client Server
@oneness
关于 Ts Mcp Client Server
MCP client and server with command line chat interface using Anthropic
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Ts Mcp Client Server?
It is an example MCP (Model Context Protocol) client and server implementation in TypeScript, demonstrating how MCP works with stdio transport and the Anthropic API.
How to use Ts Mcp Client Server?
Clone the repository, set your ANTHROPIC_API_KEY in a .env.local file, and install dependencies with npm. Run npm run build to compile, then npm run mcp for the stdio client/server demo or npm run chat for a command-line chat interface that uses Claude via MCP.
Key features of Ts Mcp Client Server
- TypeScript MCP client and server example
- Uses stdio transport for inter-process communication
- Integrates with Anthropic SDK for LLM completions
- Provides a command-line chat interface
- Exposes and executes tools via the MCP server
Use cases of Ts Mcp Client Server
- Learning how MCP client/server works with stdio transport
- Building a CLI chat interface to Claude completion
- Demonstrating tool execution through an MCP server
- Prototyping MCP integrations with the Anthropic API
FAQ from Ts Mcp Client Server
What is the purpose of Ts Mcp Client Server?
It is a step-by-step example showing how MCP works as a standalone client/server and with an LLM, aimed at developers learning the protocol.
How do I set up the environment?
Install Node.js (nix recommended), then install npm dependencies. Create a .env.local file with your ANTHROPIC_API_KEY.
How do I run the demo?
First run npm run build, then npm run mcp to start the stdio client/server demo, or npm run chat to launch the CLI chat interface that uses Anthropic’s Claude.
What files are included?
The project contains index.ts (entry point), server.ts (MCP server), client.ts (MCP client), llm.ts (Anthropic SDK integration), and chat.ts (command-line interface).
Does the project have any notes on code generation?
The README notes that Claude and Gemini web chat interfaces were used to generate some of the boilerplate code.
其他 分类下的更多 MCP 服务器
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

EverArt
modelcontextprotocolModel Context Protocol Servers

Peekaboo MCP – lightning-fast macOS screenshots for AI agents
steipetePeekaboo is a macOS CLI & optional MCP server that enables AI agents to capture screenshots of applications, or the entire system, with optional visual question answering through local or remote AI models.
Nginx UI
0xJackyYet another WebUI for Nginx
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
评论