Cover image
Try Now
2025-03-26

Extensão XTP para o servidor MCP-TESS - Integração da API TESS com XTP

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

Servidor 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

  1. Clone o repositório
  2. Instale as dependências:
    npm install
    
  3. 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 MCP
    • mcp_sse_url: URL do SSE do MCP

Executar Ferramenta MCP

  • POST /api/mcp/execute
  • Query params:
    • session_id: ID da sessão MCP
    • mcp_sse_url: URL do SSE do MCP
  • Body:
    {
      "tool": "nome_da_ferramenta",
      "params": {
        // parâmetros específicos da ferramenta
      }
    }
    

Arquitetura

O servidor é composto por:

  1. Node.js + Express: Servidor HTTP que recebe as requisições
  2. Plugin Rust/WebAssembly: Lógica principal que processa as requisições
  3. 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:

  1. Edite o código Rust em src/lib.rs
  2. Recompile o plugin com npm run build
  3. 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_id válido
  • As credenciais do MCP são configuradas via variáveis de ambiente
  • CORS está habilitado para desenvolvimento

Troubleshooting

Se encontrar problemas:

  1. Verifique se o plugin foi compilado corretamente
  2. Confirme que as variáveis de ambiente estão configuradas
  3. Verifique os logs do servidor
  4. Certifique-se que o MCP.run está acessível

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • huahuayu
  • A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.

  • zhaoyunxing92
  • 本项目是一个钉钉MCP(Message Connector Protocol)服务,提供了与钉钉企业应用交互的API接口。项目基于Go语言开发,支持员工信息查询和消息发送等功能。

  • deemkeen
  • control your mbot2 with a power combo: mqtt+mcp+llm

  • justmywyw
  • Short and sweet example MCP server / client implementation for Tools, Resources and Prompts.

    Reviews

    4 (1)
    Avatar
    user_g3F1jjs3
    2025-04-17

    As a devoted user of the mcp-server-tess-xtp, I can confidently say it stands out for its robustness and efficiency. Developed by diegofornalha, this tool has streamlined our server management tasks significantly. Its intuitive design and reliable performance make it a must-have for any serious IT professional. Highly recommended for those who need dependable server solutions! Check it out: https://github.com/diegofornalha/mcp-server-tess-xtp