login
Authenticate with TOCOnline via OAuth by opening a browser for user consent. Saves credentials for subsequent tool calls without restart.
Instructions
Open a browser and complete OAuth login against TOCOnline.
The user must have registered http://127.0.0.1:<redirect_port>/callback
as a redirect URI in their TOCOnline integration. Credentials are stored
at ~/.config/toconline-mcp/credentials.json (mode 0600) and picked up
by subsequent tool calls without restarting the server.
This tool blocks for up to 3 minutes while waiting for the browser callback; ask the user to complete the consent promptly.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"client_id": "<client_id>",
"client_secret": "<client_secret>",
"auth_url": "<auth_url>",
"token_url": "<token_url>"
},
"name": "login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | OAuth scope. | commercial |
| api_base | No | TOCOnline API base URL. | https://apiv1.toconline.com |
| auth_url | Yes | OAuth authorization URL (TOCOnline provides OAUTH_URL/auth). | |
| client_id | Yes | TOCOnline OAuth client id. | |
| token_url | Yes | OAuth token URL (TOCOnline provides OAUTH_URL/token). | |
| client_secret | Yes | TOCOnline OAuth client secret. | |
| redirect_port | No | Local port for the OAuth callback listener. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||