← All agents
Connect OpenCode to Shorty
Add Shorty to `opencode.json` as a remote MCP server.
1. Project config
opencode.json{ "mcp": { "shorty": { "type": "remote", "url": "https://aishorty.com/api/mcp", "enabled": true } } }
Verify it worked
Call the MCP tool `get_usage_quota` (or `curl -s https://aishorty.com/v1/usage -H "Authorization: Bearer $SHORTY_API_KEY"` for the REST API)
Success: A JSON body naming a plan (Free, Premium, or Pro) and usage limits — not a 401 or a tool-not-found error.