@mcpc-tech/core 0.3.26 → 0.3.28

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/index.cjs CHANGED
@@ -17814,6 +17814,23 @@ Execute a tool:
17814
17814
  "args": { /* tool parameters */ }
17815
17815
  }
17816
17816
  \`\`\`
17817
+ </format>`,
17818
+ /**
17819
+ * Compact system prompt for autonomous MCP execution (when manual is provided)
17820
+ *
17821
+ * Uses simplified description with progressive disclosure:
17822
+ * - Short description shown by default
17823
+ * - Use `man` command with args `{ manual: true }` to get full manual
17824
+ */
17825
+ AUTONOMOUS_EXECUTION_COMPACT: `Agentic tool \`{toolName}\`: {description}
17826
+
17827
+ Use \`man\` command with args \`{ tools: [], manual: true }\` to get the full manual, or \`{ tools: ["tool1"] }\` to get tool schemas.
17828
+
17829
+ <format>
17830
+ Get full manual: \`{ "tool": "man", "args": { "tools": [], "manual": true } }\`
17831
+ Get tool schemas: \`{ "tool": "man", "args": { "tools": ["tool1", "tool2"] } }\`
17832
+ Get both: \`{ "tool": "man", "args": { "tools": ["tool1"], "manual": true } }\`
17833
+ Execute a tool: \`{ "tool": "tool_name", "args": { /* parameters */ } }\`
17817
17834
  </format>`,
17818
17835
  /**
17819
17836
  * Tool description for sampling tools (shown in MCP tools list)
@@ -17891,6 +17908,7 @@ Adjust parameters and retry.`,
17891
17908
  };
17892
17909
  var CompiledPrompts = {
17893
17910
  autonomousExecution: p(SystemPrompts.AUTONOMOUS_EXECUTION),
17911
+ autonomousExecutionCompact: p(SystemPrompts.AUTONOMOUS_EXECUTION_COMPACT),
17894
17912
  samplingToolDescription: p(SystemPrompts.SAMPLING_TOOL_DESCRIPTION),
17895
17913
  aiLoopSystem: p(SystemPrompts.AI_LOOP_SYSTEM),
17896
17914
  actionSuccess: p(ResponseTemplates.ACTION_SUCCESS),
@@ -17957,7 +17975,7 @@ function createArgsDefFactory(_name, _allToolNames, _depGroups, _predefinedSteps
17957
17975
  },
17958
17976
  args: {
17959
17977
  type: "object",
17960
- description: `For "man": { tools: ["tool1", "tool2"] }. For other tools: tool parameters that strictly adhere to the tool's JSON schema.`
17978
+ description: `For "man": { tools: ["tool1", "tool2"], manual?: true }. For other tools: tool parameters that strictly adhere to the tool's JSON schema.`
17961
17979
  }
17962
17980
  },
17963
17981
  required: [
@@ -17968,7 +17986,10 @@ function createArgsDefFactory(_name, _allToolNames, _depGroups, _predefinedSteps
17968
17986
  },
17969
17987
  /**
17970
17988
  * Schema for "man" command args validation
17971
- * Expected format: { tools: ["tool1", "tool2"] }
17989
+ * Expected format: { tools: ["tool1", "tool2"], manual?: true }
17990
+ *
17991
+ * - Always require `tools`
17992
+ * - Allow empty tools only when `manual: true`
17972
17993
  */
17973
17994
  forMan: function(allToolNames) {
17974
17995
  return {
@@ -17982,16 +18003,50 @@ function createArgsDefFactory(_name, _allToolNames, _depGroups, _predefinedSteps
17982
18003
  errorMessage: {
17983
18004
  enum: `Invalid tool name. Available: ${allToolNames.join(", ")}`
17984
18005
  }
17985
- },
17986
- minItems: 1,
17987
- errorMessage: {
17988
- minItems: "At least one tool name is required"
17989
18006
  }
18007
+ },
18008
+ manual: {
18009
+ type: "boolean",
18010
+ description: "Set to true to get the full manual for this agent (progressive disclosure)."
17990
18011
  }
17991
18012
  },
17992
18013
  required: [
17993
18014
  "tools"
17994
18015
  ],
