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

Function createBufferedHandlerContext

src/cli/register-tool-commands.ts:84–97  ·  view source on GitHub ↗
(
  session: ReturnType<typeof createRenderSession>,
  opts: { onProgress?: (fragment: AnyFragment) => void },
)

Source from the content-addressed store, hash-verified

82}
83
84function createBufferedHandlerContext(
85 session: ReturnType<typeof createRenderSession>,
86 opts: { onProgress?: (fragment: AnyFragment) => void },
87): ToolHandlerContext {
88 return {
89 emit: (fragment) => {
90 session.emit(fragment);
91 opts?.onProgress?.(fragment);
92 },
93 attach: (image) => {
94 session.attach(image);
95 },
96 };
97}
98
99const UI_ACTION_RESULT_SCHEMA = 'xcodebuildmcp.output.ui-action-result';
100const UI_ACTION_RESULT_VERBOSE_SCHEMA_VERSION = '3';

Callers 1

registerToolSubcommandFunction · 0.85

Calls 2

emitMethod · 0.80
attachMethod · 0.65

Tested by

no test coverage detected