Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,24 @@
"mcpServers": {
"checkly": {
"type": "http",
"url": "https://api.checklyhq.com/mcp"
"url": "https://api.checklyhq.com/mcp",
"scopes": [
"checkly:account:read",
"checkly:account:invite",
"checkly:checks:read",
"checkly:checks:write",
"checkly:checks:run",
"checkly:incidents:read",
"checkly:incidents:write",
"checkly:environment-variables:read",
"checkly:environment-variables:write",
"checkly:status-pages:read",
"checkly:rca:read",
"checkly:rca:run",
"checkly:test-sessions:read",
"checkly:assets:read",
"checkly:usage:read"
]
}
}
}
28 changes: 28 additions & 0 deletions test/plugin-config.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { strict as assert } from "node:assert";
import { readFile } from "node:fs/promises";
import { join } from "node:path";
import { test } from "node:test";

const EXPECTED_CHECKLY_SCOPES = [
"checkly:account:read",
"checkly:account:invite",
"checkly:checks:read",
"checkly:checks:write",
"checkly:checks:run",
"checkly:incidents:read",
"checkly:incidents:write",
"checkly:environment-variables:read",
"checkly:environment-variables:write",
"checkly:status-pages:read",
"checkly:rca:read",
"checkly:rca:run",
"checkly:test-sessions:read",
"checkly:assets:read",
"checkly:usage:read",
];

test("Checkly MCP requests every supported OAuth scope", async () => {
const config = JSON.parse(await readFile(join(import.meta.dirname, "..", ".mcp.json"), "utf8"));

assert.deepEqual(config.mcpServers.checkly.scopes, EXPECTED_CHECKLY_SCOPES);
});
Loading