@kadoa/mcp 0.3.12-rc.3 → 0.4.1-rc.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.
Files changed (2) hide show
  1. package/dist/index.js +67 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -51334,6 +51334,58 @@ var init_tools = __esm(() => {
51334
51334
  };
51335
51335
  });
51336
51336
 
51337
+ // package.json
51338
+ var package_default;
51339
+ var init_package = __esm(() => {
51340
+ package_default = {
51341
+ name: "@kadoa/mcp",
51342
+ version: "0.4.1-rc.1",
51343
+ description: "Kadoa MCP Server — manage workflows from Claude Desktop, Cursor, and other MCP clients",
51344
+ type: "module",
51345
+ main: "dist/index.js",
51346
+ publishConfig: {
51347
+ access: "public"
51348
+ },
51349
+ files: [
51350
+ "dist",
51351
+ "README.md"
51352
+ ],
51353
+ scripts: {
51354
+ lint: "bunx biome check",
51355
+ "lint:fix": "bunx biome check --write",
51356
+ dev: "bun src/index.ts",
51357
+ build: "bun build src/index.ts --outdir=dist --target=node --external express --external ioredis",
51358
+ "check-types": "tsc --noEmit",
51359
+ test: "BUN_TEST=1 bun test",
51360
+ "test:unit": "BUN_TEST=1 bun test tests/unit --timeout=120000",
51361
+ "test:e2e": "BUN_TEST=1 bun test tests/e2e --timeout=600000",
51362
+ "test:eval": "BUN_TEST=1 bun test tests/evals --timeout=300000",
51363
+ prepublishOnly: "bun run check-types && bun run test:unit && bun run build"
51364
+ },
51365
+ dependencies: {
51366
+ "@kadoa/node-sdk": "^0.26.0",
51367
+ "@modelcontextprotocol/sdk": "^1.26.0",
51368
+ express: "^5.2.1",
51369
+ ioredis: "^5.6.1",
51370
+ zod: "^4.3.6"
51371
+ },
51372
+ devDependencies: {
51373
+ "@anthropic-ai/sdk": "^0.78.0",
51374
+ "@types/node": "^25.0.3",
51375
+ "bun-types": "^1.3.3",
51376
+ typescript: "^5.9.3"
51377
+ },
51378
+ keywords: [
51379
+ "kadoa",
51380
+ "mcp",
51381
+ "model-context-protocol",
51382
+ "web-scraping",
51383
+ "data-extraction"
51384
+ ],
51385
+ license: "MIT"
51386
+ };
51387
+ });
51388
+
51337
51389
  // node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js
51338
51390
  function hostHeaderValidation(allowedHostnames) {
51339
51391
  return (req, res, next) => {
@@ -56527,7 +56579,20 @@ function createServer(auth) {
56527
56579
  teamId: auth.teamId,
56528
56580
  persist: auth.persist
56529
56581
  };
56530
- const server = new McpServer({ name: "kadoa", version: "0.3.2" });
56582
+ const server = new McpServer({ name: "kadoa", version: package_default.version }, {
56583
+ instructions: [
56584
+ "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.",
56585
+ "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.",
56586
+ "",
56587
+ "Workflow lifecycle: create_workflow \u2192 get_workflow (check status) \u2192 fetch_data (get results). Workflows run asynchronously \u2014 never poll or sleep-wait.",
56588
+ "",
56589
+ "Use create_realtime_monitor only when the user wants continuous change detection with alerts. For one-time or scheduled extraction, use create_workflow.",
56590
+ "",
56591
+ "Schema tips: Use descriptive field names and examples. Group related data under one entity.",
56592
+ "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."
56593
+ ].join(`
56594
+ `)
56595
+ });
56531
56596
  registerTools(server, ctx);
56532
56597
  server.server.onerror = (error48) => console.error("[MCP Error]", error48);
56533
56598
  return server;
@@ -56536,6 +56601,7 @@ var init_src = __esm(async () => {
56536
56601
  init_mcp();
56537
56602
  init_client();
56538
56603
  init_tools();
56604
+ init_package();
56539
56605
  if (!process.env.VITEST && !process.env.BUN_TEST) {
56540
56606
  const { startHttpServer: startHttpServer2 } = await init_http2().then(() => exports_http);
56541
56607
  await startHttpServer2();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kadoa/mcp",
3
- "version": "0.3.12-rc.3",
3
+ "version": "0.4.1-rc.1",
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",