Botala

Site de commande + MCP server (Streamable HTTP / JSON-RPC)

MCP endpoint

L’endpoint MCP est /mcp/ (POST JSON-RPC). Cette page est juste un rappel.

1) Sécurité

Dans config/config.php, change mcp.api_key (et éventuellement allowed_origins).

2) Test CURL

curl -X POST https://ton-domaine.com/mcp/?key=TON_KEY \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1"}}}'

3) Dans ChatGPT Apps

Mets l’URL du serveur MCP: https://ton-domaine.com/mcp/ (ou /mcp selon ta conf serveur) + ta clé.