AuryaDocumentation
English
MCP · Read accessOpen Aurya

Integrations / Model Context Protocol

Aurya MCP

Your projects and balance, available to your AI agent. Connect an MCP client to Aurya using your account permissions.

Streamable HTTP3 read-only toolsNo Aurya tokens charged
POSTProduction endpointhttps://aurya-rsrq.onrender.com/mcp
01 · Access

Enable your account and create a key

  1. Ask an administrator to open stats-admin → Feature access and enable MCP Aurya — consultas (teste) for your account email.
  2. Create a dedicated personal key through the API below, using an authenticated session for your own account. The standard partner key interface may not offer MCP scopes; use the API for this pilot.
  3. Store the key returned in key in your client's secret manager and keep the id for revocation. The key is shown only once.

The flag mcp-read is also required for administrators and Dev Mode accounts. This public page does not grant access to your account.

Create a key through the API

POST /v1/partner/api-keys · Authentication: account owner's session

curl --fail-with-body "$AURYA_API_URL/v1/partner/api-keys" \
  -H "Authorization: Bearer $AURYA_SESSION_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{
    "name": "My agent — Aurya read access",
    "permissions": ["mcp:projects:read", "mcp:balance:read"],
    "rateLimitPerMinute": 60,
    "rateLimitPerDay": 1000,
    "autoRechargeEnabled": false
  }'

Set AURYA_API_URL=https://aurya-rsrq.onrender.com. AURYA_SESSION_TOKEN is the account owner's session credential, used only to manage their keys. The response contains a secret: run this in a private environment without saving output to shared logs.

Use only the scopes you need. Do not send teamId, enable automatic recharging, or use general permissions such as *. The key expires for MCP after 30 days.

02 · Connection

Add Aurya to your MCP client

Configuration for clients supporting a static Bearer header.
TransportStreamable HTTP
URLhttps://aurya-rsrq.onrender.com/mcp
HeaderAuthorization: Bearer <YOUR_MCP_KEY>

In Codex CLI

Make the key available in the environment variable AURYA_MCP_KEY of the process that starts Codex, using your secret manager. Then run:

codex mcp add aurya \
  --url https://aurya-rsrq.onrender.com/mcp \
  --bearer-token-env-var AURYA_MCP_KEY

Start a new client session after configuring it. For desktop apps, confirm that the app process receives this variable; exporting it in another terminal does not update an already running app.

Compatibility: this pilot uses a static key. OAuth and delegated login are not available yet. Clients requiring OAuth cannot connect through this flow.

03 · Queries

What your agent can read

The client discovers only the tools allowed by its key. Every query respects the account's current permissions.

aurya_list_projects

Lists projects accessible to the account, ordered by descending ID. Returns projects and, when another page exists, nextCursor.

{"limit": 20}

limit is optional: default 20, maximum 100. To continue, pass the returned nextCursor in the argument cursor. Text search is not available in this version.

aurya_get_project

Reads a project's ID, name, description, dates and access relationship. Use an ID returned by the list tool.

{"projectId": "PROJECT_ID_FROM_LIST"}

Descriptions are limited to 4,000 characters. Canvas, files, thumbnails and the owner's personal data are not returned.

aurya_get_balance

Reads one wallet at a time. Returns available.subscriptionTokens, available.permanentCredits and available.totalBalance.

{"wallet": "personal"}
{"wallet": "team", "teamId": "TEAM_ID"}

For teams, use the team ID obtained in Aurya. You must be an active member. The returned balance respects your individual limit and may differ from the team's overall balance. Do not add wallets together as a single spending allowance.

Try asking your agent

  • “List my projects in Aurya.”
  • “Show the details of this project.”
  • “Check my personal token balance in Aurya.”

Generations, quick actions and existing file queries are planned for later versions. These queries do not charge Aurya tokens; your AI client may charge separately.

Test the connection through the protocol

With the key in AURYA_MCP_KEY, send the examples below using POST to the endpoint. Do not substitute your session token for the MCP key.

curl --fail-with-body https://aurya-rsrq.onrender.com/mcp \
  -H "Authorization: Bearer $AURYA_MCP_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  --data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"my-client","version":"1.0"}}}'

The response should include result.serverInfo.name: "aurya" and the negotiated protocol version. Use that version in the header MCP-Protocol-Version for subsequent calls. First send the initialization notification, without an id:

{"jsonrpc":"2.0","method":"notifications/initialized"}

Then discover the tools:

{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}

Read the personal balance:

{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"aurya_get_balance","arguments":{"wallet":"personal"}}}

Repeat the command curl with the desired JSON in --data and add -H 'MCP-Protocol-Version: 2025-06-18' if that was the negotiated version. The server is stateless: no MCP session header is required. The notification returns 202, with no body. Successful tool calls return data in result.structuredContent; also check result.isError and JSON-RPC errors, even with HTTP 200.

Permissions, limits and revocation

  • mcp:projects:read: project lists and details.
  • mcp:balance:read: personal and accessible team balances.
  • Dedicated personal keys are revocable and valid for up to 30 days. Team keys, general-purpose keys and keys with generation scopes are rejected.
  • Maximum body size is 16 KiB and query timeout is 10 seconds. Request limits configured on the key apply per API process; they are not a global quota across replicas.
  • Access to shared projects and teams is revalidated. The MCP connection does not end the human user's Aurya session.
  • Project names and descriptions are user data, not trusted instructions for the agent.

Stop access

Revoke the flag mcp-read in stats-admin to block all MCP integrations for the account. To revoke just one key, the owner can use DELETE /v1/partner/api-keys/{id}, authenticated with their session token. The next request will be blocked, including from already connected clients. Revocation does not erase information already received by the client.

Never put a key in a URL, prompt, screenshot or repository. This documentation does not request or store credentials.

Troubleshooting

401 · Invalid or expired key

Check the Authorization header, the 30-day lifetime and whether the key is active. Use a personal key with MCP-only scopes. Session tokens, general-purpose keys and team-bound keys do not authenticate to MCP.

403 · Access not enabled

Confirm the mcp-read grant for the account email in stats-admin, including for administrators. If the error mentions Origin, check whether the client sends a browser origin allowed by the API.

Missing tool or rejected query

Check the key scopes and arguments. Private projects without sharing, revoked access and teams the account has left are unavailable. Unknown arguments are rejected. Check result.isError and error in the JSON-RPC response.

429 · Request limit

Reduce frequency and use backoff. Reconnecting or retrying immediately does not remove the limit. Every authenticated MCP request counts, including initialization and discovery.

413, transport error or query unavailable

Send JSON up to 16 KiB with Content-Type: application/json and Accept: application/json, text/event-stream. Check the negotiated protocol version. For temporary outages, retry with backoff; keep the error message and time without copying credentials.

The client requires OAuth login

OAuth is not available yet. Use a client supporting Streamable HTTP with static Authorization Bearer. This documentation URL is not the MCP endpoint; connect using /mcp.