Skip to content

MCP Adapter Endpoints

A minimal external adapter (sample) exposing two endpoints.

Sample server: samples/24-external-mcp-adapter/server.py

List Tools

  • Method: GET
  • Path: /tools

Example:

curl -s http://localhost:8080/tools | jq .

Execute

  • Method: POST
  • Path: /execute
  • Body:
{"name": "process_user", "params": {"user": {"id": 123, "name": "Ada"}}}

Example:

curl -s -X POST http://localhost:8080/execute \
  -H 'Content-Type: application/json' \
  -d '{"name": "process_user", "params": {"user": {"id": 123}}}' | jq .

Why

  • Simple demo for integrating external tools/services.
  • Echo-style responses illustrate payload structure.