@cookiemunch/mcp 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/dist/bin.cjs +25 -1
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-6NEWNBRL.js → chunk-QCLUFJZ5.js} +26 -2
- package/dist/{chunk-6NEWNBRL.js.map → chunk-QCLUFJZ5.js.map} +1 -1
- package/dist/index.cjs +25 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -864,6 +864,30 @@ function registerKeyAndTagTools(tool, client) {
|
|
|
864
864
|
{},
|
|
865
865
|
() => client.keys.self()
|
|
866
866
|
);
|
|
867
|
+
tool(
|
|
868
|
+
"list_api_versions",
|
|
869
|
+
"The dated API versions, what each one changed, and the version the key this server runs with is pinned to (`yours`). Read-only.",
|
|
870
|
+
{},
|
|
871
|
+
() => client.versions()
|
|
872
|
+
);
|
|
873
|
+
tool(
|
|
874
|
+
"set_own_api_version",
|
|
875
|
+
"Re-pin the key this server runs with to another dated API version (from list_api_versions). It changes how the API behaves for this key (for example strict request bodies from 2026-10-24), never what the key may do.",
|
|
876
|
+
{ apiVersion: z4.string().describe("A version from list_api_versions, e.g. 2026-10-24.") },
|
|
877
|
+
(a) => client.keys.updateSelf({ apiVersion: a.apiVersion })
|
|
878
|
+
);
|
|
879
|
+
tool(
|
|
880
|
+
"get_sandbox",
|
|
881
|
+
"The organisation\u2019s sandbox (a separate test organisation with the same people and plan features, never billed), or null. Read-only.",
|
|
882
|
+
{},
|
|
883
|
+
() => client.sandbox.get()
|
|
884
|
+
);
|
|
885
|
+
tool(
|
|
886
|
+
"create_sandbox",
|
|
887
|
+
"Make a sandbox of the organisation, or return the one it has, with a new test-format key for it (shown once). Everything in a sandbox is test data: its keys are cookiemunch_test_ keys and every rights request filed there is a test. Needs a full-access key or orgs:create.",
|
|
888
|
+
{ keyName: z4.string().min(1).max(100).optional().describe('A name for the new key. Default "sandbox".') },
|
|
889
|
+
(a) => client.sandbox.create(a.keyName !== void 0 ? { keyName: a.keyName } : {})
|
|
890
|
+
);
|
|
867
891
|
tool(
|
|
868
892
|
"list_api_keys_standard",
|
|
869
893
|
"The organisation\u2019s keys in the suite-standard shape (id, owner, kind, env, scopes, resources, created_at, expires_at, last_used_at, last_used_ip, status). Needs a full-access key. Read-only.",
|
|
@@ -2395,7 +2419,7 @@ ${JSON.stringify(r, null, 2)}` : r;
|
|
|
2395
2419
|
}
|
|
2396
2420
|
|
|
2397
2421
|
// src/index.ts
|
|
2398
|
-
var MCP_VERSION = "0.
|
|
2422
|
+
var MCP_VERSION = "0.7.0";
|
|
2399
2423
|
function createCookieMunchMcp(opts) {
|
|
2400
2424
|
const client = opts.client ?? createCookieMunch({ apiKey: opts.apiKey, baseUrl: opts.baseUrl, userAgent: opts.userAgent ?? `cookiemunch-mcp/${MCP_VERSION}` });
|
|
2401
2425
|
const server = new McpServer({ name: "cookiemunch", version: "1.0.0" });
|
|
@@ -2408,4 +2432,4 @@ export {
|
|
|
2408
2432
|
MCP_VERSION,
|
|
2409
2433
|
createCookieMunchMcp
|
|
2410
2434
|
};
|
|
2411
|
-
//# sourceMappingURL=chunk-
|
|
2435
|
+
//# sourceMappingURL=chunk-QCLUFJZ5.js.map
|