@cookiemunch/mcp 0.6.0 → 0.7.1
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 +9 -0
- package/dist/bin.cjs +27 -3
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-6NEWNBRL.js → chunk-3C3J6N2L.js} +28 -4
- package/dist/{chunk-6NEWNBRL.js.map → chunk-3C3J6N2L.js.map} +1 -1
- package/dist/index.cjs +27 -3
- 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/index.cjs
CHANGED
|
@@ -825,7 +825,7 @@ function registerIntegrationTools(tool, client) {
|
|
|
825
825
|
);
|
|
826
826
|
tool(
|
|
827
827
|
"get_embed_manifest",
|
|
828
|
-
"A site\u2019s embed manifest (the tenant variant of /.well-known/
|
|
828
|
+
"A site\u2019s embed manifest (the tenant variant of /.well-known/cookiemunch-embed.json): every origin the Cookie Munch embed touches on that site, by CSP directive (non-origin sources such as 'unsafe-inline' under requires), every cookie and browser-storage key it writes with category and lifetime, the checkers\u2019 User-Agent, and the hosts of the site\u2019s rights page and preference centre. Use it to build a Content-Security-Policy. Read-only.",
|
|
829
829
|
{ cbid: import_zod3.z.string() },
|
|
830
830
|
(a) => client.embedManifest(a.cbid)
|
|
831
831
|
);
|
|
@@ -890,6 +890,30 @@ function registerKeyAndTagTools(tool, client) {
|
|
|
890
890
|
{},
|
|
891
891
|
() => client.keys.self()
|
|
892
892
|
);
|
|
893
|
+
tool(
|
|
894
|
+
"list_api_versions",
|
|
895
|
+
"The dated API versions, what each one changed, and the version the key this server runs with is pinned to (`yours`). Read-only.",
|
|
896
|
+
{},
|
|
897
|
+
() => client.versions()
|
|
898
|
+
);
|
|
899
|
+
tool(
|
|
900
|
+
"set_own_api_version",
|
|
901
|
+
"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.",
|
|
902
|
+
{ apiVersion: import_zod4.z.string().describe("A version from list_api_versions, e.g. 2026-10-24.") },
|
|
903
|
+
(a) => client.keys.updateSelf({ apiVersion: a.apiVersion })
|
|
904
|
+
);
|
|
905
|
+
tool(
|
|
906
|
+
"get_sandbox",
|
|
907
|
+
"The organisation\u2019s sandbox (a separate test organisation with the same people and plan features, never billed), or null. Read-only.",
|
|
908
|
+
{},
|
|
909
|
+
() => client.sandbox.get()
|
|
910
|
+
);
|
|
911
|
+
tool(
|
|
912
|
+
"create_sandbox",
|
|
913
|
+
"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.",
|
|
914
|
+
{ keyName: import_zod4.z.string().min(1).max(100).optional().describe('A name for the new key. Default "sandbox".') },
|
|
915
|
+
(a) => client.sandbox.create(a.keyName !== void 0 ? { keyName: a.keyName } : {})
|
|
916
|
+
);
|
|
893
917
|
tool(
|
|
894
918
|
"list_api_keys_standard",
|
|
895
919
|
"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.",
|
|
@@ -1964,7 +1988,7 @@ ${JSON.stringify(r, null, 2)}` : r;
|
|
|
1964
1988
|
);
|
|
1965
1989
|
tool(
|
|
1966
1990
|
"import_cookie_manifest",
|
|
1967
|
-
'Declare ANY vendor\u2019s cookies and browser storage from its embed manifest (/.well-known
|
|
1991
|
+
'Declare ANY vendor\u2019s cookies and browser storage from its embed manifest (/.well-known/<product>-embed.json): give its https URL (re-read hourly afterwards) or the manifest document. The vendor id is the manifest\u2019s product; rows are marked source "manifest". An invalid manifest is refused with each broken rule named. Use dryRun first; remove it with remove_cookie_preset and the product id.',
|
|
1968
1992
|
{
|
|
1969
1993
|
cbid: import_zod6.z.string(),
|
|
1970
1994
|
url: import_zod6.z.string().optional().describe("An https:// embed manifest URL."),
|
|
@@ -2421,7 +2445,7 @@ ${JSON.stringify(r, null, 2)}` : r;
|
|
|
2421
2445
|
}
|
|
2422
2446
|
|
|
2423
2447
|
// src/index.ts
|
|
2424
|
-
var MCP_VERSION = "0.
|
|
2448
|
+
var MCP_VERSION = "0.7.1";
|
|
2425
2449
|
function createCookieMunchMcp(opts) {
|
|
2426
2450
|
const client = opts.client ?? (0, import_sdk.createCookieMunch)({ apiKey: opts.apiKey, baseUrl: opts.baseUrl, userAgent: opts.userAgent ?? `cookiemunch-mcp/${MCP_VERSION}` });
|
|
2427
2451
|
const server = new import_mcp.McpServer({ name: "cookiemunch", version: "1.0.0" });
|