@mcpc-tech/core 0.3.16 → 0.3.18

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/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@mcpc-tech/core",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
4
4
  "homepage": "https://jsr.io/@mcpc/core",
5
5
  "dependencies": {
6
6
  "@ai-sdk/provider": "^2.0.0",
7
- "@mcpc-tech/acp-ai-provider": "^0.1.47",
8
7
  "@mcpc-tech/ripgrep-napi": "^0.0.4",
9
8
  "@modelcontextprotocol/sdk": "^1.25.1",
10
9
  "@opentelemetry/api": "^1.9.0",
@@ -20,7 +19,9 @@
20
19
  "ajv-formats": "^3.0.1",
21
20
  "cheerio": "^1.0.0",
22
21
  "json-schema-traverse": "^1.0.0",
23
- "jsonrepair": "^3.13.0"
22
+ "jsonrepair": "^3.13.0",
23
+ "@agentclientprotocol/sdk": "^0.4.8",
24
+ "zod": "^3.24.2"
24
25
  },
25
26
  "exports": {
26
27
  ".": {
@@ -1 +1 @@
1
- {"version":3,"file":"compose.d.ts","sources":["../../src/compose.ts"],"names":[],"mappings":"AAAA,SAGE,KAAK,cAAc,EAGnB,KAAK,IAAI,6CAC8C;AACzD,SAAwC,KAAK,MAAM,4BAA4B;AAC/E,cAAc,UAAU,6BAA6B;AACrD,SACE,MAAM,EACN,KAAK,aAAa,oDAC4C;AAGhE,cAAc,iBAAiB,kCAAkC;AACjE,cAAc,UAAU,EAAE,YAAY,qBAAqB;AAM3D,cAA4B,UAAU,EAAE,UAAU,4BAA4B;AAe9E,OAAO,cAAM,4BAA4B;EACvC,QAAQ,mBAA6B;EACrC,QAAQ,iBAAyB;EACjC,QAAQ,YAAsC;EAG9C,IAAI,mBAAmB,IAAI,MAAM,EAAE,MAAM;EAIzC,YAAY,aAAa,cAAc,EAAE,SAAS,aAAa;EAiB/D;;GAEC,GACD,AAAM,sBAAsB,QAAQ,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,cAAc,UAAU,MAAM,GAAG,aAAa,SAAS;EAIvD;;GAEC,GACD,iBAAiB,UAAU,MAAM,GAAG,OAAO;EAI3C;;GAEC,GACD,AAAM,UAAU,QAAQ,UAAU,GAAG,QAAQ,IAAI;EAIjD;;GAEC,GACD,AAAM,mBACJ,YAAY,MAAM,EAClB;IAAW,QAAQ,OAAO;GAAoB,GAC7C,QAAQ,IAAI;UAOD;EAOd;;GAEC,GACD,AAAM,kBAAkB,QAAQ,IAAI;EAIpC;;GAEC,GACD,SAAe,SAAS,QAAQ,IAAI;EAK9B,QACJ,MAAM,MAAM,GAAG,IAAI,EACnB,aAAa,MAAM,EACnB,aAAY,UAA+B,EAC3C,UAAS,kBAAkB,UAAgC;AA+Q/D"}
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Execution mode types
3
- */ export type ExecutionMode = "agentic" | "agentic_workflow" | "agentic_sampling" | "agentic_workflow_sampling" | "ai_sampling" | "ai_acp" | (string & Record<never, never>);
3
+ */ export type ExecutionMode = "agentic" | "ai_sampling" | "ai_acp" | (string & Record<never, never>);
4
4
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sources":["../../../src/prompts/types.ts"],"names":[],"mappings":"AA4BA;;CAEC,GACD,YAAY,gBACR,YACA,qBACA,qBACA,8BACA,gBACA,YACC,MAAM,GAAG,OAAO,KAAK,EAAE,KAAK"}
1
+ {"version":3,"file":"types.d.ts","sources":["../../../src/prompts/types.ts"],"names":[],"mappings":"AAoBA;;CAEC,GACD,YAAY,gBACR,YACA,gBACA,YACC,MAAM,GAAG,OAAO,KAAK,EAAE,KAAK"}
@@ -1,5 +1,4 @@
1
1
  import { ComposableMCPServer } from "../mod.js";
2
- import type { MCPCStep } from "./utils/state.js";
3
2
  import type { MCPSetting } from "./service/tools.js";
4
3
  import type { SamplingConfig } from "./types.js";
5
4
  import type { ToolPlugin } from "./plugin-types.js";
@@ -29,17 +28,13 @@ export interface ComposeDefinition {
29
28
  options?: {
30
29
  /**
31
30
  * Execution mode for the agent
32
- * - "agentic": Fully autonomous agent mode without any workflow structure
33
- * - "agentic_workflow": Agent workflow mode that can either generate steps at runtime or use predefined steps
34
- * - "agentic_sampling": Autonomous sampling mode for agentic execution
35
- * - "agentic_workflow_sampling": Autonomous sampling mode for workflow execution
31
+ * - "agentic": Fully autonomous agent mode (default)
36
32
  * - "ai_sampling": AI SDK sampling mode using streamText with MCP sampling provider
37
33
  * - "ai_acp": AI SDK ACP mode for coding agents (Claude Code, etc.)
38
34
  * @default "agentic"
39
35
  */ mode?: ExecutionMode;
40
36
  /**
41
37
  * Configuration for sampling mode execution
42
- * Only applies when mode is "agentic_sampling" or "agentic_workflow_sampling"
43
38
  */ samplingConfig?: SamplingConfig;
44
39
  /**
45
40
  * Provider options for AI SDK sampling mode
@@ -84,18 +79,6 @@ export interface ComposeDefinition {
84
79
  * Applies to ai_sampling and ai_acp modes
85
80
  * @default false
86
81
  */ tracingEnabled?: boolean;
87
- /**
88
- * Optional predefined workflow steps for agentic_workflow mode
89
- * - If provided: Uses these predefined steps in agentic_workflow mode
90
- * - If empty/undefined: Generates workflow steps dynamically at runtime in agentic_workflow mode
91
- * - Ignored when mode is "agentic"
92
- */ steps?: MCPCStep[];
93
- /**
94
- * Actions that must be included at least once in any workflow
95
- * Validation will fail if these actions are not present in the workflow steps
96
- * - Only applies to agentic_workflow mode
97
- * - Ignored when mode is "agentic"
98
- */ ensureStepActions?: string[];
99
82
  /**
100
83
  * Default references for the dependent mcps
101
84
  *
@@ -148,7 +131,7 @@ export declare function parseMcpcConfigs(conf?: ComposeDefinition[]): ComposeDef
148
131
  * }
149
132
  * },
150
133
  * plugins: [createLargeResultPlugin({ maxSize: 8000 })],
151
- * options: { mode: "agentic_sampling" }
134
+ * options: { mode: "ai_sampling" }
152
135
  * }]
153
136
  * );
154
137
  * await server.connect(new StdioServerTransport());
@@ -163,7 +146,7 @@ export declare function parseMcpcConfigs(conf?: ComposeDefinition[]): ComposeDef
163
146
  * - description: Agent purpose with XML-like tool references (e.g., `<tool name="server.tool"/>`)
164
147
  * - deps: MCP server dependencies with transport configurations (stdio, sse, streamable-http)
165
148
  * - plugins: Global plugins to transform/extend tool behavior (objects or file paths)
166
- * - options: Execution mode settings (agentic, agentic_workflow, sampling)
149
+ * - options: Execution mode settings (agentic, ai_sampling, ai_acp)
167
150
  *
168
151
  * @param setupCallback - Optional callback to register custom tools or perform additional setup
169
152
  * before composition. Useful for adding internal tools or custom configurations.
@@ -1 +1 @@
1
- {"version":3,"file":"set-up-mcp-compose.d.ts","sources":["../../src/set-up-mcp-compose.ts"],"names":[],"mappings":"AAAA,SAAS,mBAAmB,oBAAoB;AAChD,cAAc,QAAQ,2BAA2B;AACjD,cAAc,UAAU,6BAA6B;AACrD,cAAc,cAAc,qBAAqB;AACjD,cAAc,UAAU,4BAA4B;AACpD,cAAc,UAAU,qBAAqB;AAC7C,cAAc,aAAa,6BAA6B;AAExD,iBAAiB;EACf;;;GAGC,GACD,MAAM,MAAM,GAAG,IAAI;EACnB;;GAEC,GACD,cAAc,MAAM;EACpB,OAAO;EAEP;;;;;;;;;;;GAWC,GACD,WAAW,aAAa,MAAM;EAE9B;IACE;;;;;;;;;KASC,GACD,OAAO;IAEP;;;KAGC,GACD,iBAAiB;IAEjB;;;;KAIC,GACD;MACE;QACE,QAAQ;UAAQ,OAAO,MAAM;;QAC7B,eAAe,MAAM;QACrB,gBAAgB,MAAM;QACtB,uBAAuB,MAAM;;;IAIjC;;;;KAIC,GACD;MACE,SAAS,MAAM;MACf,OAAO,MAAM;MACb,MAAM,OAAO,MAAM,EAAE,MAAM;MAC3B;QACE,MAAM,MAAM;QACZ,aAAa;UACX,MAAM,MAAM;UACZ,SAAS,MAAM;UACf,OAAO,MAAM;UACb,MAAM,OAAO,MAAM,EAAE,MAAM;;;MAG/B,iBAAiB,OAAO;;IAG1B;;;;KAIC,GACD,WAAW,MAAM;IAEjB;;;;KAIC,GACD,iBAAiB,OAAO;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iBAAiB,OAAO;;IAG1B;;;;KAIC,GACD,WAAW,MAAM;IAEjB;;;;KAIC,GACD,iBAAiB,OAAO;IAExB;;;;;KAKC,GACD;;;KAGC,GACD,OAAO,MAAM;;;AAMjB,iBAAiB;GACd,KAAK,MAAM,GAAG;;AAGjB,OAAO,iBAAS,iBACd,OAAO,mBAAmB,GACzB;AAIH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8DC,GACD,OAAO,iBAAe,KACpB,YAAY,6BAA6B,oBAAoB,EAC7D,cAAc,mBAAmB,EACjC,iBAAiB,QAAQ,wBAAwB,IAAI,GAAG,QAAQ,IAAI,CAAC,GACpE,QAAQ,oBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sources":["../../src/types.ts"],"names":[],"mappings":"AAEA,YAAY,aAAa,OAAO,MAAM,EAAE,OAAO;AAE/C,YAAY,gBAAgB,MAAM,OAAO,EAAE,QAAQ,OAAO,KAAK,OAAO;AAEtE,iBAAiB;EACf,gBAAgB,MAAM;EACtB;;;GAGC,GACD,YAAY,OAAO;;AA+CrB;;;;;;;;CAQC,GACD,YAAY,WAAW,MAAM,cAAc,EAAE,MAAM,CAAC,CAAC;AACrD,YAAY,YACR,KACA,UACA,YACA,iBACA;AACJ,YAAY,UAAU,OAAO;AAE7B,YAAY,cACP,YAAY,EAAE,MAAM,CAAC,CAAC,EAAE,WAAW,YAAY,aAC/C,YAAY,EAAE,MAAM,CAAC,CAAC,EAAE,YAAY,WAAW"}
1
+ {"version":3,"file":"types.d.ts","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,YAAY,aAAa,OAAO,MAAM,EAAE,OAAO;AAE/C,YAAY,gBAAgB,MAAM,OAAO,EAAE,QAAQ,OAAO,KAAK,OAAO;AAEtE,iBAAiB;EACf,gBAAgB,MAAM;EACtB;;;GAGC,GACD,YAAY,OAAO;;AAWrB;;;;;;;;CAQC,GACD,YAAY,WAAW,MAAM,cAAc,EAAE,MAAM,CAAC,CAAC;AACrD,YAAY,YACR,KACA,UACA,YACA,iBACA;AACJ,YAAY,UAAU,OAAO;AAE7B,YAAY,cACP,YAAY,EAAE,MAAM,CAAC,CAAC,EAAE,WAAW,YAAY,aAC/C,YAAY,EAAE,MAAM,CAAC,CAAC,EAAE,YAAY,WAAW"}
@@ -1,5 +0,0 @@
1
- export type MCPCStep = {
2
- description: string;
3
- actions: Array<string>;
4
- };
5
- //# sourceMappingURL=state.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.d.ts","sources":["../../../src/utils/state.ts"],"names":[],"mappings":"AAAA,YAAY;EACV,aAAa,MAAM;EACnB,SAAS,MAAM,MAAM"}