@kadoa/mcp 0.4.0 → 0.4.1-rc.2

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.
Files changed (2) hide show
  1. package/dist/index.js +70 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -50355,7 +50355,9 @@ function registerTools(server, ctx) {
50355
50355
  return channels;
50356
50356
  }
50357
50357
  server.registerTool("create_workflow", {
50358
- description: "Create a data extraction workflow using agentic navigation. Supports one-time or scheduled runs. " + "If entity and schema are provided, they guide the extraction; otherwise the AI agent auto-detects the schema from the page. " + "The workflow runs asynchronously and may take several minutes. Do NOT poll or sleep-wait for completion. " + `Return the workflow ID to the user and let them check back later with get_workflow or fetch_data.
50358
+ description: "IMPORTANT: One workflow = one source. A single workflow can extract many different fields, tables, and sections from the same URL(s) using a rich schema. " + `Do NOT create separate workflows for different data points on the same page instead, define one workflow with a multi-field schema covering everything needed.
50359
+
50360
+ ` + "Create a data extraction workflow using agentic navigation. Supports one-time or scheduled runs. " + "If entity and schema are provided, they guide the extraction; otherwise the AI agent auto-detects the schema from the page. " + "The workflow runs asynchronously and may take several minutes. Do NOT poll or sleep-wait for completion. " + `Return the workflow ID to the user and let them check back later with get_workflow or fetch_data.
50359
50361
 
50360
50362
  ` + "NOTE: This tool is for one-time or scheduled extraction ONLY. " + "For continuous real-time monitoring (watching a page for changes and alerting), use the create_realtime_monitor tool instead.",
50361
50363
  inputSchema: strictSchema({
@@ -51334,6 +51336,58 @@ var init_tools = __esm(() => {
51334
51336
  };
51335
51337
  });
51336
51338
 
51339
+ // package.json
51340
+ var package_default;
51341
+ var init_package = __esm(() => {
51342
+ package_default = {
51343
+ name: "@kadoa/mcp",
51344
+ version: "0.4.1-rc.2",
51345
+ description: "Kadoa MCP Server — manage workflows from Claude Desktop, Cursor, and other MCP clients",
51346
+ type: "module",
51347
+ main: "dist/index.js",
51348
+ publishConfig: {
51349
+ access: "public"
51350
+ },
51351
+ files: [
51352
+ "dist",
51353
+ "README.md"
51354
+ ],
51355
+ scripts: {
51356
+ lint: "bunx biome check",
51357
+ "lint:fix": "bunx biome check --write",
51358
+ dev: "bun src/index.ts",
51359
+ build: "bun build src/index.ts --outdir=dist --target=node --external express --external ioredis",
51360
+ "check-types": "tsc --noEmit",
51361
+ test: "BUN_TEST=1 bun test",
51362
+ "test:unit": "BUN_TEST=1 bun test tests/unit --timeout=120000",
51363
+ "test:e2e": "BUN_TEST=1 bun test tests/e2e --timeout=600000",
51364
+ "test:eval": "BUN_TEST=1 bun test tests/evals --timeout=300000",
51365
+ prepublishOnly: "bun run check-types && bun run test:unit && bun run build"
51366
+ },
51367
+ dependencies: {
51368
+ "@kadoa/node-sdk": "^0.26.0",
51369
+ "@modelcontextprotocol/sdk": "^1.26.0",
51370
+ express: "^5.2.1",
51371
+ ioredis: "^5.6.1",
51372
+ zod: "^4.3.6"
51373
+ },
51374
+ devDependencies: {
51375
+ "@anthropic-ai/sdk": "^0.78.0",
51376
+ "@types/node": "^25.0.3",
51377
+ "bun-types": "^1.3.3",
51378
+ typescript: "^5.9.3"
51379
+ },
51380
+ keywords: [
51381
+ "kadoa",
51382
+ "mcp",
51383
+ "model-context-protocol",
51384
+ "web-scraping",
51385
+ "data-extraction"
51386
+ ],
51387
+ license: "MIT"
51388
+ };
51389
+ });
51390
+
51337
51391
  // node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js
51338
51392
  function hostHeaderValidation(allowedHostnames) {
51339
51393
  return (req, res, next) => {
@@ -56527,7 +56581,20 @@ function createServer(auth) {
56527
56581
  teamId: auth.teamId,
56528
56582
  persist: auth.persist
56529
56583
  };
56530
- const server = new McpServer({ name: "kadoa", version: "0.3.2" });
56584
+ const server = new McpServer({ name: "kadoa", version: package_default.version }, {
56585
+ instructions: [
56586
+ "IMPORTANT: One workflow = one source. A single workflow can extract many different fields, tables, and sections from the same URL(s) using a rich schema.",
56587
+ "Do NOT create multiple workflows for different data points on the same page \u2014 instead, define one workflow with a multi-field schema covering everything needed.",
56588
+ "",
56589
+ "Workflow lifecycle: create_workflow \u2192 get_workflow (check status) \u2192 fetch_data (get results). Workflows run asynchronously \u2014 never poll or sleep-wait.",
56590
+ "",
56591
+ "Use create_realtime_monitor only when the user wants continuous change detection with alerts. For one-time or scheduled extraction, use create_workflow.",
56592
+ "",
56593
+ "Schema tips: Use descriptive field names and examples. Group related data under one entity.",
56594
+ "The AI agent uses the schema + prompt to understand what to extract \u2014 a detailed prompt with a comprehensive schema produces better results than multiple simple workflows."
56595
+ ].join(`
56596
+ `)
56597
+ });
56531
56598
  registerTools(server, ctx);
56532
56599
  server.server.onerror = (error48) => console.error("[MCP Error]", error48);
56533
56600
  return server;
@@ -56536,6 +56603,7 @@ var init_src = __esm(async () => {
56536
56603
  init_mcp();
56537
56604
  init_client();
56538
56605
  init_tools();
56606
+ init_package();
56539
56607
  if (!process.env.VITEST && !process.env.BUN_TEST) {
56540
56608
  const { startHttpServer: startHttpServer2 } = await init_http2().then(() => exports_http);
56541
56609
  await startHttpServer2();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kadoa/mcp",
3
- "version": "0.4.0",
3
+ "version": "0.4.1-rc.2",
4
4
  "description": "Kadoa MCP Server — manage workflows from Claude Desktop, Cursor, and other MCP clients",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",