333 查看 · 2026-07-07 更新
MCP-Server-TESS
MCP(Model Context Protocol)服务器,用于与TESS API集成。
关于
此项目实现了一个遵循MCP协议的服务器,以与TESS API交互。该服务器提供了以下功能:
- 列表和管理代理
- 使用自定义消息执行代理
- 管理文件及其与代理的关联
- 以及更多
要求
- Node.js 18+
- TESS平台的API密钥
安装
通过Smithery.ai(推荐)
您可以在Smithery.ai上直接使用此服务器:
- 访问 https://smithery.ai/server/@diegofornalha/mcp-server-tess
- 点击“安装”
- 按提示配置您的TESS API密钥
- 完成!现在您可以将此服务器与您喜欢的大语言模型一起使用了
本地安装
克隆仓库并安装依赖项:
bash git clone https://github.com/seu-usuario/mcp-server-tess.git cd mcp-server-tess npm install
配置
- 根据
.env.example创建一个.env文件 - 添加您的TESS API密钥:
TESS_API_KEY=您的_api密钥 PORT=3000
编译
bash npm run build
运行
要以生产模式启动服务器:
bash npm start
开发时启用自动重载:
bash npm run dev
可用工具
服务器通过HTTP API暴露了以下工具:
listar_agentes_tess- 列出所有可用代理obter_agente_tess- 获取特定代理的详细信息executar_agente_tess- 使用自定义消息执行代理listar_arquivos_agente_tess- 列出与代理关联的文件vincular_arquivo_agente_tess- 将文件绑定到代理remover_arquivo_agente_tess- 移除文件与代理之间的关联listar_arquivos_tess- 列出所有可用文件obter_arquivo_tess- 获取特定文件的详细信息enviar_arquivo_tess- 向TESS平台发送新文件excluir_arquivo_tess- 从TESS平台删除文件
使用Docker
要使用Docker运行服务器:
bash
构建镜像
docker build -t mcp-server-tess .
运行容器
docker run -p 3000:3000 -e TESS_API_KEY=您的_api密钥 mcp-server-tess
API端点
GET /health- 服务器健康检查端点GET /capabilities- 列出所有可用工具及其描述和参数POST /tools/:toolName- 执行特定工具(将:toolName替换为工具名称)
使用示例
通过Smithery.ai
在Smithery.ai上安装后,您可以将此服务器与任何支持MCP的大语言模型一起使用:
- 在您的大语言模型设置中选择
@diegofornalha/mcp-server-tess服务器 - TESS API工具将自动对您的模型可用
通过HTTP API
要执行一个代理:
bash curl -X POST http://localhost:3000/tools/executar_agente_tess -H "Content-Type: application/json" -d { "agent_id": "您的代理ID", "model": "tess-ai-light", "messages": [ {"role": "user", "content": "您好,您好吗?"} ] }
许可证
MIT
来源
- 来源:github
- 链接:https://github.com/diegofornalha/mcp-server-tess