@mrrlin-dev/mcp 0.4.285 → 0.4.286

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 (2) hide show
  1. package/dist/bin.cjs +20 -5
  2. package/package.json +1 -1
package/dist/bin.cjs CHANGED
@@ -96408,6 +96408,7 @@ var EXECUTOR_THREAD_ENV = "MRRLIN_EXECUTOR_THREAD";
96408
96408
  function isExecutorThread(env = process.env) {
96409
96409
  return env[EXECUTOR_THREAD_ENV]?.trim() === "1";
96410
96410
  }
96411
+ var INTERACTIVE_DIRECTOR_THREAD_ENV = "MRRLIN_INTERACTIVE_DIRECTOR";
96411
96412
 
96412
96413
  // src/decision-consensus.ts
96413
96414
  init_dist2();
@@ -108002,7 +108003,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
108002
108003
  }
108003
108004
 
108004
108005
  // src/_generated/version.ts
108005
- var PKG_VERSION = "0.4.285";
108006
+ var PKG_VERSION = "0.4.286";
108006
108007
 
108007
108008
  // src/bridge-allowed-origins.ts
108008
108009
  var DEFAULT_DIRECTOR_BRIDGE_ALLOWED_ORIGINS = [
@@ -127818,7 +127819,7 @@ function buildThreadStartParams(msg, config2, desiredModel) {
127818
127819
  ephemeral: null,
127819
127820
  // Claude and Agy spawn a process per thread and every Director turn starts or resumes one,
127820
127821
  // so the turn's own project always reaches the child, including after a project switch.
127821
- env: directorThreadEnv(msg.context?.projectSlug)
127822
+ env: { ...directorThreadEnv(msg.context?.projectSlug), [INTERACTIVE_DIRECTOR_THREAD_ENV]: "1" }
127822
127823
  };
127823
127824
  }
127824
127825
  function readEnvInt(name, fallback) {
@@ -132856,13 +132857,28 @@ function zodInputToJsonSchema(schema2) {
132856
132857
  }
132857
132858
  return { properties, required: required2, type: "object" };
132858
132859
  }
132860
+ var EXECUTION_MODE_GUIDANCE = "Set codeExecution to true for a run that changes code, or false for read-only or non-code work.";
132861
+ var directorCreateExecutionRunSchema = mcpToolInputSchemas[mcpToolNames.createExecutionRun].extend({
132862
+ codeExecution: external_exports.boolean({ error: EXECUTION_MODE_GUIDANCE })
132863
+ });
132859
132864
  function createMrrlinMcpServer(options = {}, owned) {
132860
132865
  const resolved = resolveServerOptions(options);
132861
132866
  const tools = createMrrlinTools(resolved);
132867
+ const runToolName = mcpToolNames.createExecutionRun;
132868
+ const interactiveDirector = process.env[INTERACTIVE_DIRECTOR_THREAD_ENV] === "1";
132869
+ const inputSchemas = interactiveDirector ? { ...mcpToolInputSchemas, [runToolName]: directorCreateExecutionRunSchema } : mcpToolInputSchemas;
132870
+ if (interactiveDirector) {
132871
+ const runTool = tools[runToolName];
132872
+ tools[runToolName] = {
132873
+ ...runTool,
132874
+ inputSchema: inputSchemas[runToolName],
132875
+ description: EXECUTION_MODE_GUIDANCE + ` For code changes that require scoped approval, have the operator use the task page's approval and run controls. ${runTool.description}`
132876
+ };
132877
+ }
132862
132878
  assertToolContractCoverage(
132863
132879
  Object.values(mcpToolNames),
132864
132880
  toolRegistry,
132865
- mcpToolInputSchemas,
132881
+ inputSchemas,
132866
132882
  tools
132867
132883
  );
132868
132884
  const server = new Server(
@@ -132890,8 +132906,7 @@ function createMrrlinMcpServer(options = {}, owned) {
132890
132906
  if (name === mcpToolNames.createExecutionRun && Object.hasOwn(args, "code_execution")) {
132891
132907
  return buildToolError({ code: "INVALID_CODE_EXECUTION_FIELD", message: "Use codeExecution, not code_execution." });
132892
132908
  }
132893
- const schema2 = mcpToolInputSchemas[name];
132894
- const parsed = schema2.safeParse(args);
132909
+ const parsed = inputSchemas[name].safeParse(args);
132895
132910
  if (!parsed.success) {
132896
132911
  return buildToolError({
132897
132912
  code: "VALIDATION_FAILED",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrrlin-dev/mcp",
3
- "version": "0.4.285",
3
+ "version": "0.4.286",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mrrlin-mcp": "dist/bin.cjs"