MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / getCurrentConfigVersionId

Function getCurrentConfigVersionId

server/src/addie/config-version.ts:149–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147 * Returns null if config versioning isn't available (e.g., database not ready)
148 */
149export async function getCurrentConfigVersionId(): Promise<number | null> {
150 try {
151 const version = await getOrCreateConfigVersion();
152 return version.version_id;
153 } catch {
154 // Don't fail message processing if config versioning fails
155 return null;
156 }
157}
158
159/**
160 * Get config version by ID

Callers 2

processMessageMethod · 0.85
processMessageStreamMethod · 0.85

Calls 1

getOrCreateConfigVersionFunction · 0.85

Tested by

no test coverage detected