feat(runner): mint per-run MCP token + emit run-scoped --mcp-config
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
f3052dc5fc
commit
06e3acd5ac
@@ -8,7 +8,9 @@ public sealed record ClaudeRunConfig(
|
||||
string? AgentPath,
|
||||
string? ResumeSessionId,
|
||||
int? MaxTurns = null,
|
||||
string? PermissionMode = null
|
||||
string? PermissionMode = null,
|
||||
string? McpConfigPath = null,
|
||||
string? AllowedTools = null
|
||||
);
|
||||
|
||||
public sealed class ClaudeArgsBuilder
|
||||
@@ -57,6 +59,12 @@ public sealed class ClaudeArgsBuilder
|
||||
|
||||
args.Add($"--json-schema {Escape(ResultSchema)}");
|
||||
|
||||
if (config.McpConfigPath is not null)
|
||||
args.Add($"--mcp-config {Escape(config.McpConfigPath)}");
|
||||
|
||||
if (config.AllowedTools is not null)
|
||||
args.Add($"--allowedTools {config.AllowedTools}");
|
||||
|
||||
if (config.ResumeSessionId is not null)
|
||||
args.Add($"--resume {config.ResumeSessionId}");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user