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

Function cachedStats

src/node/services/mcpServerManager.test.ts:82–95  ·  view source on GitHub ↗
(overrides: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

80}
81
82function cachedStats(overrides: Record<string, unknown> = {}) {
83 return {
84 enabledServerCount: 1,
85 startedServerCount: 0,
86 failedServerCount: 1,
87 autoFallbackCount: 0,
88 failedServerNames: ["slow"],
89 hasStdio: false,
90 hasHttp: false,
91 hasSse: false,
92 transportMode: "none",
93 ...overrides,
94 };
95}
96
97describe("MCPServerManager", () => {
98 let configService: {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected