Call the Script Monitoring MCP tools over plain REST for scripts and CI. Same sign-in, limits and audit log as MCP, with an OpenAPI document.
The MCP server also answers plain REST calls. Every MCP tool is one REST endpoint, so a script or a CI job can use the same tools an assistant uses. REST and MCP share the same sign-in, the same limits and the same audit log.
What are the endpoints?#
Use the same host as the MCP server, https://mcp.scriptmonitoring.com.
| Method and path | What it does |
|---|---|
GET /api/v1/tools | Lists the tools your connection can use, with their input and output schemas. |
POST /api/v1/tools/{name} | Runs one tool. The body is a JSON object with the tool's arguments. |
GET /api/v1/openapi.json | The OpenAPI document for all tools. It needs no sign-in. |
How do I sign in?#
Send the OAuth access token of your connection as a bearer token:
curl -s https://mcp.scriptmonitoring.com/api/v1/tools/sm_list_teams \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
It is the same token an MCP client gets when you approve a connection, so it has the same access: read only or Read and make changes, and only your teams. A missing or invalid token gets HTTP 401. See Access and limits. Treat the token like a password and never commit it.
What does an answer look like?#
A tool that returns structured data answers with {"data": ...}. A tool that returns text answers with {"text": "..."}. Answers are never cached.
An error answers with a JSON body:
{
"code": "forbidden_role",
"message": "...",
"dashboard_url": "https://app.scriptmonitoring.com/..."
}
dashboard_url is there when a dashboard page does what MCP can't, so your script can show the link to a person. A preview of a change also returns a confirm_token.
| Status | Meaning |
|---|---|
| 200 | The tool ran. |
| 400 | Invalid arguments, or the tool refused the request. |
| 401 | Missing or invalid bearer token. |
| 403 | Refused: your role, a read only connection, or changes not turned on. |
| 404 | Unknown tool or id. |
| 409 | A change needs confirming: repeat the call with confirm and the confirm_token. |
| 429 | Too many requests. Wait the seconds in Retry-After. |
| 502 | A service behind the tool failed. Retry later. |
What are the limits?#
The limits are the ones MCP has: about 2 requests per second with bursts of 5, and 2 tool calls at the same time for each user. Changes follow the same rules too: a connection approved for changes, the Admin role, changes turned on, and a preview before every confirmed change. See How do changes work?
The REST API has no CORS and no cookies. Browsers can't call it from another site.
Frequently asked questions#
Do I need an API key?
No. REST uses the same OAuth access token as the MCP server, sent as a bearer token. API keys from Developers > API keys don't work here.
Can I call it from a web page?
No. The REST API has no CORS and no cookies, so browsers can't call it from another site. Call it from a server, a script or CI.
Is it a different set of tools?
No. REST and MCP run the same tools through the same checks. A call that MCP refuses, REST refuses too.