MCPcopy
hub / github.com/coder/mux / readAdditionalSystemContext

Function readAdditionalSystemContext

src/node/services/additionalSystemContext.ts:63–72  ·  view source on GitHub ↗
(
  config: SessionDirProvider,
  workspaceId: string
)

Source from the content-addressed store, hash-verified

61}
62
63export async function readAdditionalSystemContext(
64 config: SessionDirProvider,
65 workspaceId: string
66): Promise<AdditionalSystemContextRecord> {
67 const [content, enabled] = await Promise.all([
68 readContentFile(config, workspaceId),
69 readEnabledFlag(config, workspaceId),
70 ]);
71 return { content, enabled };
72}
73
74export async function writeAdditionalSystemContext(
75 config: SessionDirProvider,

Callers 4

streamMessageMethod · 0.90

Calls 2

readContentFileFunction · 0.85
readEnabledFlagFunction · 0.85

Tested by

no test coverage detected