MCP connections
Model Context Protocol (MCP) lets an AI agent check prizes, place bids, and manage servers through your Prize Bot account, with only the access you approve. Personal tools require User Premium, or Server Premium Combo in the server they act on. Server tools require Server Premium on that server.
Connect an application
Your MCP client must support remote MCP over Streamable HTTP, OAuth with PKCE, and either dynamic client registration or Client ID Metadata Documents. Check your client's MCP documentation.
- Open Connections and copy the MCP endpoint.
- Add the endpoint as a remote MCP server in your client, and start its OAuth sign-in.
- Sign in with Discord. Check the application name, client ID, return address, and requested permissions.
- For server access, select each server the application may use.
- Select Allow access, or Deny access to cancel.
Never give an agent your Discord bot token, Discord access token, or dashboard cookie. The client gets its own limited credential through OAuth.
Connect a remote agent from your phone
If your agent runs on another machine, such as a server, pair it from your phone.
- Open Connections, select Copy instructions for your agent, and send them to your agent with the tasks you want done.
- Open the pairing link the agent sends you. Check that the connection code matches the agent's message, then sign in with Discord.
- Review the permissions, select servers if asked, and select Allow access.
- The agent picks up its credentials. Start a new agent session to load the tools.
Only approve requests you started. Pairing links expire after 10 minutes. Ask your agent for a new one if needed.
Hosted clients with public HTTPS callbacks can use the regular OAuth flow
from your phone. A return address that starts with 127.0.0.1 only works in a browser on the computer running the client. Use phone pairing
instead.
Setup instructions for agents
Download the Prize Bot MCP client to the agent's machine. It needs Python 3.10 or later on Linux or macOS, with no extra packages. Run setup with the scopes the user's tasks need:
python3 prizebot_mcp.py setup --codex --scopes "server:read server:write" Setup prints a verification link and connection code. Send both to the
user and keep the process running while they approve. Setup saves the
credentials, checks the account, and registers the client with Codex.
The default scope is personal:read.
Access and scopes
- User Premium covers personal tools for your own account in every server you're in. It doesn't grant management permissions.
- Server Premium covers management tools for that server. You need Manage Server or Administrator there, and must select the server when you connect. You don't also need User Premium.
- Server Premium Combo covers personal tools for every
member, but only in that server. The agent passes the server's
guild_idon each personal call.
A scope is one type of access. Read scopes let the agent look; write scopes let it make changes, such as spending currency or posting in Discord. A write scope doesn't include read, so choose both if the agent needs to look and change. Prize Bot checks your membership, permissions, and plan each time a tool runs.
- personal:read
- Read your prizes, events, auto-bids, and notification preferences. Requires User Premium or Server Premium Combo for the selected server.
- personal:write
- Place bids, make shop purchases, remove auto-bids, and change notification preferences. Actions can spend your server currency. Requires User Premium or Server Premium Combo for the selected server.
- server:read
- Read events, settings, and community data in the servers you select. Requires Server Premium and your existing server permissions.
- server:write
- Create or change events and server settings using your existing permissions. Requires Server Premium for each server.
- feedback:write
- Send bug reports and MCP improvement suggestions to the Prize Bot team's Discord feedback channel, attributed to your account and this application. Requires no Premium plan.
What agents can do
- Server tools: manage auctions, giveaways, claims, shops, tickets, currency settings, and status boards, including uploading auction images.
Auction tools use the same currency, payment, and bidding defaults as the dashboard; see Auctions. They can't change sleep timers. MCP can't manage billing, custom bot tokens, currency balances, claim creation, giveaway duplication, or creating and changing auto-bids. Use the dashboard or Discord commands for those.
Instructions for agents
Read prizebot://docs/agent-guide with resources/read, or call read_agent_guide if the
client doesn't support resources. The guide covers permissions, safe
writes, retries, image uploads, feedback reports, and error recovery. Use tools/list for each tool's inputs.
Revoke or reconnect
To disconnect an application, open Connections and select Revoke access. Actions it already took stay done.
A connection lasts as long as the dashboard session you approved it from, normally 7 days after you sign in. Signing out ends it. To reconnect, or to change scopes or servers, authorize the client again.
Troubleshooting
| Problem | Fix |
|---|---|
| Sign-in fails | Check that the client supports remote MCP OAuth with PKCE, then start a new connection. Don't reuse an old authorization link. |
| Access denied | Check the granted scope, the selected server, your Discord permissions, and the Premium plan. |
| A server is missing | Prize Bot must be in the server. For management, the server needs Server Premium and you need Manage Server or Administrator. |
| Connection expired | Authorize again. Retrying the old credential doesn't work after a revoke or sign-out. |