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.

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

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

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

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

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

  • Lists Tailwind CSS classes in monospaced font

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

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

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

  • apappascs
  • Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

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

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

  • jae-jae
  • MCP server for fetch web page content using Playwright headless browser.

    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