mcp-scraper 0.26.3 → 0.28.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 +525 -283
- package/dist/bin/api-server.cjs.map +1 -1
- package/dist/bin/api-server.js +2 -2
- package/dist/bin/mcp-scraper-cli.cjs +3 -2
- package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
- package/dist/bin/mcp-scraper-cli.js +3 -3
- 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 +62 -10
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +4 -4
- package/dist/bin/paa-harvest.cjs +2 -1
- package/dist/bin/paa-harvest.cjs.map +1 -1
- package/dist/bin/paa-harvest.js +2 -2
- package/dist/{chunk-TBRX7VOP.js → chunk-DUS4ENOY.js} +2 -2
- package/dist/{chunk-TBRX7VOP.js.map → chunk-DUS4ENOY.js.map} +1 -1
- package/dist/{chunk-FUWZWKGO.js → chunk-KAMKTSJQ.js} +2 -2
- package/dist/{chunk-73YM3DEB.js → chunk-LTT7QX3C.js} +61 -10
- package/dist/chunk-LTT7QX3C.js.map +1 -0
- package/dist/chunk-QG77M3YJ.js +7 -0
- package/dist/chunk-QG77M3YJ.js.map +1 -0
- package/dist/{chunk-E5J4HJBO.js → chunk-YH5DRFWQ.js} +4 -2
- package/dist/{chunk-XGIPATLV.js → chunk-ZQSHKWV4.js} +3 -2
- package/dist/chunk-ZQSHKWV4.js.map +1 -0
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/{server-GN34MGAE.js → server-QQB4BNAB.js} +449 -267
- package/dist/server-QQB4BNAB.js.map +1 -0
- package/dist/{worker-E3KHQH2F.js → worker-RYP5EOV5.js} +3 -3
- package/docs/mcp-tool-manifest.generated.json +128 -9
- package/package.json +2 -2
- package/dist/chunk-27VXTOD2.js +0 -7
- package/dist/chunk-27VXTOD2.js.map +0 -1
- package/dist/chunk-73YM3DEB.js.map +0 -1
- package/dist/chunk-XGIPATLV.js.map +0 -1
- package/dist/server-GN34MGAE.js.map +0 -1
- /package/dist/{chunk-FUWZWKGO.js.map → chunk-KAMKTSJQ.js.map} +0 -0
- /package/dist/{chunk-E5J4HJBO.js.map → chunk-YH5DRFWQ.js.map} +0 -0
- /package/dist/{worker-E3KHQH2F.js.map → worker-RYP5EOV5.js.map} +0 -0
package/dist/bin/paa-harvest.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
harvest
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-YH5DRFWQ.js";
|
|
5
5
|
import {
|
|
6
6
|
browserServiceApiKey
|
|
7
7
|
} from "../chunk-MTSBI7ZH.js";
|
|
8
8
|
import "../chunk-K443GQY5.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-ZQSHKWV4.js";
|
|
10
10
|
import "../chunk-M2S27J6Z.js";
|
|
11
11
|
import "../chunk-ICT7DDHL.js";
|
|
12
12
|
|
|
@@ -50,7 +50,7 @@ function renderInstallTerminal(options) {
|
|
|
50
50
|
"1/1 install surfaces ready",
|
|
51
51
|
colorize("Newest: any approved connection read can become an indexed Memory snapshot in one call. OAuth stays tenant-isolated and provider content is redacted and marked untrusted.", "lime", color),
|
|
52
52
|
"",
|
|
53
|
-
`${colorize("Tools", "cyan", color)} ${colorize("(
|
|
53
|
+
`${colorize("Tools", "cyan", color)} ${colorize("(165 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),
|
|
@@ -105,4 +105,4 @@ function renderInstallTerminal(options) {
|
|
|
105
105
|
export {
|
|
106
106
|
renderInstallTerminal
|
|
107
107
|
};
|
|
108
|
-
//# sourceMappingURL=chunk-
|
|
108
|
+
//# sourceMappingURL=chunk-DUS4ENOY.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: any approved connection read can become an indexed Memory snapshot in one call. OAuth stays tenant-isolated and provider content is redacted and marked untrusted.', '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: any approved connection read can become an indexed Memory snapshot in one call. OAuth stays tenant-isolated and provider content is redacted and marked untrusted.', 'lime', color),\n '',\n `${colorize('Tools', 'cyan', color)} ${colorize('(165 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('connect', ['list_service_connections', 'describe_service_connection_tool', 'import_service_connection_to_memory', 'export_connected_service_data', 'renew_connected_data_download', 'read_service_connection', 'call_service_connection_action'], 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 'Hosted browser sessions use direct/no-proxy egress by default.',\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 'Connected account ranges: call export_connected_service_data once. It handles Gmail, Calendar, Zoom, and Resend pagination; do not loop read_service_connection over individual records.',\n 'Connected account RAG: call import_service_connection_to_memory for one bounded approved read. It writes a redacted, untrusted snapshot to a stable Memory path and embeds it for search.',\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,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AACR;AAEA,SAAS,SAAS,OAAe,MAAY,SAA0B;AACrE,MAAI,CAAC,QAAS,QAAO;AACrB,SAAO,GAAG,MAAM,IAAI,CAAC,GAAG,KAAK,GAAG,MAAM,KAAK;AAC7C;AAEA,SAAS,QAAQ,OAAe,OAAiB,SAA0B;AACzE,QAAM,SAAS,MAAM,OAAO,GAAG,GAAG;AAClC,SAAO,KAAK,SAAS,QAAQ,SAAS,OAAO,CAAC,IAAI,MAAM,KAAK,SAAS,SAAS,SAAS,OAAO,CAAC,CAAC;AACnG;AAEO,SAAS,sBAAsB,SAAyC;AAC7E,QAAM,QAAQ,QAAQ,SAAS;AAC/B,QAAM,cAAc,QAAQ,mBAAmB,yBAAyB;AACxE,QAAM,QAAQ,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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ib/slugify.ts
|
|
9
9
|
function slugify(s) {
|
|
@@ -1925,4 +1925,4 @@ export {
|
|
|
1925
1925
|
runWorkflow,
|
|
1926
1926
|
runWorkflowStep
|
|
1927
1927
|
};
|
|
1928
|
-
//# sourceMappingURL=chunk-
|
|
1928
|
+
//# sourceMappingURL=chunk-KAMKTSJQ.js.map
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_MAPS_PROXY_MODE,
|
|
18
18
|
DEFAULT_PROXY_MODE
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZQSHKWV4.js";
|
|
20
20
|
import {
|
|
21
21
|
PACKAGE_VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QG77M3YJ.js";
|
|
23
23
|
import {
|
|
24
24
|
MC_PER_CREDIT
|
|
25
25
|
} from "./chunk-4767BA2O.js";
|
|
@@ -2420,7 +2420,10 @@ function formatMapsSearch(raw, input) {
|
|
|
2420
2420
|
const normalizedResults = results.map((result) => ({
|
|
2421
2421
|
...result,
|
|
2422
2422
|
phone: result.phone ?? null,
|
|
2423
|
-
hoursStatus: result.hoursStatus ?? null
|
|
2423
|
+
hoursStatus: result.hoursStatus ?? null,
|
|
2424
|
+
services: result.services ?? [],
|
|
2425
|
+
areasServed: result.areasServed ?? [],
|
|
2426
|
+
profileDetailsStatus: result.profileDetailsStatus ?? "unavailable"
|
|
2424
2427
|
}));
|
|
2425
2428
|
const searchQuery = d.searchQuery ?? [input.query, input.location].filter(Boolean).join(" ");
|
|
2426
2429
|
const requestedMax = d.requestedMaxResults ?? input.maxResults ?? 10;
|
|
@@ -2448,9 +2451,14 @@ ${meta}`;
|
|
|
2448
2451
|
|---|------|----------|--------|---------|-----|---------|------|
|
|
2449
2452
|
${rows}`,
|
|
2450
2453
|
metadataSection,
|
|
2454
|
+
results.some((result) => result.services?.length || result.areasServed?.length) ? `
|
|
2455
|
+
## Services and Areas Served
|
|
2456
|
+
${results.filter((result) => result.services?.length || result.areasServed?.length).map((result) => `### ${result.position}. ${result.name}
|
|
2457
|
+
${result.services?.length ? `- **Services:** ${result.services.join(", ")}` : ""}${result.areasServed?.length ? `
|
|
2458
|
+
- **Serves:** ${result.areasServed.join("; ")}` : ""}`).join("\n\n")}` : null,
|
|
2451
2459
|
`
|
|
2452
2460
|
---
|
|
2453
|
-
\u{1F4A1} **Next step:** use \`maps_place_intel\` with a selected business name and location
|
|
2461
|
+
\u{1F4A1} **Next step:** use \`maps_place_intel\` with a selected business name and location for full hours, review topics, and optional review cards. Set \`includeServices: true\` on this search to enrich the ranked list in one local-results session.`,
|
|
2454
2462
|
durationMs != null ? `
|
|
2455
2463
|
*Extracted in ${(durationMs / 1e3).toFixed(1)}s*` : null
|
|
2456
2464
|
].filter(Boolean).join("\n");
|
|
@@ -3600,8 +3608,9 @@ var MapsSearchInputSchema = {
|
|
|
3600
3608
|
gl: z.string().length(2).default("us").describe("Google country code inferred from location."),
|
|
3601
3609
|
hl: z.string().length(2).default("en").describe("Language inferred from user request."),
|
|
3602
3610
|
maxResults: z.number().int().min(1).max(50).default(10).describe("Number of candidates to return. Default 10, maximum 50."),
|
|
3603
|
-
|
|
3604
|
-
|
|
3611
|
+
includeServices: z.boolean().default(false).describe("Open each returned Google Business Profile and include configured services and areas served when available. Does not collect review cards."),
|
|
3612
|
+
proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_MAPS_PROXY_MODE).describe("Leave unset for the default direct browser route. Google localization comes from the city in the query plus UULE, gl, and hl. location is an explicit residential-proxy override."),
|
|
3613
|
+
proxyZip: z.string().regex(/^\d{5}$/).optional().describe("Optional US ZIP override when proxyMode is location."),
|
|
3605
3614
|
debug: z.boolean().default(false).describe("Include sanitized browser/proxy diagnostics.")
|
|
3606
3615
|
};
|
|
3607
3616
|
var DirectoryWorkflowInputSchema = {
|
|
@@ -3615,7 +3624,7 @@ var DirectoryWorkflowInputSchema = {
|
|
|
3615
3624
|
includeZipGroups: z.boolean().default(true).describe("Attach ZIP groups from a configured US ZIPS CSV when available (MCP_SCRAPER_USZIPS_CSV_PATH or usZipsCsvPath)."),
|
|
3616
3625
|
usZipsCsvPath: z.string().optional().describe("Local/test-only path to a US ZIPS CSV (state_abbr, zipcode, county, city columns). Deployed APIs should use MCP_SCRAPER_USZIPS_CSV_PATH instead. For ZIP enrichment, set MCP_SCRAPER_USZIPS_CSV_PATH on the server, or pass this in local/test mode."),
|
|
3617
3626
|
saveCsv: z.boolean().default(true).describe("Save a directory-ready CSV of results to the MCP Scraper output directory and return its path."),
|
|
3618
|
-
proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_MAPS_PROXY_MODE).describe("Proxy
|
|
3627
|
+
proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_MAPS_PROXY_MODE).describe("Proxy behavior per city search. Leave unset for the direct localized Google route; location is an explicit residential-proxy override."),
|
|
3619
3628
|
proxyZip: z.string().regex(/^\d{5}$/).optional().describe("Optional ZIP override for proxy targeting; normally omitted."),
|
|
3620
3629
|
debug: z.boolean().default(false).describe("Include sanitized browser/proxy diagnostics.")
|
|
3621
3630
|
};
|
|
@@ -3686,7 +3695,10 @@ var MapsSearchOutputSchema = {
|
|
|
3686
3695
|
hoursStatus: NullableString,
|
|
3687
3696
|
websiteUrl: NullableString,
|
|
3688
3697
|
directionsUrl: NullableString,
|
|
3689
|
-
metadata: z.array(z.string())
|
|
3698
|
+
metadata: z.array(z.string()),
|
|
3699
|
+
services: z.array(z.string()).default([]),
|
|
3700
|
+
areasServed: z.array(z.string()).default([]),
|
|
3701
|
+
profileDetailsStatus: z.enum(["collected", "none_exist", "unavailable", "not_requested"]).default("unavailable")
|
|
3690
3702
|
})),
|
|
3691
3703
|
attempts: z.array(MapsSearchAttemptOutput),
|
|
3692
3704
|
durationMs: z.number().int().min(0)
|
|
@@ -5424,7 +5436,7 @@ function registerPaaExtractorMcpTools(server, executor, options = {}) {
|
|
|
5424
5436
|
}, async (input) => formatMapsPlaceIntel(await executor.mapsPlaceIntel(input), input));
|
|
5425
5437
|
server.registerTool("maps_search", {
|
|
5426
5438
|
title: "Google Maps Business Search",
|
|
5427
|
-
description: "Search Google
|
|
5439
|
+
description: "Search Google local results for multiple businesses by category, niche, or local market \u2014 leads, prospects, competitors, or beyond the 3-pack. It paginates the rendered local-results list, opens each exact business card, then closes the profile dialog before continuing. Set includeServices for services and areas served; review cards are never collected by this tool.",
|
|
5428
5440
|
inputSchema: MapsSearchInputSchema,
|
|
5429
5441
|
outputSchema: recordOutputSchema("maps_search", MapsSearchOutputSchema),
|
|
5430
5442
|
annotations: liveWebToolAnnotations("Google Maps Business Search")
|
|
@@ -7669,6 +7681,25 @@ var GetChatLinkSchema = {
|
|
|
7669
7681
|
openWorldHint: false
|
|
7670
7682
|
}
|
|
7671
7683
|
};
|
|
7684
|
+
var GetVaultAppLinkSchema = {
|
|
7685
|
+
id: "get-vault-app-link",
|
|
7686
|
+
upstreamName: "getVaultAppLinkTool",
|
|
7687
|
+
description: "Get the durable, bookmarkable link to the mobile-first Vault App for People, Projects, and Tasks. The embedded secret is shown only once; revoke-vault-app-link then call this tool again to replace a link that was shared or leaked. This link is independent from Omni-Chat. Anyone holding it can use the Vault App as this identity.",
|
|
7688
|
+
input: {},
|
|
7689
|
+
output: {
|
|
7690
|
+
ok: z3.boolean().describe("True when the request succeeded."),
|
|
7691
|
+
url: z3.string().optional().describe("Vault App link. Present only when the secret is first minted; anyone holding it can use the Vault App as this identity."),
|
|
7692
|
+
alreadyExists: z3.boolean().optional().describe("True when an active Vault App link exists but its secret cannot be shown again."),
|
|
7693
|
+
error: z3.string().optional().describe("Human-readable error when the request cannot be completed.")
|
|
7694
|
+
},
|
|
7695
|
+
annotations: {
|
|
7696
|
+
title: "Get Vault App Link",
|
|
7697
|
+
readOnlyHint: false,
|
|
7698
|
+
destructiveHint: false,
|
|
7699
|
+
idempotentHint: false,
|
|
7700
|
+
openWorldHint: false
|
|
7701
|
+
}
|
|
7702
|
+
};
|
|
7672
7703
|
var InboxSettingsSchema = {
|
|
7673
7704
|
id: "access-inbox-settings",
|
|
7674
7705
|
upstreamName: "inboxSettingsTool",
|
|
@@ -7917,6 +7948,24 @@ var RevokeShareSchema = {
|
|
|
7917
7948
|
openWorldHint: false
|
|
7918
7949
|
}
|
|
7919
7950
|
};
|
|
7951
|
+
var RevokeVaultAppLinkSchema = {
|
|
7952
|
+
id: "revoke-vault-app-link",
|
|
7953
|
+
upstreamName: "revokeVaultAppLinkTool",
|
|
7954
|
+
description: "Immediately revoke the current Vault App link without touching the separate Omni-Chat link. Call get-vault-app-link afterward to mint a replacement.",
|
|
7955
|
+
input: {},
|
|
7956
|
+
output: {
|
|
7957
|
+
ok: z3.boolean().describe("True when the request succeeded."),
|
|
7958
|
+
revoked: z3.boolean().optional().describe("True when an active Vault App link was revoked."),
|
|
7959
|
+
error: z3.string().optional().describe("Human-readable error when the request cannot be completed.")
|
|
7960
|
+
},
|
|
7961
|
+
annotations: {
|
|
7962
|
+
title: "Revoke Vault App Link",
|
|
7963
|
+
readOnlyHint: false,
|
|
7964
|
+
destructiveHint: false,
|
|
7965
|
+
idempotentHint: true,
|
|
7966
|
+
openWorldHint: false
|
|
7967
|
+
}
|
|
7968
|
+
};
|
|
7920
7969
|
var SetAgentIdentitySchema = {
|
|
7921
7970
|
id: "set-agent-identity",
|
|
7922
7971
|
upstreamName: "setAgentIdentityTool",
|
|
@@ -9892,6 +9941,7 @@ var MEMORY_TOOL_SCHEMAS = [
|
|
|
9892
9941
|
ApproveSenderSchema,
|
|
9893
9942
|
DeclineShareSchema,
|
|
9894
9943
|
GetChatLinkSchema,
|
|
9944
|
+
GetVaultAppLinkSchema,
|
|
9895
9945
|
InboxSettingsSchema,
|
|
9896
9946
|
InviteAccountSchema,
|
|
9897
9947
|
IssueKeySchema,
|
|
@@ -9902,6 +9952,7 @@ var MEMORY_TOOL_SCHEMAS = [
|
|
|
9902
9952
|
RevokeChatLinkSchema,
|
|
9903
9953
|
RevokeKeySchema,
|
|
9904
9954
|
RevokeShareSchema,
|
|
9955
|
+
RevokeVaultAppLinkSchema,
|
|
9905
9956
|
SetAgentIdentitySchema,
|
|
9906
9957
|
SetScopeSchema,
|
|
9907
9958
|
ShareNoteSchema,
|
|
@@ -10018,4 +10069,4 @@ export {
|
|
|
10018
10069
|
MEMORY_TOOL_SCHEMAS,
|
|
10019
10070
|
registerMemoryMcpTools
|
|
10020
10071
|
};
|
|
10021
|
-
//# sourceMappingURL=chunk-
|
|
10072
|
+
//# sourceMappingURL=chunk-LTT7QX3C.js.map
|