mcp-server-playground
by chrisleekr·★ 7·综合分 41
TypeScript 构建的 MCP 服务器,支持 HTTP 传输和 OAuth 代理,提供 AWS 服务、系统操作和数据流工具。
概述
这是一个全面的 MCP 服务器游乐场,使用 TypeScript 构建,实现了基于 HTTP 的传输和 SSE 可恢复性功能。它支持 OAuth 认证/授权,兼容 Auth0、GitHub 和 Google 等第三方提供商。该服务器包含各种 AWS 服务(ECS、S3)、系统操作(时间、回声)和数据流功能工具。它支持可插拔存储抽象和跨多个服务器实例的有状态会话,使用 Valkey 进行持久化。架构文档详尽,详细解释了 OAuth 集成如何与动态客户端注册协同工作,同时解决了安全问题。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要构建支持 OAuth 集成的安全 MCP 服务、需要可靠连接处理(使用 SSE),或者需要在集群中部署支持有状态会话的 MCP server 时,选择这个。
什么时候不要选它
如果您需要简单的没有 OAuth 复杂性的 MCP server,在没有 Node.js/Bun 支持的环境中工作,或者需要完全托管的服务而不是自托管解决方案,则避免使用。
此 server 暴露的工具
从 README 抽取出 6 个工具aws-ecsInvestigate the ECS service, task and cloudwatch logs using AWS ECS, Cloudwatch Logs and Bedrock
aws-s3Get the list of S3 buckets and objects
system-timeGet the current system time in various formats with timezone support
echoEcho a message back with transformations, repetition
streamingSimulate real-time streaming data with live updates
projectFind keywords in the current project directory
可对比工具
安装
安装步骤
- 克隆仓库:
git clone <your-repo>
cd mcp-server-playground- 安装 Bun(如果尚未安装):
curl -fsSL https://bun.sh/install | bash- 安装依赖:
bun install- 设置环境变量:
cp .env.example .env- 设置本地开发环境的 MCP 服务器:
bun run dev:setupClaude Desktop 配置
添加到您的 Claude Desktop config.json 文件:
{
"mcpServers": {
"mcp-server-playground": {
"command": "bun",
"args": ["run", "start"],
"env": {
"PORT": "3000"
}
}
}
}FAQ
- 这个服务器如何处理 OAuth 认证?
- 该服务器实现了一个 OAuth 代理,将授权委托给 Auth0 等第三方提供商。这实现了动态客户端注册,同时通过防止公共注册端点的滥用来维护安全性。
- 可以将此服务器作为集群部署并支持有状态会话吗?
- 是的,该服务器支持跨多个实例的有状态会话,使用 Valkey 存储会话数据。当请求到达不同的服务器实例时,它会检查会话是否存在于 Valkey 中,并在需要时重放初始请求。
mcp-server-playground 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。