Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,33 @@ The SDK docs folder contains diagrams for the API patterns used by this client:

---

## MCP (Model Context Protocol)

The Python SDK includes a built-in MCP endpoint client for gateway-hosted MCP sessions:

```python
# Initialize an MCP session
init = client.mcp_initialize()
print(init["serverInfo"])

# List available tools
tools = client.mcp_list_tools()
for tool in tools.get("tools", []):
print(tool["name"])

# Call a tool
result = client.mcp_call_tool("create_intent", arguments={
"intent_type": "order.fulfillment.v1",
"payload": {"order_id": "ord_123"},
"owner_agent": "agent://fulfillment-service",
})
print(result)
```

MCP calls go to `/mcp` by default. Override with `mcp_endpoint_path` in `AxmeClientConfig`.

---

## Tests

```bash
Expand Down