Skip to content

Liumingxun/try-mcp

Repository files navigation

🚀 TryMCP - Easy to try the Model Context Protocol

TryMCP 是一个简单的 MCP 示例应用,它通过 STDIO 进行输入输出,旨在快速帮你了解 MCP 的 Clien/Server 交互。

🌟 主要功能

  • 轻松集成:通过简单的 API 快速连接客户端和服务器。

  • 强大的工具支持:支持工具列表和动态工具调用。

  • 灵活的传输层:支持多种传输方式(如 Stdio)。

  • 现代化开发:基于 TypeScript 和现代工具链构建。

  • 添加 Resources 示例

  • 添加 Prompts 示例

  • 更多、更通用的 LLM Provider

🛠️ 快速开始

  1. star it

please, please, please star it

  1. fork mine

click here to fork it

  1. clone yours
git clone git@github.com:yourname/try-mcp.git
# --- or
git clone https://github.com/yourname/try-mcp.git
  1. install deps

你应该使用 pnpm 管理这个项目,如果你没有请安装它

cd try-mcp
pnpm i
  1. run it!
pnpm start

Note

please remember to add you api key to .env

echo "API_KEY=sk-your-api-key" > .env

About

Minimal AI Chat tool with MCP

Resources

License

Stars

Watchers

Forks