18016
+ additionalProperties: false,
18017
+ anyOf: [
18018
+ // manual-only (tools can be empty)
18019
+ {
18020
+ properties: {
18021
+ manual: {
18022
+ enum: [
18023
+ true
18024
+ ]
18025
+ },
18026
+ tools: {
18027
+ minItems: 0
18028
+ }
18029
+ },
18030
+ required: [
18031
+ "tools",
18032
+ "manual"
18033
+ ]
18034
+ },
18035
+ // tool schemas (require at least one tool)
18036
+ {
18037
+ properties: {
18038
+ tools: {
18039
+ minItems: 1,
18040
+ errorMessage: {
18041
+ minItems: "At least one tool name is required"
18042
+ }
18043
+ }
18044
+ },
18045
+ required: [
18046
+ "tools"
18047
+ ]
18048
+ }
18049
+ ],
17995
18050
  errorMessage: {
17996
18051
  required: {
17997
18052
  tools: 'Missing "tools" field. Expected: { tools: ["tool1", "tool2"] }'
@@ -18113,14 +18168,16 @@ var AgenticExecutor = class {
18113
18168
  allToolNames;
18114
18169
  toolNameToDetailList;
18115
18170
  server;
18171
+ manual;
18116
18172
  logger;
18117
18173
  tracingEnabled;
18118
18174
  toolSchemaMap;
18119
- constructor(name, allToolNames, toolNameToDetailList, server) {
18175
+ constructor(name, allToolNames, toolNameToDetailList, server, manual) {
18120
18176
  this.name = name;
18121
18177
  this.allToolNames = allToolNames;
18122
18178
  this.toolNameToDetailList = toolNameToDetailList;
18123
18179
  this.server = server;
18180
+ this.manual = manual;
18124
18181
  this.tracingEnabled = false;
18125
18182
  this.logger = createLogger(`mcpc.agentic.${name}`, server);
18126
18183
  this.toolSchemaMap = new Map(toolNameToDetailList);
@@ -18188,7 +18245,34 @@ var AgenticExecutor = class {
18188
18245
  };
18189
18246
  }
18190
18247
  const argsObj = args.args;
18191
- return this.handleManCommand(argsObj.tools, executeSpan);
18248
+ const tools = argsObj.tools ?? [];
18249
+ const wantManual = argsObj.manual === true;
18250
+ const wantTools = tools.length > 0;
18251
+ if (wantTools && wantManual) {
18252
+ const toolSchemas = this.handleManCommand(tools, null);
18253
+ const manualResult = this.handleManualRequest(null);
18254
+ if (executeSpan) {
18255
+ executeSpan.setAttributes({
18256
+ toolType: "man",
18257
+ requestType: "tools+manual"
18258
+ });
18259
+ endSpan(executeSpan);
18260
+ }
18261
+ return {
18262
+ content: [
18263
+ ...toolSchemas.content,
18264
+ {
18265
+ type: "text",
18266
+ text: "\n---\n"
18267
+ },
18268
+ ...manualResult.content
18269
+ ]
18270
+ };
18271
+ }
18272
+ if (wantManual) {
18273
+ return this.handleManualRequest(executeSpan);
18274
+ }
18275
+ return this.handleManCommand(tools, executeSpan);
18192
18276
  }
18193
18277
  const toolArgs = args.args || {};
18194
18278
  return await this.executeTool(tool2, toolArgs, executeSpan);
@@ -18211,6 +18295,44 @@ var AgenticExecutor = class {
18211
18295
  };
18212
18296
  }
18213
18297
  }
18298
+ /**
18299
+ * Handle `man { manual: true }` - return full manual for progressive disclosure
18300
+ */
18301
+ handleManualRequest(executeSpan) {
18302
+ if (executeSpan) {
18303
+ executeSpan.setAttributes({
18304
+ toolType: "man",
18305
+ requestType: "manual"
18306
+ });
18307
+ }
18308
+ if (!this.manual) {
18309
+ if (executeSpan) {
18310
+ endSpan(executeSpan);
18311
+ }
18312
+ return {
18313
+ content: [
18314
+ {
18315
+ type: "text",
18316
+ text: "No manual available for this agent."
18317
+ }
18318
+ ]
18319
+ };
18320
+ }
18321
+ if (executeSpan) {
18322
+ executeSpan.setAttributes({
18323
+ success: true
18324
+ });
18325
+ endSpan(executeSpan);
18326
+ }
18327
+ return {
18328
+ content: [
18329
+ {
18330
+ type: "text",
18331
+ text: this.manual
18332
+ }
18333
+ ]
18334
+ };
18335
+ }
18214
18336
  /**
18215
18337
  * Handle `man` command - return schemas for requested tools
18216
18338
  * @param requestedTools - Array of tool names (already validated via JSON Schema)
@@ -18368,19 +18490,18 @@ ${JSON.stringify(cleanedSchema, null, 2)}
18368
18490
  };
18369
18491
 
18370
18492
  // __mcpc__core_latest/node_modules/@mcpc/core/src/executors/agentic/agentic-tool-registrar.js
18371
- function registerAgenticTool(server, { description, name, allToolNames, depGroups, toolNameToDetailList }) {
18493
+ function registerAgenticTool(server, { description, name, allToolNames, depGroups, toolNameToDetailList, manual }) {
18372
18494
  const createArgsDef = createArgsDefFactory(name, allToolNames, depGroups, void 0, void 0);
18373
- const agenticExecutor = new AgenticExecutor(name, allToolNames, toolNameToDetailList, server);
18374
- description = CompiledPrompts.autonomousExecution({
18495
+ const agenticExecutor = new AgenticExecutor(name, allToolNames, toolNameToDetailList, server, manual);
18496
+ description = manual ? CompiledPrompts.autonomousExecutionCompact({
18497
+ toolName: name,
18498
+ description
18499
+ }) : CompiledPrompts.autonomousExecution({
18375
18500
  toolName: name,
18376
18501
  description
18377
18502
  });
18378
18503
  const agenticArgsDef = createArgsDef.forAgentic(allToolNames);
18379
- const argsDef = agenticArgsDef;
18380
- const schema = allToolNames.length > 0 ? argsDef : {
18381
- type: "object",
18382
- properties: {}
18383
- };
18504
+ const schema = agenticArgsDef;
18384
18505
  server.tool(name, description, jsonSchema(createModelCompatibleJSONSchema(schema)), async (args) => {
18385
18506
  return await agenticExecutor.execute(args, schema);
18386
18507
  });
@@ -18399,7 +18520,8 @@ var createAgenticModePlugin = () => ({
18399
18520
  name: context2.name,
18400
18521
  allToolNames: context2.allToolNames,
18401
18522
  depGroups: context2.depGroups,
18402
- toolNameToDetailList: context2.toolNameToDetailList
18523
+ toolNameToDetailList: context2.toolNameToDetailList,
18524
+ manual: context2.manual
18403
18525
  });
18404
18526
  }
18405
18527
  });
@@ -20503,9 +20625,10 @@ var ComposableMCPServer = class extends Server {
20503
20625
  mcpServers: {}
20504
20626
  }, options = {
20505
20627
  mode: "agentic"
20506
- }) {
20628
+ }, manual) {
20507
20629
  const refDesc = options.refs?.join("") ?? "";
20508
- const { tagToResults } = parseTags(description + refDesc, [
20630
+ const combinedSource = description + refDesc + (manual ?? "");
20631
+ const { tagToResults } = parseTags(combinedSource, [
20509
20632
  "tool",
20510
20633
  "fn"
20511
20634
  ]);
@@ -20656,6 +20779,7 @@ var ComposableMCPServer = class extends Server {
20656
20779
  server: this,
20657
20780
  name,
20658
20781
  description,
20782
+ manual,
20659
20783
  mode,
20660
20784
  allToolNames,
20661
20785
  toolNameToDetailList,
@@ -20754,7 +20878,7 @@ async function mcpc(serverConf, composeConf, optionsOrSetup) {
20754
20878
  await options.setup(server);
20755
20879
  }
20756
20880
  for (const mcpcConfig of parsed) {
20757
- await server.compose(mcpcConfig.name, mcpcConfig.description ?? "", mcpcConfig.deps, mcpcConfig.options);
20881
+ await server.compose(mcpcConfig.name, mcpcConfig.description ?? "", mcpcConfig.deps, mcpcConfig.options, mcpcConfig.manual);
20758
20882
  }
20759
20883
  return server;
20760
20884
  }
package/index.mjs CHANGED
@@ -17800,6 +17800,23 @@ Execute a tool:
17800
17800
  "args": { /* tool parameters */ }
