MCP cover image
See in Github
2025-03-26

Extensão XTP Para o Servidor McP -Tess - Integração da Api Tess com xtp

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.

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

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

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

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

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

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

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

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

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

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • modelcontextprotocol
  • Modellkontext -Protokollserver

  • Mintplex-Labs
  • Die All-in-One-Desktop & Docker-AI-Anwendung mit integriertem Lappen, AI-Agenten, No-Code-Agent Builder, MCP-Kompatibilität und vielem mehr.

  • huahuayu
  • Ein einheitliches API-Gateway zur Integration mehrerer Ethercan-ähnlicher Blockchain-Explorer-APIs mit Modellkontextprotokoll (MCP) für AI-Assistenten.

    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