> ## Documentation Index
> Fetch the complete documentation index at: https://docs.medera.info/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Authentication

> Authenticating MCP server calls from agents

Medera agents can invoke **MCP servers** — Model Context Protocol servers that expose tools to the agent runtime. The integration is configured per tenant via the **Integrations** page in the Console.

```json theme={"system"}
{
  "mcp_server_url": "https://mcp.your-domain.com",
  "auth": {
    "scheme": "bearer",
    "token": "mcp_token_..."
  }
}

```

The token is stored in `tenant.secret` and resolved at execution time. MCP tool invocations are logged to `agent_call_function_logs` for audit and rate-limit accounting.
