par5-mcp 0.2.4 → 0.2.5

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/.node-version CHANGED
@@ -1 +1 @@
1
- 22
1
+ 24
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.2.4"
2
+ ".": "0.2.5"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.5](https://github.com/mathematic-inc/par5-mcp/compare/v0.2.4...v0.2.5) (2026-03-11)
4
+
5
+
6
+ ### Features
7
+
8
+ * Add model selection to run_agent_across_list ([#14](https://github.com/mathematic-inc/par5-mcp/issues/14)) ([4360829](https://github.com/mathematic-inc/par5-mcp/commit/4360829f56843c939071389d65b514dee2ad0b16))
9
+
3
10
  ## [0.2.4](https://github.com/mathematic-inc/par5-mcp/compare/v0.2.3...v0.2.4) (2026-03-11)
4
11
 
5
12
 
package/dist/index.js CHANGED
@@ -504,11 +504,15 @@ VARIABLE SUBSTITUTION:
504
504
  agent: z
505
505
  .enum(ENABLED_AGENTS)
506
506
  .describe(`Which AI agent to use: ${ENABLED_AGENTS.map((a) => `'${a}'`).join(", ")}. All agents run with permission-skipping flags for autonomous operation.`),
507
+ model: z
508
+ .string()
509
+ .optional()
510
+ .describe("Optional model to use. Passed as --model to the agent CLI. Examples: 'claude-opus-4-6', 'claude-sonnet-4-6' for Claude; 'gemini-2.5-pro' for Gemini; 'o3' for Codex."),
507
511
  prompt: z
508
512
  .string()
509
513
  .describe("The prompt to send to each agent. Use {{item}} as a placeholder - it will be replaced with the current item value. Example: 'Review {{item}} and suggest improvements' or 'Add error handling to {{item}}'"),
510
514
  },
511
- }, async ({ list_id, agent, prompt }) => {
515
+ }, async ({ list_id, agent, model, prompt }) => {
512
516
  const items = lists.get(list_id);
513
517
  if (!items) {
514
518
  return {
@@ -532,26 +536,27 @@ VARIABLE SUBSTITUTION:
532
536
  const getAgentCommand = (agentName, expandedPrompt) => {
533
537
  const escapedPrompt = expandedPrompt.replace(/'/g, "'\\''");
534
538
  const agentArgs = process.env.PAR5_AGENT_ARGS || "";
539
+ const modelFlag = model ? `--model '${model}'` : "";
535
540
  switch (agentName) {
536
541
  case "claude": {
537
542
  // Claude Code CLI with --dangerously-skip-permissions and streaming output
538
543
  const claudeArgs = process.env.PAR5_CLAUDE_ARGS || "";
539
- return `claude --dangerously-skip-permissions --output-format text --verbose ${agentArgs} ${claudeArgs} -p '${escapedPrompt}'`;
544
+ return `claude --dangerously-skip-permissions --output-format text --verbose ${modelFlag} ${agentArgs} ${claudeArgs} -p '${escapedPrompt}'`;
540
545
  }
541
546
  case "gemini": {
542
547
  // Gemini CLI with yolo mode and streaming JSON output
543
548
  const geminiArgs = process.env.PAR5_GEMINI_ARGS || "";
544
- return `gemini --yolo --output-format text ${agentArgs} ${geminiArgs} '${escapedPrompt}'`;
549
+ return `gemini --yolo --output-format text ${modelFlag} ${agentArgs} ${geminiArgs} '${escapedPrompt}'`;
545
550
  }
546
551
  case "codex": {
547
552
  // Codex CLI exec subcommand with full-auto flag and JSON streaming output
548
553
  const codexArgs = process.env.PAR5_CODEX_ARGS || "";
549
- return `codex exec --dangerously-bypass-approvals-and-sandbox ${agentArgs} ${codexArgs} '${escapedPrompt}'`;
554
+ return `codex exec --dangerously-bypass-approvals-and-sandbox ${modelFlag} ${agentArgs} ${codexArgs} '${escapedPrompt}'`;
550
555
  }
551
556
  case "opencode": {
552
557
  // OpenCode CLI run command for non-interactive autonomous operation
553
558
  const opencodeArgs = process.env.PAR5_OPENCODE_ARGS || "";
554
- return `opencode run ${agentArgs} ${opencodeArgs} '${escapedPrompt}'`;
559
+ return `opencode run ${modelFlag} ${agentArgs} ${opencodeArgs} '${escapedPrompt}'`;
555
560
  }
556
561
  default:
557
562
  throw new Error(`Unknown agent: ${agentName}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "par5-mcp",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "MCP server for parallel list operations - run shell commands and AI agents across lists in parallel",
5
5
  "main": "dist/index.js",
6
6
  "bin": {