Echo MCP Server

by piebro
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Supports version control and release management through Git tags that follow semantic versioning

  • Provides integration with GitHub for releasing new versions of the package by pushing Git tags, which trigger automated workflows

  • Enables automated build and publishing workflows that are triggered when a new Git tag is pushed to release new versions of the package

servidor echo-mcp-para-pruebas

Un servidor MCP (Protocolo de Contexto de Modelo) de eco simple con una echo_tool sencilla para probar clientes MCP. También es ideal como plantilla para nuevos servidores MCP.

Uso

Instale uv y agregue el servidor a una configuración MCP usando uvx :

{ "name": "echo-mcp-server-for-testing", "command": "uvx", "args": [ "echo-mcp-server-for-testing" ], "env": { "SECRET_KEY": "123456789" } }

o clonar el repositorio y usar uv con un directorio:

{ "name": "echo-mcp-server-for-testing", "command": "uv", "args": [ "--directory", "path/to/root/dir/", "run", "main.py" ], "env": { "SECRET_KEY": "123456789" } }

Desarrollo

Pruebas

Clone el repositorio y use mcp-client-for-testing para probar las herramientas del servidor.

uvx mcp-client-for-testing \ --config ' [ { "name": "echo-mcp-server-for-testing", "command": "uv", "args": [ "--directory", "path/to/root/dir/", "run", "main.py" ], "env": { "SECRET_KEY": "123456789" } } ] ' \ --tool_call '{"name": "echo_tool", "arguments": {"message": "Hello, world!"}}'

Formato y pelusa

El código está formateado y alineado con ruff:

uv run ruff format uv run ruff check --fix

Edificio con rayos UV

Construya el paquete usando uv:

uv build

Lanzamiento de una nueva versión

Para publicar una nueva versión del paquete en PyPI, cree y envíe una nueva etiqueta Git:

  1. Revisa la rama principal y obtén la versión actual:
    git checkout main git pull origin main git describe --tags
  2. Crea y envía una nueva etiqueta Git:
    git tag v0.2.0 git push origin v0.2.0

El flujo de trabajo de GitHub Actions compilará y publicará automáticamente el paquete en PyPI al añadir una nueva etiqueta. El número de versión del paquete de Python se derivará directamente de la etiqueta de Git.

Licencia

Este proyecto está licenciado bajo la Licencia MIT. Consulte el archivo de LICENCIA para más detalles.

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Un servidor simple que implementa el Protocolo de Contexto de Modelo (MCP) que refleja mensajes, diseñado para probar clientes MCP.

  1. Usage
    1. Development
      1. Testing
      2. Formatting and Linting
      3. Building with uv
      4. Releasing a New Version
    2. License
      ID: xsdu3gwew0