Getting started
Read this page as MarkdownIn this section: Connect over MCP
Connect over MCP
Connect Claude Code or Codex to Miles and call a wallet tool.
Three steps
The server at https://mcp.askmiles.ai/mcp uses streamable HTTP and authenticates with OAuth 2.1. A client that supports both can connect with one command.
- Add the server.
claude mcp add --transport http Miles https://mcp.askmiles.ai/mcpCodex:
codex mcp add Miles --url https://mcp.askmiles.ai/mcp- Approve it. The first call opens a browser tab on askmiles.ai. Sign in if you are not, read the list of what the app will be able to see, and approve. Read access is what you are approving; changes to your wallet are a separate toggle on that screen, off unless you turn it on.
- Ask something that needs your wallet.
Which of my cards should I use at Costco, and why?When connected, the tool call names the Miles alias you chose in step 1, and the answer cites your cards. If the assistant says it has no wallet access, approval did not complete. Run the add command again and finish the browser step.
What the agent gets
58 tools over your cards, valuations, balances, credits, certificates, gift cards, elite status and watchlist, plus a guidance resource at miles://guidance/working-with-miles that tells the model how to read a capped or conditional rate. Miles returns data and arithmetic; the reasoning is the agent's. The full list, with every parameter, is under MCP tools.
Managing the connection
Every connected app is listed at Settings → Connected AI Apps.
- Allow AI app connections, switched off, pauses every app at once. Tokens survive, every tool call is refused, and turning it back on resumes the apps without another approval.
- Disconnect revokes one app's tokens. That app has to be approved again to reconnect.
A personal API key is managed at Settings → API keys, and that switch governs it too.
Other clients
Setup steps for Claude Desktop, ChatGPT, OpenClaw, and mcporter are on Connect and OpenClaw. All clients use the same server URL. An assistant that can read a URL can set itself up from connect.txt.