09 · mcp

MCP servers: connect your tools

MCP (Model Context Protocol) is a standard for exposing tools to an agent. Declare your server and test the connection: the discovered tools (never invoked during the test) can then be attached to the bot.

  • Transport: http (Streamable HTTP) or sse. The server name uses lowercase letters, digits and dashes (2 to 30 characters).
  • Custom headers (for example Authorization) to authenticate the platform with your server.
  • The MCP page offers a catalog of candidate servers and shows the connection status of your workspace.
  • Write clear tool descriptions: they drive the bot's decision (when to call, when not to call).
  • Private addresses (localhost, internal network) are refused by default — SSRF protection. Expose the server over public HTTPS.
MCP server — Python (FastMCP)
from mcp.server.fastmcp import FastMCP

mcp = FastMCP("mon-serveur", host="0.0.0.0", port=8788)

@mcp.tool()
def verifier_couverture(commune: str) -> str:
    """Indique la couverture 4G/5G d'une commune. À appeler quand le client demande s'il est couvert."""
    return f"{commune} : 4G+ partout, 5G en centre-ville."

if __name__ == "__main__":
    mcp.run(transport="streamable-http")  # URL à déclarer : https://mcp.votredomaine.com/mcp

Related video tutorial

Deep Agent StudioUse cases© 2026 Deep Agent Studio