@mcpc-tech/core 0.3.11 → 0.3.12

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,8 +1,9 @@
1
1
  {
2
2
  "name": "@mcpc-tech/core",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "homepage": "https://jsr.io/@mcpc/core",
5
5
  "dependencies": {
6
+ "@ai-sdk/provider": "^2.0.0",
6
7
  "@mcpc-tech/ripgrep-napi": "^0.0.4",
7
8
  "@modelcontextprotocol/sdk": "^1.25.1",
8
9
  "@opentelemetry/api": "^1.9.0",
@@ -12,12 +13,15 @@
12
13
  "@opentelemetry/sdk-trace-node": "^1.29.0",
13
14
  "@opentelemetry/semantic-conventions": "^1.29.0",
14
15
  "@segment/ajv-human-errors": "^2.15.0",
16
+ "ai": "^5.0.60",
15
17
  "ajv": "^8.17.1",
16
18
  "ajv-errors": "^3.0.0",
17
19
  "ajv-formats": "^3.0.1",
18
20
  "cheerio": "^1.0.0",
19
21
  "json-schema-traverse": "^1.0.0",
20
- "jsonrepair": "^3.13.0"
22
+ "jsonrepair": "^3.13.0",
23
+ "@agentclientprotocol/sdk": "^0.4.8",
24
+ "zod": "^3.24.2"
21
25
  },
22
26
  "exports": {
23
27
  ".": {
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Execution mode types
3
- */ export type ExecutionMode = "agentic" | "agentic_workflow" | "agentic_sampling" | "agentic_workflow_sampling" | (string & Record<never, never>);
3
+ */ export type ExecutionMode = "agentic" | "agentic_workflow" | "agentic_sampling" | "agentic_workflow_sampling" | "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,+BACC,MAAM,GAAG,OAAO,KAAK,EAAE,KAAK"}
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"}
@@ -33,12 +33,57 @@ export interface ComposeDefinition {
33
33
  * - "agentic_workflow": Agent workflow mode that can either generate steps at runtime or use predefined steps
34
34
  * - "agentic_sampling": Autonomous sampling mode for agentic execution
35
35
  * - "agentic_workflow_sampling": Autonomous sampling mode for workflow execution
36
+ * - "ai_sampling": AI SDK sampling mode using streamText with MCP sampling provider
37
+ * - "ai_acp": AI SDK ACP mode for coding agents (Claude Code, etc.)
36
38
  * @default "agentic"
37
39
  */ mode?: ExecutionMode;
38
40
  /**
39
41
  * Configuration for sampling mode execution
40
42
  * Only applies when mode is "agentic_sampling" or "agentic_workflow_sampling"
41
43
  */ samplingConfig?: SamplingConfig;
44
+ /**
45
+ * Provider options for AI SDK sampling mode
46
+ * Only applies when mode is "ai_sampling"
47
+ * @see https://github.com/mcpc-tech/mcpc/tree/main/packages/mcp-sampling-ai-provider
48
+ */ providerOptions?: {
49
+ modelPreferences?: {
50
+ hints?: Array<{
51
+ name?: string;
52
+ }>;
53
+ costPriority?: number;
54
+ speedPriority?: number;
55
+ intelligencePriority?: number;
56
+ };
57
+ };
58
+ /**
59
+ * ACP settings for AI SDK ACP mode
60
+ * Only applies when mode is "ai_acp"
61
+ * @see https://github.com/mcpc-tech/mcpc/tree/main/packages/acp-ai-provider
62
+ */ acpSettings?: {
63
+ command: string;
64
+ args?: string[];
65
+ env?: Record<string, string>;
66
+ session?: {
67
+ cwd?: string;
68
+ mcpServers?: Array<{
69
+ name: string;
70
+ command: string;
71
+ args?: string[];
72
+ env?: Record<string, string>;
73
+ }>;
74
+ };
75
+ persistSession?: boolean;
76
+ };
77
+ /**
78
+ * Maximum number of agentic steps
79
+ * Applies to ai_sampling and ai_acp modes
80
+ * @default 50
81
+ */ maxSteps?: number;
82
+ /**
83
+ * Enable OpenTelemetry tracing
84
+ * Applies to ai_sampling and ai_acp modes
85
+ * @default false
86
+ */ tracingEnabled?: boolean;
42
87
  /**
43
88
  * Optional predefined workflow steps for agentic_workflow mode
44
89
  * - If provided: Uses these predefined steps in agentic_workflow mode
@@ -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;;;;;;;KAOC,GACD,OAAO;IAEP;;;KAGC,GACD,iBAAiB;IAEjB;;;;;KAKC,GACD,QAAQ;IAER;;;;;KAKC,GACD,oBAAoB,MAAM;IAE1B;;;;;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
+ {"version":3,"file":"set-up-mcp-compose.d.ts","sources":["../../src/set-up-mcp-compose.ts"],"names":[],"mappings":"AAAA,SAAS,mBAAmB,oBAAoB;AAChD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