17801
17801
  }
17802
17802
  \`\`\`
17803
+ </format>`,
17804
+ /**
17805
+ * Compact system prompt for autonomous MCP execution (when manual is provided)
17806
+ *
17807
+ * Uses simplified description with progressive disclosure:
17808
+ * - Short description shown by default
17809
+ * - Use `man` command with args `{ manual: true }` to get full manual
17810
+ */
17811
+ AUTONOMOUS_EXECUTION_COMPACT: `Agentic tool \`{toolName}\`: {description}
17812
+
17813
+ Use \`man\` command with args \`{ tools: [], manual: true }\` to get the full manual, or \`{ tools: ["tool1"] }\` to get tool schemas.
17814
+
17815
+ <format>
17816
+ Get full manual: \`{ "tool": "man", "args": { "tools": [], "manual": true } }\`
17817
+ Get tool schemas: \`{ "tool": "man", "args": { "tools": ["tool1", "tool2"] } }\`
17818
+ Get both: \`{ "tool": "man", "args": { "tools": ["tool1"], "manual": true } }\`
17819
+ Execute a tool: \`{ "tool": "tool_name", "args": { /* parameters */ } }\`
17803
17820
  </format>`,
17804
17821
  /**
17805
17822
  * Tool description for sampling tools (shown in MCP tools list)
@@ -17877,6 +17894,7 @@ Adjust parameters and retry.`,
17877
17894
  };
17878
17895
  var CompiledPrompts = {
17879
17896
  autonomousExecution: p(SystemPrompts.AUTONOMOUS_EXECUTION),
17897
+ autonomousExecutionCompact: p(SystemPrompts.AUTONOMOUS_EXECUTION_COMPACT),
17880
17898
  samplingToolDescription: p(SystemPrompts.SAMPLING_TOOL_DESCRIPTION),
17881
17899
  aiLoopSystem: p(SystemPrompts.AI_LOOP_SYSTEM),
17882
17900
  actionSuccess: p(ResponseTemplates.ACTION_SUCCESS),
@@ -17943,7 +17961,7 @@ function createArgsDefFactory(_name, _allToolNames, _depGroups, _predefinedSteps
17943
17961
  },
17944
17962
  args: {
17945
17963
  type: "object",
17946
- description: `For "man": { tools: ["tool1", "tool2"] }. For other tools: tool parameters that strictly adhere to the tool's JSON schema.`
17964
+ description: `For "man": { tools: ["tool1", "tool2"], manual?: true }. For other tools: tool parameters that strictly adhere to the tool's JSON schema.`
17947
17965
  }
17948
17966
  },
17949
17967
  required: [
@@ -17954,7 +17972,10 @@ function createArgsDefFactory(_name, _allToolNames, _depGroups, _predefinedSteps
17954
17972
  },
17955
17973
  /**
17956
17974
  * Schema for "man" command args validation
17957
- * Expected format: { tools: ["tool1", "tool2"] }
17975
+ * Expected format: { tools: ["tool1", "tool2"], manual?: true }
17976
+ *
17977
+ * - Always require `tools`
17978
+ * - Allow empty tools only when `manual: true`
17958
17979
  */
