MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / selectThenReadCode

Function selectThenReadCode

e2e/scenarios/mcp-session-state.test.ts:71–75  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

69// One sandbox execution, two dependent tool calls — the smallest agent journey
70// that relies on downstream session state.
71const selectThenReadCode = (slug: string) => `
72const selected = await tools.${slug}.org.main.select_workspace({});
73const read = await tools.${slug}.org.main.get_workspace({});
74return JSON.stringify({ selected, read });
75`;
76
77scenario(
78 "MCP · session state set by one tool call is visible to the next call",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected