MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / getCliSessionDefaultsForTool

Function getCliSessionDefaultsForTool

src/cli/session-defaults.ts:44–56  ·  view source on GitHub ↗
(opts: {
  tool: ToolDefinition;
  runtimeConfig: ResolvedRuntimeConfig;
  profileOverride?: string;
})

Source from the content-addressed store, hash-verified

42}
43
44export function getCliSessionDefaultsForTool(opts: {
45 tool: ToolDefinition;
46 runtimeConfig: ResolvedRuntimeConfig;
47 profileOverride?: string;
48}): Record<string, unknown> {
49 return pickSchemaSessionDefaults(
50 opts.tool.cliSchema,
51 resolveCliSessionDefaults({
52 runtimeConfig: opts.runtimeConfig,
53 profileOverride: opts.profileOverride,
54 }),
55 );
56}
57
58export function mergeCliSessionDefaults(opts: {
59 defaults: Record<string, unknown>;

Callers 1

registerToolSubcommandFunction · 0.90

Calls 2

Tested by

no test coverage detected