17959
17980
  forMan: function(allToolNames) {
17960
17981
  return {
@@ -17968,16 +17989,50 @@ function createArgsDefFactory(_name, _allToolNames, _depGroups, _predefinedSteps
17968
17989
  errorMessage: {
17969
17990
  enum: `Invalid tool name. Available: ${allToolNames.join(", ")}`
17970
17991
  }
17971
- },
17972
- minItems: 1,
17973
- errorMessage: {
17974
- minItems: "At least one tool name is required"
17975
17992
  }
17993
+ },
17994
+ manual: {
17995
+ type: "boolean",
17996
+ description: "Set to true to get the full manual for this agent (progressive disclosure)."
17976
17997
  }
17977
17998
  },
17978
17999
  required: [
17979
18000
  "tools"
17980
18001
  ],
18002
+ additionalProperties: false,
18003
+ anyOf: [
18004
+ // manual-only (tools can be empty)
18005
+ {
18006
+ properties: {
18007
+ manual: {
18008
+ enum: [
18009
+ true
18010
+ ]
18011
+ },
18012
+ tools: {
18013
+ minItems: 0
18014
+ }
18015
+ },
18016
+ required: [
18017
+ "tools",
18018
+ "manual"
18019
+ ]
18020
+ },
18021
+ // tool schemas (require at least one tool)
18022
+ {
18023
+ properties: {
18024
+ tools: {
18025
+ minItems: 1,
18026
+ errorMessage: {
18027
+ minItems: "At least one tool name is required"
18028
+ }
18029
+ }
18030
+ },
18031
+ required: [
18032
+ "tools"
18033
+ ]
18034
+ }
18035
+ ],
17981
18036
  errorMessage: {
17982
18037
  required: {
17983
18038
  tools: 'Missing "tools" field. Expected: { tools: ["tool1", "tool2"] }'
@@ -18099,14 +18154,16 @@ var AgenticExecutor = class {
18099
18154
  allToolNames;
18100
18155
  toolNameToDetailList;
18101
18156
  server;
18157
+ manual;
18102
18158
  logger;
18103
18159
  tracingEnabled;
18104
18160
  toolSchemaMap;
18105
- constructor(name, allToolNames, toolNameToDetailList, server) {
18161
+ constructor(name, allToolNames, toolNameToDetailList, server, manual) {
18106
18162
  this.name = name;
18107
18163
  this.allToolNames = allToolNames;
18108
18164
  this.toolNameToDetailList = toolNameToDetailList;
18109
18165
  this.server = server;
18166
+ this.manual = manual;
18110
18167
  this.tracingEnabled = false;
18111
18168
  this.logger = createLogger(`mcpc.agentic.${name}`, server);
18112
18169
  this.toolSchemaMap = new Map(toolNameToDetailList);
@@ -18174,7 +18231,34 @@ var AgenticExecutor = class {
18174
18231
  };
18175
18232
  }
18176
18233
  const argsObj = args.args;
18177
- return this.handleManCommand(argsObj.tools, executeSpan);
18234
+ const tools = argsObj.tools ?? [];
18235
+ const wantManual = argsObj.manual === true;
18236
+ const wantTools = tools.length > 0;
18237
+ if (wantTools && wantManual) {
18238
+ const toolSchemas = this.handleManCommand(tools, null);
18239
+ const manualResult = this.handleManualRequest(null);
18240
+ if (executeSpan) {
18241
+ executeSpan.setAttributes({
18242
+ toolType: "man",
18243
+ requestType: "tools+manual"
18244
+ });
18245
+ endSpan(executeSpan);
18246
+ }
18247
+ return {
18248
+ content: [
18249
+ ...toolSchemas.content,
18250
+ {
18251
+ type: "text",
18252
+ text: "\n---\n"
18253
+ },
18254
+ ...manualResult.content
18255
+ ]
18256
+ };
18257
+ }
18258
+ if (wantManual) {
18259
+ return this.handleManualRequest(executeSpan);
18260
+ }
18261
+ return this.handleManCommand(tools, executeSpan);
18178
18262
  }
18179
18263
  const toolArgs = args.args || {};
18180
18264
  return await this.executeTool(tool2, toolArgs, executeSpan);
@@ -18197,6 +18281,44 @@ var AgenticExecutor = class {
18197
18281
  };
18198
18282
  }
18199
18283
  }
18284
+ /**
18285
+ * Handle `man { manual: true }` - return full manual for progressive disclosure
18286
+ */
18287
+ handleManualRequest(executeSpan) {
18288
+ if (executeSpan) {
18289
+ executeSpan.setAttributes({
18290
+ toolType: "man",
18291
+ requestType: "manual"
18292
+ });
18293
+ }
18294
+ if (!this.manual) {
18295
+ if (executeSpan) {
18296
+ endSpan(executeSpan);
18297
+ }
18298
+ return {
18299
+ content: [
18300
+ {
18301
+ type: "text",
18302
+ text: "No manual available for this agent."
18303
+ }
18304
+ ]
18305
+ };
18306
+ }
18307
+ if (executeSpan) {
18308
+ executeSpan.setAttributes({
18309
+ success: true
18310
+ });
18311
+ endSpan(executeSpan);
18312
+ }
18313
+ return {
18314
+ content: [
18315
+ {
18316
+ type: "text",
18317
+ text: this.manual
18318
+ }
18319
+ ]
18320
+ };
18321
+ }
18200
18322
  /**
18201
18323
  * Handle `man` command - return schemas for requested tools
18202
18324
  * @param requestedTools - Array of tool names (already validated via JSON Schema)
@@ -18354,19 +18476,18 @@ ${JSON.stringify(cleanedSchema, null, 2)}
18354
18476
  };
18355
18477
 
18356
18478
  // __mcpc__core_latest/node_modules/@mcpc/core/src/executors/agentic/agentic-tool-registrar.js
18357
- function registerAgenticTool(server, { description, name, allToolNames, depGroups, toolNameToDetailList }) {
18479
+ function registerAgenticTool(server, { description, name, allToolNames, depGroups, toolNameToDetailList, manual }) {
18358
18480
  const createArgsDef = createArgsDefFactory(name, allToolNames, depGroups, void 0, void 0);
18359
- const agenticExecutor = new AgenticExecutor(name, allToolNames, toolNameToDetailList, server);
18360
- description = CompiledPrompts.autonomousExecution({
18481
+ const agenticExecutor = new AgenticExecutor(name, allToolNames, toolNameToDetailList, server, manual);
18482
+ description = manual ? CompiledPrompts.autonomousExecutionCompact({
18483
+ toolName: name,
18484
+ description
18485
+ }) : CompiledPrompts.autonomousExecution({
18361
18486
  toolName: name,
18362
18487
  description
18363
18488
  });
18364
18489
  const agenticArgsDef = createArgsDef.forAgentic(allToolNames);
18365
- const argsDef = agenticArgsDef;
18366
- const schema = allToolNames.length > 0 ? argsDef : {
18367
- type: "object",
18368
- properties: {}
18369
- };
18490
+ const schema = agenticArgsDef;
18370
18491
  server.tool(name, description, jsonSchema(createModelCompatibleJSONSchema(schema)), async (args) => {
18371
18492
  return await agenticExecutor.execute(args, schema);
18372
18493
  });
@@ -18385,7 +18506,8 @@ var createAgenticModePlugin = () => ({
18385
18506
  name: context2.name,
18386
18507
  allToolNames: context2.allToolNames,
18387
18508
  depGroups: context2.depGroups,
18388
- toolNameToDetailList: context2.toolNameToDetailList
18509
+ toolNameToDetailList: context2.toolNameToDetailList,
18510
+ manual: context2.manual
18389
18511
  });
18390
18512
  }
18391
18513
  });
@@ -20488,9 +20610,10 @@ var ComposableMCPServer = class extends Server {
20488
20610
  mcpServers: {}
20489
20611
  }, options = {
20490
20612
  mode: "agentic"
20491
- }) {
20613
+ }, manual) {
20492
20614
  const refDesc = options.refs?.join("") ?? "";
20493
- const { tagToResults } = parseTags(description + refDesc, [
20615
+ const combinedSource = description + refDesc + (manual ?? "");
20616
+ const { tagToResults } = parseTags(combinedSource, [
20494
20617
  "tool",
20495
20618
  "fn"
20496
20619
  ]);
@@ -20641,6 +20764,7 @@ var ComposableMCPServer = class extends Server {
20641
20764
  server: this,
20642
20765
  name,
20643
20766
  description,
20767
+ manual,
20644
20768
  mode,
20645
20769
  allToolNames,
20646
20770
  toolNameToDetailList,
@@ -20739,7 +20863,7 @@ async function mcpc(serverConf, composeConf, optionsOrSetup) {
20739
20863
  await options.setup(server);
20740
20864
  }
20741
20865
  for (const mcpcConfig of parsed) {
20742
- await server.compose(mcpcConfig.name, mcpcConfig.description ?? "", mcpcConfig.deps, mcpcConfig.options);
20866
+ await server.compose(mcpcConfig.name, mcpcConfig.description ?? "", mcpcConfig.deps, mcpcConfig.options, mcpcConfig.manual);
20743
20867
  }
20744
20868
  return server;
20745
20869
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpc-tech/core",
3
- "version": "0.3.26",
3
+ "version": "0.3.28",
4
4
  "homepage": "https://jsr.io/@mcpc/core",
5
5
  "dependencies": {
6
6
  "@ai-sdk/provider": "^2.0.0",
@@ -155,9 +155,16 @@ function createSkillsPlugin(options) {
155
155
  async (args) => {
156
156
  const meta = skillsMap.get(args.skill);
157
157
  if (!meta) {
158
+ const available = Array.from(skillsMap.keys());
159
+ const availableList = available.length > 0 ? `
160
+
161
+ Available skills: ${available.join(", ")}` : "\n\nNo skills available.";
158
162
  return {
159
163
  content: [
160
- { type: "text", text: `Skill "${args.skill}" not found` }
164
+ {
165
+ type: "text",
166
+ text: `Skill "${args.skill}" not found.${availableList}`
167
+ }
161
168
  ],
162
169
  isError: true
163
170
  };
@@ -133,9 +133,16 @@ function createSkillsPlugin(options) {
133
133
  async (args) => {
134
134
  const meta = skillsMap.get(args.skill);
135
135
  if (!meta) {
136
+ const available = Array.from(skillsMap.keys());
137
+ const availableList = available.length > 0 ? `
138
+
139
+ Available skills: ${available.join(", ")}` : "\n\nNo skills available.";
136
140
  return {
137
141
  content: [
138
- { type: "text", text: `Skill "${args.skill}" not found` }
142
+ {
143
+ type: "text",
144
+ text: `Skill "${args.skill}" not found.${availableList}`
145
+ }
139
146
  ],
140
147
  isError: true
141
148
  };
package/plugins.cjs CHANGED
@@ -492,11 +492,15 @@ function createSkillsPlugin(options) {
492
492
  }), async (args) => {
493
493
  const meta = skillsMap.get(args.skill);
494
494
  if (!meta) {
495
+ const available = Array.from(skillsMap.keys());
496
+ const availableList = available.length > 0 ? `
497
+
498
+ Available skills: ${available.join(", ")}` : "\n\nNo skills available.";
495
499
  return {
496
500
  content: [
497
501
  {
498
502
  type: "text",
499
- text: `Skill "${args.skill}" not found`
503
+ text: `Skill "${args.skill}" not found.${availableList}`
500
504
  }
501
505
  ],
502
506
  isError: true
package/plugins.mjs CHANGED
@@ -456,11 +456,15 @@ function createSkillsPlugin(options) {
456
456
  }), async (args) => {
457
457
  const meta = skillsMap.get(args.skill);
458
458
  if (!meta) {
459
+ const available = Array.from(skillsMap.keys());
460
+ const availableList = available.length > 0 ? `
461
+
462
+ Available skills: ${available.join(", ")}` : "\n\nNo skills available.";
459
463
  return {
460
464
  content: [
461
465
  {
462
466
  type: "text",
463
- text: `Skill "${args.skill}" not found`
467
+ text: `Skill "${args.skill}" not found.${availableList}`
464
468
  }
465
469
  ],
466
470
  isError: true
@@ -79,6 +79,6 @@ export declare class ComposableMCPServer extends Server {
79
79
  /**
80
80
  * Close the server and ensure all plugins are disposed
81
81
  */ override close(): Promise<void>;
82
- compose(name: string | null, description: string, depsConfig?: MCPSetting, options?: ComposeDefinition["options"]): Promise<void>;
82
+ compose(name: string | null, description: string, depsConfig?: MCPSetting, options?: ComposeDefinition["options"], manual?: string): Promise<void>;
83
83
  }
