Servidor TESS com Suporte a MCP
LocalAbout Servidor TESS com Suporte a MCP
A Node.js and Rust/WebAssembly proxy that connects TESS with MCP.run. It is intended for developers who need HTTP endpoints to list and execute MCP tools through a session.
Key features
- 01HTTP health-check endpoint
- 02List MCP tools by session
- 03Execute tools with parameters
- 04Rust plugin compiled to WebAssembly
- 05Environment-based MCP credentials
Use cases
- 01Check whether the proxy is running
- 02Retrieve available tools for an MCP session
- 03Forward tool calls to MCP.run
MCP support
Acts as a proxy to MCP.run, exposing HTTP endpoints to list and execute MCP tools using a session ID and SSE URL.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEServidor TESS com Suporte a MCP
Este é um servidor proxy que integra o TESS (Text Evaluation and Semantic Services) com o MCP (Multi-Channel Platform).
Requisitos
- Node.js 18+
- Rust e Cargo
- wasm32-wasi target (
rustup target add wasm32-wasi)
Configuração
- Clone o repositório
- Instale as dependências:
npm install - Configure as variáveis de ambiente no arquivo
.env:PORT=3000 MCP_API_KEY=seu_mcp_api_key MCP_API_URL=https://www.mcp.run/api MCP_SSE_URL=https://www.mcp.run/api/sse
Build
Para compilar o plugin WebAssembly:
npm run build
Execução
Para iniciar o servidor:
npm start
Para desenvolvimento com hot-reload:
npm run dev
Endpoints
Health Check
- GET
/health - Verifica se o servidor está funcionando
Listar Ferramentas MCP
- GET
/api/mcp/tools - Query params:
session_id: ID da sessão MCPmcp_sse_url: URL do SSE do MCP
Executar Ferramenta MCP
- POST
/api/mcp/execute - Query params:
session_id: ID da sessão MCPmcp_sse_url: URL do SSE do MCP
- Body:
{ "tool": "nome_da_ferramenta", "params": { // parâmetros específicos da ferramenta } }
Arquitetura
O servidor é composto por:
- Node.js + Express: Servidor HTTP que recebe as requisições
- Plugin Rust/WebAssembly: Lógica principal que processa as requisições
- Proxy MCP: Encaminha requisições para o MCP.run
Desenvolvimento
O código do plugin está em Rust e é compilado para WebAssembly. O servidor Node.js carrega este plugin e o utiliza para processar as requisições.
Para modificar o comportamento do servidor:
- Edite o código Rust em
src/lib.rs - Recompile o plugin com
npm run build - Reinicie o servidor
Logs e Monitoramento
O servidor registra logs para:
- Inicialização do servidor
- Erros de processamento
- Chamadas de API
Segurança
- Todas as requisições devem incluir um
session_idválido - As credenciais do MCP são configuradas via variáveis de ambiente
- CORS está habilitado para desenvolvimento
Troubleshooting
Se encontrar problemas:
- Verifique se o plugin foi compilado corretamente
- Confirme que as variáveis de ambiente estão configuradas
- Verifique os logs do servidor
- Certifique-se que o MCP.run está acessível
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.