@mcpc-tech/cli 0.1.38 → 0.1.40

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 (3) hide show
  1. package/bin/mcpc.cjs +13 -48
  2. package/bin/mcpc.mjs +13 -48
  3. package/package.json +1 -1
package/bin/mcpc.cjs CHANGED
@@ -2949,7 +2949,7 @@ var DEFAULT_CODE_EXECUTION_TIMEOUT = 3e5;
2949
2949
  function getGlobalPlugins(skillsPaths) {
2950
2950
  const resolvedPaths = skillsPaths.map((p2) => (0, import_node_path5.resolve)(import_node_process2.default.cwd(), p2));
2951
2951
  return [
2952
- "@mcpc/plugin-markdown-loader",
2952
+ "@mcpc-tech/plugin-markdown-loader",
2953
2953
  createSkillsPlugin({
2954
2954
  paths: resolvedPaths
2955
2955
  })
@@ -8288,9 +8288,7 @@ var SystemPrompts = {
8288
8288
  * - `man` command for fetching tool schemas (like Unix manual)
8289
8289
  * - No `hasDefinitions` - trusts model's context memory
8290
8290
  */
8291
- AUTONOMOUS_EXECUTION: `Agentic tool \`{toolName}\` that executes complex tasks by iteratively selecting and calling tools.
8292
-
8293
- You must follow the <manual/>, obey the <rules/>, and use the <format/>.
8291
+ AUTONOMOUS_EXECUTION: `Agentic tool \`{toolName}\` that executes tasks by calling its tools, following the <manual/>, obeying the <rules/>, and using the <format/>.
8294
8292
 
8295
8293
  <manual>
8296
8294
  {description}
@@ -8304,26 +8302,11 @@ You must follow the <manual/>, obey the <rules/>, and use the <format/>.
8304
8302
  <rules>
8305
8303
  1. **First call**: Use \`man\` to get tool schemas you need
8306
8304
  2. **Execute tools**: Use tool name in \`tool\` and parameters in \`args\`
8307
- 3. **Parallel calls**: If your client supports it, call \`man\` and execute tools simultaneously
8308
- 4. Note: You are an agent exposed as an MCP tool
8309
8305
  </rules>
8310
8306
 
8311
8307
  <format>
8312
- Get tool schemas:
8313
- \`\`\`json
8314
- {
8315
- "tool": "man",
8316
- "args": { "tools": ["tool1", "tool2"] }
8317
- }
8318
- \`\`\`
8319
-
8320
- Execute a tool:
8321
- \`\`\`json
8322
- {
8323
- "tool": "tool_name",
8324
- "args": { /* tool parameters */ }
8325
- }
8326
- \`\`\`
8308
+ Get tool schemas: \`{ "tool": "man", "args": { "tools": ["tool1", "tool2"] } }\`
8309
+ Execute a tool: \`{ "tool": "tool_name", "args": { /* parameters */ } }\`
8327
8310
  </format>`,
8328
8311
  /**
8329
8312
  * Compact system prompt for autonomous MCP execution (when manual is provided)
@@ -8332,14 +8315,17 @@ Execute a tool:
8332
8315
  * - Short description shown by default
8333
8316
  * - Use `man` command with args `{ manual: true }` to get full manual
8334
8317
  */
8335
- AUTONOMOUS_EXECUTION_COMPACT: `Agentic tool \`{toolName}\`: {description}
8318
+ AUTONOMOUS_EXECUTION_COMPACT: `Agentic tool \`{toolName}\` that executes tasks by calling its tools, following the <rules/> and using the <format/>.
8336
8319
 
8337
- Use \`man\` command with args \`{ tools: [], manual: true }\` to get the full manual, or \`{ tools: ["tool1"] }\` to get tool schemas.
8320
+ {description}
8321
+
8322
+ <rules>
8323
+ 1. **First call**: Use \`man\` to get tool schemas and full manual
8324
+ 2. **Execute tools**: Use tool name in \`tool\` and parameters in \`args\`
8325
+ </rules>
8338
8326
 
8339
8327
  <format>
8340
- Get full manual: \`{ "tool": "man", "args": { "tools": [], "manual": true } }\`
8341
- Get tool schemas: \`{ "tool": "man", "args": { "tools": ["tool1", "tool2"] } }\`
8342
- Get both: \`{ "tool": "man", "args": { "tools": ["tool1"], "manual": true } }\`
8328
+ Get manual + schemas: \`{ "tool": "man", "args": { "tools": ["tool1"], "manual": true } }\`
8343
8329
  Execute a tool: \`{ "tool": "tool_name", "args": { /* parameters */ } }\`
8344
8330
  </format>`,
8345
8331
  /**
@@ -8380,30 +8366,12 @@ You must follow the <manual/>, obey the <rules/>, and use the <format/>.
8380
8366
  </rules>{context}`
8381
8367
  };
8382
8368
  var ResponseTemplates = {
8383
- /**
8384
- * Success response for action execution
8385
- */
8386
- ACTION_SUCCESS: `Action \`{currentAction}\` completed.
8387
-
8388
- Next: Execute \`{nextAction}\` by calling \`{toolName}\` again.`,
8389
- /**
8390
- * Planning prompt when no next action is specified
8391
- */
8392
- PLANNING_PROMPT: `Action \`{currentAction}\` completed. Determine next step:
8393
-
8394
- 1. Analyze results from \`{currentAction}\`
8395
- 2. Decide: Continue with another action or Complete?
8396
- 3. Call \`{toolName}\` with chosen action or \`decision: "complete"\``,
8397
8369
  /**
8398
8370
  * Error response templates
8399
8371
  */
8400
8372
  ERROR_RESPONSE: `Validation failed: {errorMessage}
8401
8373
 
8402
8374
  Adjust parameters and retry.`,
8403
- /**
8404
- * Completion message
8405
- */
8406
- COMPLETION_MESSAGE: `Task completed.`,
8407
8375
  /**
8408
8376
  * Security validation messages
8409
8377
  */
@@ -8421,13 +8389,10 @@ var CompiledPrompts = {
8421
8389
  autonomousExecutionCompact: p(SystemPrompts.AUTONOMOUS_EXECUTION_COMPACT),
8422
8390
  samplingToolDescription: p(SystemPrompts.SAMPLING_TOOL_DESCRIPTION),
8423
8391
  aiLoopSystem: p(SystemPrompts.AI_LOOP_SYSTEM),
8424
- actionSuccess: p(ResponseTemplates.ACTION_SUCCESS),
8425
- planningPrompt: p(ResponseTemplates.PLANNING_PROMPT),
8426
8392
  errorResponse: p(ResponseTemplates.ERROR_RESPONSE),
8427
8393
  securityPassed: p(ResponseTemplates.SECURITY_VALIDATION.PASSED),
8428
8394
  securityFailed: p(ResponseTemplates.SECURITY_VALIDATION.FAILED),
8429
- auditLog: p(ResponseTemplates.AUDIT_LOG),
8430
- completionMessage: () => ResponseTemplates.COMPLETION_MESSAGE
8395
+ auditLog: p(ResponseTemplates.AUDIT_LOG)
8431
8396
  };
8432
8397
 
8433
8398
  // __mcpc__cli_latest/node_modules/@jsr/mcpc__core/src/factories/args-def-factory.js
package/bin/mcpc.mjs CHANGED
@@ -2957,7 +2957,7 @@ var DEFAULT_CODE_EXECUTION_TIMEOUT = 3e5;
2957
2957
  function getGlobalPlugins(skillsPaths) {
2958
2958
  const resolvedPaths = skillsPaths.map((p2) => resolve3(process3.cwd(), p2));
2959
2959
  return [
2960
- "@mcpc/plugin-markdown-loader",
2960
+ "@mcpc-tech/plugin-markdown-loader",
2961
2961
  createSkillsPlugin({
2962
2962
  paths: resolvedPaths
2963
2963
  })
@@ -8296,9 +8296,7 @@ var SystemPrompts = {
8296
8296
  * - `man` command for fetching tool schemas (like Unix manual)
8297
8297
  * - No `hasDefinitions` - trusts model's context memory
8298
8298
  */
8299
- AUTONOMOUS_EXECUTION: `Agentic tool \`{toolName}\` that executes complex tasks by iteratively selecting and calling tools.
8300
-
8301
- You must follow the <manual/>, obey the <rules/>, and use the <format/>.
8299
+ AUTONOMOUS_EXECUTION: `Agentic tool \`{toolName}\` that executes tasks by calling its tools, following the <manual/>, obeying the <rules/>, and using the <format/>.
8302
8300
 
8303
8301
  <manual>
8304
8302
  {description}
@@ -8312,26 +8310,11 @@ You must follow the <manual/>, obey the <rules/>, and use the <format/>.
8312
8310
  <rules>
8313
8311
  1. **First call**: Use \`man\` to get tool schemas you need
8314
8312
  2. **Execute tools**: Use tool name in \`tool\` and parameters in \`args\`
8315
- 3. **Parallel calls**: If your client supports it, call \`man\` and execute tools simultaneously
8316
- 4. Note: You are an agent exposed as an MCP tool
8317
8313
  </rules>
8318
8314
 
8319
8315
  <format>
8320
- Get tool schemas:
8321
- \`\`\`json
8322
- {
8323
- "tool": "man",
8324
- "args": { "tools": ["tool1", "tool2"] }
8325
- }
8326
- \`\`\`
8327
-
8328
- Execute a tool:
8329
- \`\`\`json
8330
- {
8331
- "tool": "tool_name",
8332
- "args": { /* tool parameters */ }
8333
- }
8334
- \`\`\`
8316
+ Get tool schemas: \`{ "tool": "man", "args": { "tools": ["tool1", "tool2"] } }\`
8317
+ Execute a tool: \`{ "tool": "tool_name", "args": { /* parameters */ } }\`
8335
8318
  </format>`,
8336
8319
  /**
8337
8320
  * Compact system prompt for autonomous MCP execution (when manual is provided)
@@ -8340,14 +8323,17 @@ Execute a tool:
8340
8323
  * - Short description shown by default
8341
8324
  * - Use `man` command with args `{ manual: true }` to get full manual
8342
8325
  */
8343
- AUTONOMOUS_EXECUTION_COMPACT: `Agentic tool \`{toolName}\`: {description}
8326
+ AUTONOMOUS_EXECUTION_COMPACT: `Agentic tool \`{toolName}\` that executes tasks by calling its tools, following the <rules/> and using the <format/>.
8344
8327
 
8345
- Use \`man\` command with args \`{ tools: [], manual: true }\` to get the full manual, or \`{ tools: ["tool1"] }\` to get tool schemas.
8328
+ {description}
8329
+
8330
+ <rules>
8331
+ 1. **First call**: Use \`man\` to get tool schemas and full manual
8332
+ 2. **Execute tools**: Use tool name in \`tool\` and parameters in \`args\`
8333
+ </rules>
8346
8334
 
8347
8335
  <format>
8348
- Get full manual: \`{ "tool": "man", "args": { "tools": [], "manual": true } }\`
8349
- Get tool schemas: \`{ "tool": "man", "args": { "tools": ["tool1", "tool2"] } }\`
8350
- Get both: \`{ "tool": "man", "args": { "tools": ["tool1"], "manual": true } }\`
8336
+ Get manual + schemas: \`{ "tool": "man", "args": { "tools": ["tool1"], "manual": true } }\`
8351
8337
  Execute a tool: \`{ "tool": "tool_name", "args": { /* parameters */ } }\`
8352
8338
  </format>`,
8353
8339
  /**
@@ -8388,30 +8374,12 @@ You must follow the <manual/>, obey the <rules/>, and use the <format/>.
8388
8374
  </rules>{context}`
8389
8375
  };
8390
8376
  var ResponseTemplates = {
8391
- /**
8392
- * Success response for action execution
8393
- */
8394
- ACTION_SUCCESS: `Action \`{currentAction}\` completed.
8395
-
8396
- Next: Execute \`{nextAction}\` by calling \`{toolName}\` again.`,
8397
- /**
8398
- * Planning prompt when no next action is specified
8399
- */
8400
- PLANNING_PROMPT: `Action \`{currentAction}\` completed. Determine next step:
8401
-
8402
- 1. Analyze results from \`{currentAction}\`
8403
- 2. Decide: Continue with another action or Complete?
8404
- 3. Call \`{toolName}\` with chosen action or \`decision: "complete"\``,
8405
8377
  /**
8406
8378
  * Error response templates
8407
8379
  */
8408
8380
  ERROR_RESPONSE: `Validation failed: {errorMessage}
8409
8381
 
8410
8382
  Adjust parameters and retry.`,
8411
- /**
8412
- * Completion message
8413
- */
8414
- COMPLETION_MESSAGE: `Task completed.`,
8415
8383
  /**
8416
8384
  * Security validation messages
8417
8385
  */
@@ -8429,13 +8397,10 @@ var CompiledPrompts = {
8429
8397
  autonomousExecutionCompact: p(SystemPrompts.AUTONOMOUS_EXECUTION_COMPACT),
8430
8398
  samplingToolDescription: p(SystemPrompts.SAMPLING_TOOL_DESCRIPTION),
8431
8399
  aiLoopSystem: p(SystemPrompts.AI_LOOP_SYSTEM),
8432
- actionSuccess: p(ResponseTemplates.ACTION_SUCCESS),
8433
- planningPrompt: p(ResponseTemplates.PLANNING_PROMPT),
8434
8400
  errorResponse: p(ResponseTemplates.ERROR_RESPONSE),
8435
8401
  securityPassed: p(ResponseTemplates.SECURITY_VALIDATION.PASSED),
8436
8402
  securityFailed: p(ResponseTemplates.SECURITY_VALIDATION.FAILED),
8437
- auditLog: p(ResponseTemplates.AUDIT_LOG),
8438
- completionMessage: () => ResponseTemplates.COMPLETION_MESSAGE
8403
+ auditLog: p(ResponseTemplates.AUDIT_LOG)
8439
8404
  };
8440
8405
 
8441
8406
  // __mcpc__cli_latest/node_modules/@jsr/mcpc__core/src/factories/args-def-factory.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpc-tech/cli",
3
- "version": "0.1.38",
3
+ "version": "0.1.40",
4
4
  "homepage": "https://jsr.io/@mcpc/cli",
5
5
  "dependencies": {
6
6
  "@hono/zod-openapi": "^0.19.2",