84
84
  //# sourceMappingURL=compose.d.ts.map
@@ -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,IAAI;UAqB1B;UAsDN;EAIR,KAAK,GACH,MAAM,MAAM,EACZ,aAAa,MAAM,EACnB,cAAc,OAAO,KAAK,UAAU,EACpC,KAAK,MAAM,GAAG,QAAQ,OAAO,KAAK,OAAO,EACzC;IAAW,WAAW,OAAO;IA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IvD;;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,EAC3D,SAAS,MAAM;AAoRnB"}
@@ -65,6 +65,7 @@ export interface ToolPlugin {
65
65
  server: ComposableMCPServer;
66
66
  name: string;
67
67
  description: string;
68
+ /** Optional manual for progressive disclosure */ manual?: string;
68
69
  mode: ExecutionMode | string;
69
70
  allToolNames: string[];
70
71
  toolNameToDetailList: [string, ComposedTool][];
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-types.d.ts","sources":["../../src/plugin-types.ts"],"names":[],"mappings":"AAAA;;;CAGC,GAED,cAAc,IAAI,6CAA0D;AAC5E,cAAc,YAAY,qBAAqB;AAC/C,cAAc,mBAAmB,uBAAuB;AACxD,cAAc,aAAa,6BAA6B;AAExD,iBAAiB,qBAAqB;EACpC,SAAS;;AAKX,iBAAiB;EACf,oDAAoD,GACpD,MAAM,MAAM;EAEZ,0DAA0D,GAC1D,UAAU,MAAM;EAEhB,kFAAkF,GAClF,UAAU,QAAQ;EAElB,6CAA6C,GAC7C,QAAQ,kBAAkB,MAAM,MAAM,KAAK,OAAO;EAElD,qEAAqE,GACrE,eAAe,MAAM;EAIrB,8DAA8D,GAC9D,mBAAmB,QAAQ,wBAAwB,IAAI,GAAG,QAAQ,IAAI;EAEtE,iEAAiE,GACjE,gBAAgB,SAAS,wBAAwB,IAAI,GAAG,QAAQ,IAAI;EAEpE,uEAAuE,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B;;GAEC,GACD,cAAc,OAAO;;AAevB,iBAAiB;EACf,oCAAoC,GACpC,cAAc,MAAM;EACpB,mEAAmE,GACnE;IACE;;;;KAIC,GACD,SAAS,OAAO;IAChB;;;;KAIC,GACD,SAAS,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"skills.d.ts","sources":["../../../src/plugins/skills.ts"],"names":[],"mappings":"AAOA,cAAmC,UAAU,6BAA6B;UAWhE;EACR,mCAAmC,GACnC,OAAO,MAAM;;AAoGf;;CAEC,GACD,OAAO,iBAAS,mBAAmB,SAAS,mBAAmB,GAAG;AAuIlE;;;;;;;;;;;;;CAaC,GACD,OAAO,iBAAS,aAAa,QAAQ,OAAO,MAAM,EAAE,MAAM,CAAC,GAAG;AAM9D,eAAe,mBAAmB"}
1
+ {"version":3,"file":"skills.d.ts","sources":["../../../src/plugins/skills.ts"],"names":[],"mappings":"AAOA,cAAmC,UAAU,6BAA6B;UAWhE;EACR,mCAAmC,GACnC,OAAO,MAAM;;AAoGf;;CAEC,GACD,OAAO,iBAAS,mBAAmB,SAAS,mBAAmB,GAAG;AA8IlE;;;;;;;;;;;;;CAaC,GACD,OAAO,iBAAS,aAAa,QAAQ,OAAO,MAAM,EAAE,MAAM,CAAC,GAAG;AAM9D,eAAe,mBAAmB"}
@@ -12,6 +12,10 @@ export interface ComposeDefinition {
12
12
  /**
13
13
  * Description of the composed agent's purpose and capabilities.
14
14
  */ description?: string;
15
+ /**
16
+ * Optional manual for progressive disclosure.
17
+ * If provided, description will be short and manual fetched via `man { tools: [], manual: true }`.
18
+ */ manual?: string;
15
19
  deps?: MCPSetting;
16
20
  /**
17
21
  * Global plugins to load and apply to all tools
@@ -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,UAAU,6BAA6B;AACrD,cAAc,cAAc,qBAAqB;AACjD,cAAc,UAAU,4BAA4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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;;AAarB;;;;;;;;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"}