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

テスト用 echo-mcp サーバー

MCPクライアントのテストに便利なecho_toolを備えた、シンプルなecho MCP(Model Context Protocol)サーバーです。新しいMCPサーバーのテンプレートとしても最適です。

使用法

uvをインストールし、 uvxを使用してサーバーを MCP 構成に追加します。

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

またはリポジトリをクローンし、ディレクトリでuvを使用します。

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

発達

テスト

リポジトリをクローンし、 mcp-client-for-testingを使用してサーバーのツールをテストします。

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!"}}'

フォーマットとリンティング

コードは ruff でフォーマットされ、 lint されます。

uv run ruff format uv run ruff check --fix

UVを使った建築

uv を使用してパッケージをビルドします。

uv build

新バージョンのリリース

パッケージの新しいバージョンを PyPI にリリースするには、新しい Git タグを作成してプッシュします。

  1. メイン ブランチをチェックアウトして現在のバージョンを取得します。
    git checkout main git pull origin main git describe --tags
  2. 新しい Git タグを作成してプッシュします。
    git tag v0.2.0 git push origin v0.2.0

GitHub Actionsワークフローは、新しいタグがプッシュされると、パッケージを自動的にビルドしてPyPIに公開します。Pythonパッケージのバージョン番号は、Gitタグから直接取得されます。

ライセンス

このプロジェクトはMITライセンスの下で提供されています。詳細はLICENSEファイルをご覧ください。

You must be authenticated.

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

モデル コンテキスト プロトコル (MCP) を実装し、メッセージをエコーバックするシンプルなサーバー。MCP クライアントのテスト用に設計されています。

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