mcp-scraper 0.9.0 → 0.11.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/README.md +4 -4
- package/dist/bin/api-server.cjs +180 -9
- package/dist/bin/api-server.cjs.map +1 -1
- package/dist/bin/api-server.js +1 -1
- package/dist/bin/mcp-scraper-cli.cjs +1 -1
- package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
- package/dist/bin/mcp-scraper-cli.js +1 -1
- package/dist/bin/mcp-scraper-install.cjs +2 -2
- package/dist/bin/mcp-scraper-install.cjs.map +1 -1
- package/dist/bin/mcp-scraper-install.js +2 -2
- package/dist/bin/mcp-stdio-server.cjs +98 -6
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +3 -3
- package/dist/{chunk-5HNHYUJ5.js → chunk-D3AJWXA2.js} +2 -2
- package/dist/{chunk-5HNHYUJ5.js.map → chunk-D3AJWXA2.js.map} +1 -1
- package/dist/chunk-P2WZLJKQ.js +7 -0
- package/dist/chunk-P2WZLJKQ.js.map +1 -0
- package/dist/{chunk-FZG427QD.js → chunk-QJBWER2Q.js} +98 -6
- package/dist/chunk-QJBWER2Q.js.map +1 -0
- package/dist/{server-E34MNLI3.js → server-LRWHUBUN.js} +85 -6
- package/dist/server-LRWHUBUN.js.map +1 -0
- package/docs/mcp-tool-manifest.generated.json +11339 -1479
- package/docs/oauth-legal-review.md +38 -0
- package/package.json +1 -1
- package/dist/chunk-FZG427QD.js.map +0 -1
- package/dist/chunk-RD5JOAWS.js +0 -7
- package/dist/chunk-RD5JOAWS.js.map +0 -1
- package/dist/server-E34MNLI3.js.map +0 -1
|
@@ -7,16 +7,16 @@ import {
|
|
|
7
7
|
registerMemoryMcpTools,
|
|
8
8
|
registerPaaExtractorMcpTools,
|
|
9
9
|
registerSerpIntelligenceCaptureTools
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-QJBWER2Q.js";
|
|
11
11
|
import "../chunk-R7EETU7Z.js";
|
|
12
12
|
import "../chunk-HPV4VOQX.js";
|
|
13
13
|
import {
|
|
14
14
|
renderInstallTerminal
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-D3AJWXA2.js";
|
|
16
16
|
import "../chunk-XGIPATLV.js";
|
|
17
17
|
import {
|
|
18
18
|
PACKAGE_VERSION
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-P2WZLJKQ.js";
|
|
20
20
|
import "../chunk-HL33CGJF.js";
|
|
21
21
|
import "../chunk-M2S27J6Z.js";
|
|
22
22
|
|
|
@@ -50,7 +50,7 @@ function renderInstallTerminal(options) {
|
|
|
50
50
|
"1/1 install surfaces ready",
|
|
51
51
|
colorize("Newest: saved browser profiles that hold MANY site logins. Share the watch_url, user signs in, then verify with browser_profile_list. Browser sessions are direct/no-proxy by default.", "lime", color),
|
|
52
52
|
"",
|
|
53
|
-
`${colorize("Tools", "cyan", color)} ${colorize("(
|
|
53
|
+
`${colorize("Tools", "cyan", color)} ${colorize("(153 MCP tools)", "muted", color)}`,
|
|
54
54
|
toolRow("search", ["harvest_paa", "search_serp", "maps_search", "maps_place_intel"], color),
|
|
55
55
|
toolRow("extract", ["extract_url", "map_site_urls", "extract_site", "audit_site", "directory_workflow"], color),
|
|
56
56
|
toolRow("build", ["rank_tracker_workflow", "cron plan", "database prompt"], color),
|
|
@@ -101,4 +101,4 @@ function renderInstallTerminal(options) {
|
|
|
101
101
|
export {
|
|
102
102
|
renderInstallTerminal
|
|
103
103
|
};
|
|
104
|
-
//# sourceMappingURL=chunk-
|
|
104
|
+
//# sourceMappingURL=chunk-D3AJWXA2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/install-terminal.ts"],"sourcesContent":["export interface InstallTerminalOptions {\n color?: boolean\n version: string\n apiKeyConfigured?: boolean\n}\n\ntype Tone = 'cyan' | 'lime' | 'amber' | 'red' | 'muted' | 'bold'\n\nconst CODES: Record<Tone | 'reset', string> = {\n reset: '\\x1b[0m',\n cyan: '\\x1b[36m',\n lime: '\\x1b[32m',\n amber: '\\x1b[33m',\n red: '\\x1b[31m',\n muted: '\\x1b[90m',\n bold: '\\x1b[1m',\n}\n\nfunction colorize(value: string, tone: Tone, enabled: boolean): string {\n if (!enabled) return value\n return `${CODES[tone]}${value}${CODES.reset}`\n}\n\nfunction toolRow(label: string, tools: string[], enabled: boolean): string {\n const padded = label.padEnd(9, ' ')\n return ` ${colorize(padded, 'muted', enabled)} ${tools.join(colorize(' . ', 'muted', enabled))}`\n}\n\nexport function renderInstallTerminal(options: InstallTerminalOptions): string {\n const color = options.color ?? true\n const apiKeyValue = options.apiKeyConfigured ? '$MCP_SCRAPER_API_KEY' : 'sk_live_your_key'\n const ascii = String.raw`\n __ __ ____ ____ \n| \\/ |/ ___| _ \\\n| |\\/| | | | |_) |\n| | | | |___| __/\n|_| |_|\\____|_|\n\n ____ ____ ____ _ ____ _____ ____\n/ ___| / ___| _ \\ / \\ | _ \\| ____| _ \\\n\\___ \\| | | |_) | / _ \\ | |_) | _| | |_) |\n ___) | |___| _ < / ___ \\| __/| |___| _ <\n|____/ \\____|_| \\_\\/_/ \\_\\_| |_____|_| \\_\\\n`\n\n const claudeCommand = [\n `MCP_SCRAPER_API_KEY=${apiKeyValue} npx -y -p mcp-scraper@latest \\\\`,\n ' mcp-scraper-cli agent install claude --apply',\n ].join('\\n')\n\n const codexConfig = [\n '[mcp_servers.mcp-scraper]',\n 'command = \"npx\"',\n 'args = [\"-y\", \"-p\", \"mcp-scraper@latest\", \"mcp-scraper\"]',\n `env = { MCP_SCRAPER_API_KEY = \"${apiKeyValue}\" }`,\n ].join('\\n')\n\n return [\n colorize(`mcp-scraper v${options.version}`, 'bold', color),\n colorize('> mcp-scraper-install', 'muted', color),\n colorize(ascii, 'amber', color),\n `${colorize('MCP Scraper Agent', 'cyan', color)} . v${options.version} . mcpscraper.dev`,\n '1/1 install surfaces ready',\n colorize('Newest: saved browser profiles that hold MANY site logins. Share the watch_url, user signs in, then verify with browser_profile_list. Browser sessions are direct/no-proxy by default.', 'lime', color),\n '',\n `${colorize('Tools', 'cyan', color)} ${colorize('(
|
|
1
|
+
{"version":3,"sources":["../src/install-terminal.ts"],"sourcesContent":["export interface InstallTerminalOptions {\n color?: boolean\n version: string\n apiKeyConfigured?: boolean\n}\n\ntype Tone = 'cyan' | 'lime' | 'amber' | 'red' | 'muted' | 'bold'\n\nconst CODES: Record<Tone | 'reset', string> = {\n reset: '\\x1b[0m',\n cyan: '\\x1b[36m',\n lime: '\\x1b[32m',\n amber: '\\x1b[33m',\n red: '\\x1b[31m',\n muted: '\\x1b[90m',\n bold: '\\x1b[1m',\n}\n\nfunction colorize(value: string, tone: Tone, enabled: boolean): string {\n if (!enabled) return value\n return `${CODES[tone]}${value}${CODES.reset}`\n}\n\nfunction toolRow(label: string, tools: string[], enabled: boolean): string {\n const padded = label.padEnd(9, ' ')\n return ` ${colorize(padded, 'muted', enabled)} ${tools.join(colorize(' . ', 'muted', enabled))}`\n}\n\nexport function renderInstallTerminal(options: InstallTerminalOptions): string {\n const color = options.color ?? true\n const apiKeyValue = options.apiKeyConfigured ? '$MCP_SCRAPER_API_KEY' : 'sk_live_your_key'\n const ascii = String.raw`\n __ __ ____ ____ \n| \\/ |/ ___| _ \\\n| |\\/| | | | |_) |\n| | | | |___| __/\n|_| |_|\\____|_|\n\n ____ ____ ____ _ ____ _____ ____\n/ ___| / ___| _ \\ / \\ | _ \\| ____| _ \\\n\\___ \\| | | |_) | / _ \\ | |_) | _| | |_) |\n ___) | |___| _ < / ___ \\| __/| |___| _ <\n|____/ \\____|_| \\_\\/_/ \\_\\_| |_____|_| \\_\\\n`\n\n const claudeCommand = [\n `MCP_SCRAPER_API_KEY=${apiKeyValue} npx -y -p mcp-scraper@latest \\\\`,\n ' mcp-scraper-cli agent install claude --apply',\n ].join('\\n')\n\n const codexConfig = [\n '[mcp_servers.mcp-scraper]',\n 'command = \"npx\"',\n 'args = [\"-y\", \"-p\", \"mcp-scraper@latest\", \"mcp-scraper\"]',\n `env = { MCP_SCRAPER_API_KEY = \"${apiKeyValue}\" }`,\n ].join('\\n')\n\n return [\n colorize(`mcp-scraper v${options.version}`, 'bold', color),\n colorize('> mcp-scraper-install', 'muted', color),\n colorize(ascii, 'amber', color),\n `${colorize('MCP Scraper Agent', 'cyan', color)} . v${options.version} . mcpscraper.dev`,\n '1/1 install surfaces ready',\n colorize('Newest: saved browser profiles that hold MANY site logins. Share the watch_url, user signs in, then verify with browser_profile_list. Browser sessions are direct/no-proxy by default.', 'lime', color),\n '',\n `${colorize('Tools', 'cyan', color)} ${colorize('(153 MCP tools)', 'muted', color)}`,\n toolRow('search', ['harvest_paa', 'search_serp', 'maps_search', 'maps_place_intel'], color),\n toolRow('extract', ['extract_url', 'map_site_urls', 'extract_site', 'audit_site', 'directory_workflow'], color),\n toolRow('build', ['rank_tracker_workflow', 'cron plan', 'database prompt'], color),\n toolRow('media', ['youtube_harvest', 'youtube_transcribe', 'facebook_ad_search', 'facebook_page_intel', 'facebook_ad_transcribe', 'facebook_video_transcribe', 'instagram_profile_content', 'instagram_media_download', 'reddit_thread'], color),\n toolRow('browser', ['browser_open', 'browser_profile_connect', 'browser_profile_list', 'browser_close', 'browser_screenshot', 'browser_read', 'browser_locate', 'browser_replay_mark', 'browser_replay_annotate'], color),\n toolRow('account', ['credits_info', 'reports', 'MCP resources'], color),\n toolRow('memory', ['memory-put', 'memory-get', 'memory-search', 'list-vaults', 'record-fact', 'list-scheduled-actions'], color),\n `${colorize('Workflows', 'cyan', color)} ${colorize('(MCP + CLI + API)', 'muted', color)}`,\n toolRow('route', ['workflow_list', 'workflow_suggest', 'workflow_run', 'workflow_step', 'workflow_status', 'workflow_artifact_read'], color),\n toolRow('seo', ['directory', 'agent-packet', 'competitive audit', 'map/serp comparison', 'PAA/AIO briefs', 'scheduled runs'], color),\n '',\n colorize('Usage tips:', 'amber', color),\n 'Run mcp-scraper-install for this visible card. Run mcp-scraper-cli for setup utilities and subcommands.',\n 'Run mcp-scraper in a human terminal to print this card; MCP clients get the same command as a silent stdio server.',\n 'Explicit card command: npx -y -p mcp-scraper@latest mcp-scraper-install',\n 'Customer auth setup: run browser_profile_connect, send the watch_url, let the user sign in, then call browser_profile_list until AUTHENTICATED.',\n 'Stack logins / reconnect: run browser_profile_connect again with the same profile name and another domain to add accounts or refresh a login.',\n 'Start with workflow_suggest for broad jobs like market analysis, ICP research, CRO audits, brand briefs, content gaps, and AI visibility.',\n 'For MCP clients, use mcp-scraper so one install can mix SERP, Maps, browser, reports, and saved MCP resources.',\n 'If you hit the concurrency limit, add an extra slot for $5/month with mcp-scraper-cli billing concurrency checkout.',\n '',\n `${colorize('Ready.', 'lime', color)} Install the combined MCP server with one command:`,\n '',\n colorize('Setup doctor', 'amber', color),\n 'npx -y -p mcp-scraper@latest mcp-scraper-cli doctor',\n '',\n colorize('Hosted profile setup', 'amber', color),\n 'In your MCP client, call browser_profile_connect with email=\"seo@example.com\" and domain=\"chatgpt.com\".',\n 'Give the returned watch_url to the user. After they sign in, call browser_profile_list, then browser_open with the returned profile. Add more logins by calling browser_profile_connect again with the same profile and a new domain.',\n '',\n colorize('Claude Code one-command setup', 'amber', color),\n claudeCommand,\n 'Then fully exit Claude Code and open a new Claude terminal. Check with: claude mcp list',\n '',\n colorize('Codex config', 'amber', color),\n codexConfig,\n '',\n colorize('Claude Desktop Extension', 'amber', color),\n 'Download: https://mcpscraper.dev/downloads/mcp-scraper.mcpb',\n '',\n colorize('Safety note:', 'muted', color),\n 'mcp-scraper prints this card only when stdin/stdout are an interactive TTY. In MCP clients it writes only JSON-RPC to stdout.',\n 'Use --stdio or MCP_SCRAPER_FORCE_STDIO=1 to force server mode from a terminal.',\n '',\n ].join('\\n')\n}\n"],"mappings":";AAQA,IAAM,QAAwC;AAAA,EAC5C,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,EACP,KAA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AAAA,IACvC;AAAA,IACA;AAAA,IACA,SAAS,4BAA4B,SAAS,KAAK;AAAA,IACnD;AAAA,IACA;AAAA,IACA,SAAS,gBAAgB,SAAS,KAAK;AAAA,IACvC;AAAA,IACA;AAAA,IACA;AAAA,EACF,EAAE,KAAK,IAAI;AACb;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["export const PACKAGE_VERSION = '0.11.0'\n"],"mappings":";AAAO,IAAM,kBAAkB;","names":[]}
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-XGIPATLV.js";
|
|
18
18
|
import {
|
|
19
19
|
PACKAGE_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-P2WZLJKQ.js";
|
|
21
21
|
import {
|
|
22
22
|
MC_PER_CREDIT
|
|
23
23
|
} from "./chunk-HL33CGJF.js";
|
|
@@ -3867,9 +3867,46 @@ var ListServiceConnectionsOutputSchema = {
|
|
|
3867
3867
|
providerConfigKey: z.string(),
|
|
3868
3868
|
label: z.string(),
|
|
3869
3869
|
status: z.string(),
|
|
3870
|
-
actionsEnabled: z.boolean()
|
|
3870
|
+
actionsEnabled: z.boolean(),
|
|
3871
|
+
readTools: z.array(z.string()).describe("Tool names this connection can be read with via read_service_connection."),
|
|
3872
|
+
actionTools: z.array(z.string()).describe("Explicitly allowlisted write or mutation tool names callable through call_service_connection_action after actions are enabled for this connection."),
|
|
3873
|
+
vaultName: z.string().nullable().describe("Memory vault this connection's digest writes into, if it has run at least once. Search it with memory-search."),
|
|
3874
|
+
tableName: z.string().nullable().describe("Table this connection's digest writes structured rows into, if it has run at least once. Query it with table-query.")
|
|
3871
3875
|
}))
|
|
3872
3876
|
};
|
|
3877
|
+
var ReadServiceConnectionInputSchema = {
|
|
3878
|
+
connectionId: z.string().min(1).describe("A connectionId from list_service_connections."),
|
|
3879
|
+
tool: z.string().min(1).describe("One of that connection's readTools (from list_service_connections). An unlisted tool name is rejected with the allowed list."),
|
|
3880
|
+
args: z.record(z.string(), z.unknown()).optional().describe("Arguments for the tool, if it needs any (e.g. a channel id, a date filter).")
|
|
3881
|
+
};
|
|
3882
|
+
var ReadServiceConnectionOutputSchema = {
|
|
3883
|
+
ok: z.boolean(),
|
|
3884
|
+
result: z.unknown().optional(),
|
|
3885
|
+
error: NullableString
|
|
3886
|
+
};
|
|
3887
|
+
var CallServiceConnectionActionInputSchema = {
|
|
3888
|
+
connectionId: z.string().min(1).describe("A connectionId from list_service_connections with actionsEnabled true."),
|
|
3889
|
+
tool: z.string().min(1).describe("One exact tool name from that connection's actionTools. Arbitrary Nango action names are rejected server-side."),
|
|
3890
|
+
args: z.record(z.string(), z.unknown()).describe("Arguments required by the selected action. The provider action validates its own typed input before execution.")
|
|
3891
|
+
};
|
|
3892
|
+
var CallServiceConnectionActionOutputSchema = {
|
|
3893
|
+
ok: z.boolean(),
|
|
3894
|
+
result: z.unknown().optional(),
|
|
3895
|
+
error: NullableString
|
|
3896
|
+
};
|
|
3897
|
+
var SetScheduledActionConnectionsInputSchema = {
|
|
3898
|
+
scheduleActionId: z.string().min(1).describe("A scheduled action id returned by create-scheduled-action or list-scheduled-actions."),
|
|
3899
|
+
connections: z.array(z.object({
|
|
3900
|
+
connectionId: z.string().min(1).describe("A tenant-scoped connectionId from list_service_connections."),
|
|
3901
|
+
providerConfigKey: z.string().min(1).describe("The matching providerConfigKey returned with that connection."),
|
|
3902
|
+
allowedTools: z.array(z.string().min(1)).min(1).max(100).describe("Exact readTools and, only when live actions are enabled, actionTools this schedule may use.")
|
|
3903
|
+
}).strict()).max(20).describe("Exact connection and tool grants for this schedule. Pass an empty array to remove every external-service grant.")
|
|
3904
|
+
};
|
|
3905
|
+
var SetScheduledActionConnectionsOutputSchema = {
|
|
3906
|
+
ok: z.boolean(),
|
|
3907
|
+
connections: z.array(z.unknown()).optional(),
|
|
3908
|
+
error: NullableString
|
|
3909
|
+
};
|
|
3873
3910
|
var SlackSendMessageInputSchema = {
|
|
3874
3911
|
connectionId: z.string().min(1).describe("A Slack connectionId from list_service_connections, with actionsEnabled true."),
|
|
3875
3912
|
channel: z.string().min(1).describe(`Slack channel ID to send to, e.g. "C1234567890". Get this from the connection's own read tools, not guessed.`),
|
|
@@ -3906,6 +3943,19 @@ var GoogleCalendarCreateEventOutputSchema = {
|
|
|
3906
3943
|
result: z.unknown().optional(),
|
|
3907
3944
|
error: NullableString
|
|
3908
3945
|
};
|
|
3946
|
+
var ZoomCreateMeetingInputSchema = {
|
|
3947
|
+
connectionId: z.string().min(1).describe("A Zoom connectionId from list_service_connections, with actionsEnabled true."),
|
|
3948
|
+
topic: z.string().min(1).max(200).describe("Meeting topic/title."),
|
|
3949
|
+
startDateTime: z.string().min(1).describe('Start time, ISO 8601, e.g. "2026-07-15T09:00:00-06:00".'),
|
|
3950
|
+
durationMinutes: z.number().int().min(1).max(1440).default(30).describe("Meeting duration in minutes. Default 30."),
|
|
3951
|
+
timezone: z.string().max(100).optional().describe('IANA timezone, e.g. "America/Denver".'),
|
|
3952
|
+
agenda: z.string().max(2e3).optional().describe("Meeting description/agenda.")
|
|
3953
|
+
};
|
|
3954
|
+
var ZoomCreateMeetingOutputSchema = {
|
|
3955
|
+
ok: z.boolean(),
|
|
3956
|
+
result: z.unknown().optional(),
|
|
3957
|
+
error: NullableString
|
|
3958
|
+
};
|
|
3909
3959
|
|
|
3910
3960
|
// src/mcp/rank-tracker-blueprint.ts
|
|
3911
3961
|
var DEFAULT_MODES = ["maps", "organic", "ai_overview", "paa"];
|
|
@@ -4579,7 +4629,7 @@ function registerPaaExtractorMcpTools(server, executor, options = {}) {
|
|
|
4579
4629
|
}, async (input) => formatCreditsInfo(await executor.creditsInfo(input), input));
|
|
4580
4630
|
server.registerTool("list_service_connections", {
|
|
4581
4631
|
title: "List Connected Services",
|
|
4582
|
-
description: "List
|
|
4632
|
+
description: "List every third-party service connection this MCP Scraper account has authorized, including Google Analytics, YouTube, Facebook Pages, LinkedIn, X, Meta Marketing, Slack, Gmail, Calendar, Drive, Zoom, Xero, and others. Returns the tenant-scoped connectionId plus exact readTools and actionTools. Get a connectionId and exact tool name here before calling read_service_connection or call_service_connection_action. For already-digested history, prefer the returned vaultName or tableName.",
|
|
4583
4633
|
inputSchema: ListServiceConnectionsInputSchema,
|
|
4584
4634
|
outputSchema: recordOutputSchema("list_service_connections", ListServiceConnectionsOutputSchema),
|
|
4585
4635
|
annotations: { title: "List Connected Services", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false }
|
|
@@ -4605,6 +4655,34 @@ function registerPaaExtractorMcpTools(server, executor, options = {}) {
|
|
|
4605
4655
|
outputSchema: recordOutputSchema("google_calendar_create_event", GoogleCalendarCreateEventOutputSchema),
|
|
4606
4656
|
annotations: { title: "Create Calendar Event", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true }
|
|
4607
4657
|
}, async (input) => executor.googleCalendarCreateEvent(input));
|
|
4658
|
+
server.registerTool("zoom_create_meeting", {
|
|
4659
|
+
title: "Create Zoom Meeting",
|
|
4660
|
+
description: "Create a meeting on a connected, action-enabled Zoom connection. Requires a connectionId from list_service_connections with actionsEnabled true; the person must have explicitly turned actions on for that connection.",
|
|
4661
|
+
inputSchema: ZoomCreateMeetingInputSchema,
|
|
4662
|
+
outputSchema: recordOutputSchema("zoom_create_meeting", ZoomCreateMeetingOutputSchema),
|
|
4663
|
+
annotations: { title: "Create Zoom Meeting", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true }
|
|
4664
|
+
}, async (input) => executor.zoomCreateMeeting(input));
|
|
4665
|
+
server.registerTool("read_service_connection", {
|
|
4666
|
+
title: "Read Connected Service",
|
|
4667
|
+
description: "Call one live, read-only tool on any connected service, including Google Analytics, YouTube, Facebook Pages, LinkedIn, X, Slack, Gmail, Calendar, Drive, Zoom, and Xero. Requires a connectionId and an exact name from that connection's readTools in list_service_connections; an unlisted tool is rejected server-side. For already-digested history, prefer memory-search over vaultName or table-query over tableName.",
|
|
4668
|
+
inputSchema: ReadServiceConnectionInputSchema,
|
|
4669
|
+
outputSchema: recordOutputSchema("read_service_connection", ReadServiceConnectionOutputSchema),
|
|
4670
|
+
annotations: { title: "Read Connected Service", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true }
|
|
4671
|
+
}, async (input) => executor.readServiceConnection(input));
|
|
4672
|
+
server.registerTool("call_service_connection_action", {
|
|
4673
|
+
title: "Run Connected Service Action",
|
|
4674
|
+
description: "Run one explicitly allowlisted write or mutation on a tenant-owned OAuth connection. First call list_service_connections, use a connection with actionsEnabled true, choose one exact actionTools entry, and supply that action's arguments. The server rejects arbitrary action names, inactive or foreign connections, disabled actions, and tools outside the provider allowlist. This may publish, update, send, subscribe, or delete provider data depending on the chosen tool.",
|
|
4675
|
+
inputSchema: CallServiceConnectionActionInputSchema,
|
|
4676
|
+
outputSchema: recordOutputSchema("call_service_connection_action", CallServiceConnectionActionOutputSchema),
|
|
4677
|
+
annotations: { title: "Run Connected Service Action", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true }
|
|
4678
|
+
}, async (input) => executor.callServiceConnectionAction(input));
|
|
4679
|
+
server.registerTool("set_scheduled_action_connections", {
|
|
4680
|
+
title: "Set Scheduled Action Connections",
|
|
4681
|
+
description: "Attach exact tenant-owned OAuth connections and exact allowed tools to an existing scheduled action. First create or identify the schedule, call list_service_connections, then grant only the required readTools and\u2014when that account has actionsEnabled true\u2014the required actionTools. The server verifies schedule ownership, connection ownership, provider policy, and the per-account action switch. Pass an empty connections array to remove all external-service access from the schedule.",
|
|
4682
|
+
inputSchema: SetScheduledActionConnectionsInputSchema,
|
|
4683
|
+
outputSchema: recordOutputSchema("set_scheduled_action_connections", SetScheduledActionConnectionsOutputSchema),
|
|
4684
|
+
annotations: { title: "Set Scheduled Action Connections", readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false }
|
|
4685
|
+
}, async (input) => executor.setScheduledActionConnections(input));
|
|
4608
4686
|
}
|
|
4609
4687
|
|
|
4610
4688
|
// src/mcp/http-mcp-tool-executor.ts
|
|
@@ -4677,10 +4755,10 @@ var HttpMcpToolExecutor = class {
|
|
|
4677
4755
|
const configuredSerpIntelligenceTimeoutMs = Number(process.env.MCP_SCRAPER_SERP_INTELLIGENCE_HTTP_TIMEOUT_MS ?? this.timeoutMs);
|
|
4678
4756
|
this.serpIntelligenceTimeoutMs = Number.isFinite(configuredSerpIntelligenceTimeoutMs) && configuredSerpIntelligenceTimeoutMs > 0 ? configuredSerpIntelligenceTimeoutMs : this.timeoutMs;
|
|
4679
4757
|
}
|
|
4680
|
-
async call(path, body, timeoutMs = this.timeoutMs) {
|
|
4758
|
+
async call(path, body, timeoutMs = this.timeoutMs, method = "POST") {
|
|
4681
4759
|
try {
|
|
4682
4760
|
const res = await fetch(`${this.baseUrl}${path}`, {
|
|
4683
|
-
method
|
|
4761
|
+
method,
|
|
4684
4762
|
headers: {
|
|
4685
4763
|
"Content-Type": "application/json",
|
|
4686
4764
|
"x-api-key": this.apiKey
|
|
@@ -4901,6 +4979,20 @@ var HttpMcpToolExecutor = class {
|
|
|
4901
4979
|
googleCalendarCreateEvent(input) {
|
|
4902
4980
|
return this.call("/schedule-connections/actions/google-calendar/create-event", input);
|
|
4903
4981
|
}
|
|
4982
|
+
zoomCreateMeeting(input) {
|
|
4983
|
+
return this.call("/schedule-connections/actions/zoom/create-meeting", input);
|
|
4984
|
+
}
|
|
4985
|
+
readServiceConnection(input) {
|
|
4986
|
+
return this.call("/schedule-connections/actions/read", input);
|
|
4987
|
+
}
|
|
4988
|
+
callServiceConnectionAction(input) {
|
|
4989
|
+
return this.call("/schedule-connections/actions/call", input);
|
|
4990
|
+
}
|
|
4991
|
+
setScheduledActionConnections(input) {
|
|
4992
|
+
return this.call(`/schedule-actions/${encodeURIComponent(input.scheduleActionId)}/connections`, {
|
|
4993
|
+
connections: input.connections
|
|
4994
|
+
}, void 0, "PUT");
|
|
4995
|
+
}
|
|
4904
4996
|
captureSerpSnapshot(input) {
|
|
4905
4997
|
return this.call("/serp-intelligence/capture", input, this.serpIntelligenceTimeoutMs);
|
|
4906
4998
|
}
|
|
@@ -8854,4 +8946,4 @@ export {
|
|
|
8854
8946
|
registerMemoryMcpTools,
|
|
8855
8947
|
MemoryMcpToolExecutor
|
|
8856
8948
|
};
|
|
8857
|
-
//# sourceMappingURL=chunk-
|
|
8949
|
+
//# sourceMappingURL=chunk-QJBWER2Q.js.map
|