关于 S2T Accelerators
S2T Accelerators 是面向 Claude 等 MCP 客户端的服务端,提供 AWS 基础设施、AI 工作流和安全相关加速工具。功能包括文本嵌入、CloudFormation/SAM 模板生成及 OAuth 配置验证。
主要功能
- 01生成文本向量嵌入并支持分块
- 02按自然语言描述生成 CloudFormation/SAM 模板
- 03验证 OAuth 2.0 配置
- 04列出加速器及其能力和定价
- 05查看 API 用量与剩余额度
适用场景
- 01为 RAG 或语义搜索生成嵌入
- 02从基础设施需求生成模板
- 03部署前检查 OAuth 配置
- 04查看 API 配额使用情况
MCP 相关
该 MCP 服务端向 Claude 等 MCP 客户端提供加速器工具,包括嵌入生成、模板生成和 OAuth 验证。
配置
本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。
工具
本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。
详细介绍
S2T Accelerators MCP 服务
此 MCP 服务为 Claude 提供访问 S2T 经过实战验证的企业级加速器的能力:
- 向量嵌入(ACC-AI-001)- 为 RAG、语义搜索生成嵌入
- CloudFormation 生成器(ACC-AWS-001)- 生成可用于生产环境的 SAM/CFN 模板
- OAuth 验证器(ACC-INT-001)- 在部署前验证 OAuth 配置
快速开始
1. 安装
npm install -g s2t-mcp-accelerators
2. 获取 API 密钥
访问 https://dev.s2tconsulting.com/ai-sales/purchase.html 创建账户并获取 API 密钥。
3. 配置 Claude Desktop
将以下内容添加到 Claude Desktop 配置文件:
macOS/Linux: ~/.config/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"s2t-accelerators": {
"command": "npx",
"args": ["s2t-mcp-accelerators"],
"env": {
"S2T_API_KEY": "sk_live_your_api_key_here"
}
}
}
}
重新启动 Claude Desktop 以启用这些工具。
可用工具
s2t_embed
为文本生成向量嵌入。支持自动拆分长文档。
Input:
- text: string (required) - Text to embed (max 100,000 characters)
- model: "amazon.titan-embed-text-v2:0" | "amazon.titan-embed-text-v1"
- chunk_size: number (100-2000, default: 512)
- chunk_overlap: number (0-500, default: 50)
Output: Embedding vectors with metadata
适用场景: RAG 系统、语义搜索、文档相似度分析、知识库索引
s2t_generate_cloudformation
根据自然语言描述生成 CloudFormation/SAM 模板。
Input:
- description: string (required) - What infrastructure you need (max 5000 chars)
- format: "sam" | "cloudformation" (default: sam)
- include_parameters: boolean (default: true)
- include_outputs: boolean (default: true)
Output: Complete YAML template with best practices
支持的资源: Lambda、API Gateway、DynamoDB、S3、SQS、SNS、EventBridge、IAM
s2t_validate_oauth
验证 OAuth 2.0 配置并检测常见的配置错误。
Input:
- provider: "google" | "microsoft" | "github" | "quickbooks" | "generic"
- client_id: string (required)
- redirect_uris: string[] (required)
- scopes: string[] (required)
- token_endpoint: string (optional, for generic)
- authorization_endpoint: string (optional, for generic)
Output: Validation results, warnings, recommendations
检测内容: 无效的客户端 ID、不安全的重定向 URI、缺少作用域、已弃用的端点
s2t_catalog
列出所有可用的 S2T 加速器及其功能和定价。
s2t_usage
查看 API 使用统计和剩余额度。
定价
| 套餐 | 价格 | 速率限制 | 月度限制 |
|---|---|---|---|
| 免费 | $0 | 10/min | 100 |
| 开发者 | $29/mo | 60/min | 5,000 |
| 商业版 | $99/mo | 300/min | 50,000 |
| 企业版 | $299/mo | 1,000/min | 无限制 |
本地开发
git clone https://github.com/S2TConsulting/accelerators-mcp.git
cd accelerators-mcp
npm install
npm run build
npm test
MCP Inspector
使用 MCP Inspector 交互式测试服务:
npx @modelcontextprotocol/inspector node dist/index.js
本地运行
# Set API key
export S2T_API_KEY="sk_live_your_api_key"
# Run server
npm start
测试
npm test # Run tests once
npm run test:watch # Watch mode
npm run test:coverage # Coverage report
配置选项
环境变量
| 变量 | 描述 | 默认值 |
|---|---|---|
S2T_API_KEY | 你的 S2T API 密钥(必需) | - |
S2T_API_URL | 自定义 API 端点 | 生产 API |
Claude Code
对于 Claude Code 项目,将以下内容添加到 ~/.mcp.json(或项目级 .mcp.json):
{
"mcpServers": {
"s2t-accelerators": {
"command": "npx",
"args": ["s2t-mcp-accelerators"],
"env": {
"S2T_API_KEY": "sk_live_your_api_key_here"
}
}
}
}
贡献
欢迎贡献!以下是开始参与的步骤:
- Fork 仓库并创建功能分支
- 安装依赖:
npm install - 在
src/中进行修改 - 在
src/handlers.test.ts中为新功能添加测试 - 运行测试套件:
npm test - 提交 PR,并清楚说明所做的更改
提交前,请确保所有测试均通过。
支持
- 网站: https://www.s2tconsulting.com
- 电子邮件: [email protected]
- 问题反馈: https://github.com/S2TConsulting/accelerators-mcp/issues
许可证
MIT - 详情请参阅 LICENSE 文件。
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。