Connecting AI agents with the MCP server and SDKs
Connect AI assistants such as Claude to your Reydoc data safely; get started fast with an SDK or REST.
9 mnt · Untuk siapa: Semua
Developer portal (reydoc.com/gelistirici) and Dashboard → Developers
Setelah pelajaran ini
You can connect an AI assistant to Reydoc over MCP with a key of limited scope and choose the right SDK for your language.
MCP (Model Context Protocol) is an open standard that lets AI assistants call tools in external systems. Reydoc's MCP server is at https://reydoc.com/api/v1/mcp and accepts only an API key or an OAuth token.
The assistant sees only the tools within its key's scopes. Every module open to the API can be used through MCP, including creating listings, sending and accepting offers, messages, publishing and workflow management; tools that affect real people are marked for the assistant. Payments, consent declarations and operations that carry secrets (channel tokens, webhook secrets) cannot be done through MCP; they always happen in the dashboard.
Langkah demi langkah
- Create a separate key
On the Developers page create a separate client for the assistant and a read-only key (for example deals:read, affiliate:read).
- Add it to the assistant's settings
Copy the MCP configuration JSON from the developer portal, set https://reydoc.com/api/v1/mcp as the address and your key as the authorisation header.
- Try the tools
Ask the assistant something like "list my active deals". There are 116 tools in total, but the assistant only sees those matching its key's scopes.
- Choose an SDK
Pick your language from the SDK table on the portal. The "Published" label appears only for SDKs verified in the official package registry; for languages without an SDK, use REST and the OpenAPI document.
Aturan dan batas
- Each MCP tool call counts as two requests toward the rate limit; the tool timeout is 25 seconds.
- Payments, consent declarations and operations that carry secrets (channel tokens, webhook secrets) cannot be done over MCP.
- Offer, acceptance, publishing and message tools affect real people: give the assistant write scopes deliberately.
Tips
- Try the assistant with read-only scopes for a week before giving it any write scope.
Kesalahan umum
- Giving the assistant a single key with Owner rights and every scope.
Pelajaran terkait
- API clients and keysDevelopers: API, webhooks, MCP and integrations
- AI Assistant (Copilot) and AI CenterContent, rights and AI