@qmediat.io/gemini-code-context-mcp 1.7.3 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +14 -1
- package/dist/server.d.ts +20 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +95 -6
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,27 @@ All notable changes to `@qmediat.io/gemini-code-context-mcp` will be documented
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.8.0] - 2026-04-27
|
|
9
|
+
|
|
10
|
+
### Added — T6: SIGTERM graceful-drain for in-flight tool calls
|
|
11
|
+
|
|
12
|
+
Closes the reliability triangle started in v1.5.1 (`withNetworkRetry`) → v1.6.0 (`AbortController` timeout) → v1.7.0 (`generateContentStream` + heartbeat) with the last missing piece: **clean shutdown does not lose in-flight responses**.
|
|
13
|
+
|
|
14
|
+
- **The MCP server now waits up to 5 s for `tool.execute(...)` calls to settle before tearing down the transport.** Before v1.8.0, `SIGINT` / `SIGTERM` ran `ttlWatcher.stop() → manifest.close() → server.close() → process.exit(0)` immediately. A user mid-`ask` (especially long HIGH-thinking calls of 60-180 s) when Claude Code restarted the server lost the response — Gemini finished the work, billed the user, but the response stream never reached them.
|
|
15
|
+
- **Implementation:** `server.ts` tracks each `CallToolRequestSchema` handler's `tool.execute(...)` promise in an `inFlightCalls: Set<Promise<CallToolResult>>`. The set is `add`-ed on entry and `delete`-d in a `finally` block regardless of resolve / reject path. On shutdown signal, `drainInFlight(inFlightCalls, drainBudgetMs)` races `Promise.allSettled` against a `setTimeout(drainBudgetMs)` — every settled call's response makes it back to the client; abandoned calls are logged at WARN, not silently dropped.
|
|
16
|
+
- **Configurable budget via `GEMINI_CODE_CONTEXT_SHUTDOWN_DRAIN_MS`.** Default 5000 ms. Range `[0, 60000]` (clamped). Invalid values (non-finite, negative, >60000) emit a startup warning and fall back to default — typo-resistant. Set to `0` to revert to v1.7.x's "exit immediately" behaviour.
|
|
17
|
+
- **`drainInFlight` exported from `src/server.ts`** for unit testability without booting a real server. 6 new test cases in `test/unit/server-drain.test.ts` cover: empty set, all-settled within budget, partial-abandoned timeout, rejected promises (counted as settled), zero budget, negative budget defensive handling.
|
|
18
|
+
|
|
19
|
+
### Documentation
|
|
20
|
+
|
|
21
|
+
- **README — corporate-backing callout + maintenance commitment + star ask.** A new top-of-README banner makes the project's commercial backing explicit ("Built and maintained by [Quantum Media Technologies sp. z o.o.](https://www.qmediat.io/) — qmediat.io"), pairs with a new "Maintenance & support" section before Contributing that documents (a) the dogfooding feedback loop ("bugs that affect real coding sessions get fixed first", with concrete v1.5.1 / v1.7.0 / v1.7.2 examples), (b) the long-term roadmap commitment ("not going to disappear"), (c) issue / PR / commercial inquiry routes, (d) a star ask. The comparison table's "Actively maintained" cell is also expanded to cite the corporate backing and the ~1-2 week release cadence since launch.
|
|
22
|
+
|
|
23
|
+
### Notes
|
|
24
|
+
|
|
25
|
+
- **Not breaking.** Default behaviour change is "shutdown waits up to 5 s instead of exiting immediately" — strictly more user-friendly. Operators who depend on instant exit (rare) can set `GEMINI_CODE_CONTEXT_SHUTDOWN_DRAIN_MS=0`.
|
|
26
|
+
- **Hard timeout cannot block shutdown.** A hung call (e.g. `generateContent` server-side processing 5 minutes of HIGH thinking and the host already SIGTERM'd) cannot delay process exit beyond `drainBudgetMs`. Same `AbortSignal` client-only caveat from v1.6.0 applies — Gemini may still finish server-side and bill, but our process won't wait for it.
|
|
27
|
+
- Test count: 562 → 568 (+6). Production code: `src/server.ts` only (no tool-level changes).
|
|
28
|
+
|
|
8
29
|
## [1.7.3] - 2026-04-26
|
|
9
30
|
|
|
10
31
|
### Fixed — /6step adversarial follow-ups on the v1.7.2 fakes-timer cascade fix
|
package/README.md
CHANGED
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
[](./tsconfig.json)
|
|
9
9
|
[](./package.json)
|
|
10
10
|
|
|
11
|
+
> **Built and maintained by [Quantum Media Technologies sp. z o.o.](https://www.qmediat.io/) — a registered Polish technology company (qmediat.io).** Production-deployed inside qmediat's own developer workflows; commercial backing means this MCP server is on the long-term roadmap, not a weekend project. ~1-2 week release cadence since launch — see [CHANGELOG.md](./CHANGELOG.md).
|
|
12
|
+
>
|
|
13
|
+
> **If `gemini-code-context-mcp` saves you time, please [⭐ star the repo](https://github.com/qmediat/gemini-code-context-mcp).** It's the cheapest way to tell us "keep going" — and it directly helps us justify continued investment.
|
|
14
|
+
|
|
11
15
|
---
|
|
12
16
|
|
|
13
17
|
## Why this server?
|
|
@@ -16,7 +20,7 @@ An MCP (Model Context Protocol) server that wraps Google's Gemini API with **per
|
|
|
16
20
|
|
|
17
21
|
| | [jamubc/gemini-mcp-tool](https://github.com/jamubc/gemini-mcp-tool) | **`@qmediat.io/gemini-code-context-mcp`** |
|
|
18
22
|
|---|---|---|
|
|
19
|
-
| Maintenance | Unmaintained on npm since 2025-07 (v1.1.4); last commit on `main` 2025-07-23; no maintainer reply on 2026 issues (#49/#62/#64 at time of writing) | Actively maintained |
|
|
23
|
+
| Maintenance | Unmaintained on npm since 2025-07 (v1.1.4); last commit on `main` 2025-07-23; no maintainer reply on 2026 issues (#49/#62/#64 at time of writing) | Actively maintained — backed by [Quantum Media Technologies sp. z o.o.](https://www.qmediat.io/) (qmediat.io). Production-deployed in qmediat's internal developer workflows; ~1-2 week release cadence since launch. |
|
|
20
24
|
| Default model | Hardcoded `gemini-2.5-pro` (main) — no runtime override | Dynamic `latest-pro` alias — resolves against your API key tier at startup |
|
|
21
25
|
| Backend | Shells out to `gemini` CLI (subprocess per call) | Direct `@google/genai` SDK |
|
|
22
26
|
| Repeat queries | No caching layer — each call re-tokenises referenced files | **Files API + Context Cache** — repeat queries reuse the indexed codebase; cached input tokens billed at ~25 % of the uncached rate |
|
|
@@ -200,6 +204,15 @@ Per-tool cost breakdown, free-tier guidance, and all the knobs: [`docs/cost-mode
|
|
|
200
204
|
|
|
201
205
|
More: [`docs/architecture.md`](./docs/architecture.md).
|
|
202
206
|
|
|
207
|
+
## Maintenance & support
|
|
208
|
+
|
|
209
|
+
This project is built and maintained by **[Quantum Media Technologies sp. z o.o.](https://www.qmediat.io/)** — a registered Polish technology company (qmediat.io) — that uses `gemini-code-context-mcp` daily in its own developer workflows. The practical consequences for users:
|
|
210
|
+
|
|
211
|
+
- **Bugs that affect real coding sessions get fixed first.** Examples: v1.5.1 retry on transient Node `fetch failed` (caught during a real `/coderev` run on a large repo), v1.7.0 streaming heartbeat (silent 60-180 s pauses on HIGH thinking were friction for our own team), v1.7.2 fake-timer race in CI (broke the release pipeline — diagnosed via 3-tool model consult, fixed and shipped same day).
|
|
212
|
+
- **Long-term roadmap, not a weekend project.** Commercial backing means the project sits on qmediat.io's product roadmap with allocated engineering time. We are not going to disappear. The full release history is in [CHANGELOG.md](./CHANGELOG.md); current cadence is ~1-2 weeks per release since launch.
|
|
213
|
+
- **Issues and PRs welcome.** File at [github.com/qmediat/gemini-code-context-mcp/issues](https://github.com/qmediat/gemini-code-context-mcp/issues) — we triage on a 48-hour response SLA. For commercial inquiries (custom integrations, support contracts, on-prem deployments): [contact@qmt.email](mailto:contact@qmt.email).
|
|
214
|
+
- **If this saves you time, please [⭐ star the repo](https://github.com/qmediat/gemini-code-context-mcp).** It is the simplest signal you can send that the work is worth continuing, and it directly helps us justify continued investment.
|
|
215
|
+
|
|
203
216
|
## Contributing
|
|
204
217
|
|
|
205
218
|
See [CONTRIBUTING.md](./CONTRIBUTING.md). Short version: TypeScript strict, `npm run lint && npm run typecheck && npm test`, add a changeset, open a PR.
|
package/dist/server.d.ts
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* MCP server bootstrap — stdio transport, tool dispatch, graceful lifecycle.
|
|
3
|
+
*
|
|
4
|
+
* **Shutdown drain (T6, v1.8.0):** SIGINT/SIGTERM does not immediately tear
|
|
5
|
+
* down the transport. Each `CallToolRequestSchema` handler invocation is
|
|
6
|
+
* tracked in `inFlightCalls` for the duration of `tool.execute(...)`. On
|
|
7
|
+
* shutdown we `Promise.race` the set against `SHUTDOWN_DRAIN_MS` (default
|
|
8
|
+
* 5000 ms) so a long `ask`/`code`/`ask_agentic` already in flight when
|
|
9
|
+
* Claude Code restarts the server can return its response before the
|
|
10
|
+
* process exits. Hard timeout: a hung call cannot block shutdown — abandoned
|
|
11
|
+
* calls are logged at WARN, not silently dropped. Override the drain budget
|
|
12
|
+
* with `GEMINI_CODE_CONTEXT_SHUTDOWN_DRAIN_MS=<ms>` (clamped to [0, 60000]).
|
|
3
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* Wait for every promise in `inFlight` to settle, but no longer than
|
|
16
|
+
* `timeoutMs`. Returns the count of promises that settled in time.
|
|
17
|
+
*
|
|
18
|
+
* Exported for unit testing without booting a real server.
|
|
19
|
+
*/
|
|
20
|
+
export declare function drainInFlight(inFlight: ReadonlySet<Promise<unknown>>, timeoutMs: number): Promise<{
|
|
21
|
+
settled: number;
|
|
22
|
+
abandoned: number;
|
|
23
|
+
}>;
|
|
4
24
|
export declare function runServer(): Promise<void>;
|
|
5
25
|
//# sourceMappingURL=server.d.ts.map
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAkDH;;;;;GAKG;AACH,wBAAsB,aAAa,CACjC,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,EACvC,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CA4BjD;AAkBD,wBAAsB,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CA+I/C"}
|
package/dist/server.js
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* MCP server bootstrap — stdio transport, tool dispatch, graceful lifecycle.
|
|
3
|
+
*
|
|
4
|
+
* **Shutdown drain (T6, v1.8.0):** SIGINT/SIGTERM does not immediately tear
|
|
5
|
+
* down the transport. Each `CallToolRequestSchema` handler invocation is
|
|
6
|
+
* tracked in `inFlightCalls` for the duration of `tool.execute(...)`. On
|
|
7
|
+
* shutdown we `Promise.race` the set against `SHUTDOWN_DRAIN_MS` (default
|
|
8
|
+
* 5000 ms) so a long `ask`/`code`/`ask_agentic` already in flight when
|
|
9
|
+
* Claude Code restarts the server can return its response before the
|
|
10
|
+
* process exits. Hard timeout: a hung call cannot block shutdown — abandoned
|
|
11
|
+
* calls are logged at WARN, not silently dropped. Override the drain budget
|
|
12
|
+
* with `GEMINI_CODE_CONTEXT_SHUTDOWN_DRAIN_MS=<ms>` (clamped to [0, 60000]).
|
|
3
13
|
*/
|
|
4
14
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
5
15
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
@@ -16,6 +26,54 @@ import { readFileSync } from 'node:fs';
|
|
|
16
26
|
import { dirname as pathDirname, join as pathJoin } from 'node:path';
|
|
17
27
|
import { fileURLToPath } from 'node:url';
|
|
18
28
|
const SERVER_NAME = '@qmediat.io/gemini-code-context-mcp';
|
|
29
|
+
const DEFAULT_SHUTDOWN_DRAIN_MS = 5_000;
|
|
30
|
+
const MAX_SHUTDOWN_DRAIN_MS = 60_000;
|
|
31
|
+
/**
|
|
32
|
+
* Resolve the drain budget from `GEMINI_CODE_CONTEXT_SHUTDOWN_DRAIN_MS`.
|
|
33
|
+
* Non-finite, negative, or out-of-range values fall back to the default —
|
|
34
|
+
* an operator typo (`abc`, `-1`, `999999`) must NOT silently disable the
|
|
35
|
+
* timeout (would block forever) or set it to a pathological value.
|
|
36
|
+
*/
|
|
37
|
+
function resolveDrainBudgetMs() {
|
|
38
|
+
const raw = process.env.GEMINI_CODE_CONTEXT_SHUTDOWN_DRAIN_MS;
|
|
39
|
+
if (raw === undefined || raw === '')
|
|
40
|
+
return DEFAULT_SHUTDOWN_DRAIN_MS;
|
|
41
|
+
const parsed = Number.parseInt(raw, 10);
|
|
42
|
+
if (!Number.isFinite(parsed) || parsed < 0 || parsed > MAX_SHUTDOWN_DRAIN_MS) {
|
|
43
|
+
logger.warn(`GEMINI_CODE_CONTEXT_SHUTDOWN_DRAIN_MS='${raw}' is invalid (must be 0–${MAX_SHUTDOWN_DRAIN_MS}); using default ${DEFAULT_SHUTDOWN_DRAIN_MS}ms`);
|
|
44
|
+
return DEFAULT_SHUTDOWN_DRAIN_MS;
|
|
45
|
+
}
|
|
46
|
+
return parsed;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Wait for every promise in `inFlight` to settle, but no longer than
|
|
50
|
+
* `timeoutMs`. Returns the count of promises that settled in time.
|
|
51
|
+
*
|
|
52
|
+
* Exported for unit testing without booting a real server.
|
|
53
|
+
*/
|
|
54
|
+
export async function drainInFlight(inFlight, timeoutMs) {
|
|
55
|
+
const total = inFlight.size;
|
|
56
|
+
if (total === 0)
|
|
57
|
+
return { settled: 0, abandoned: 0 };
|
|
58
|
+
if (timeoutMs <= 0)
|
|
59
|
+
return { settled: 0, abandoned: total };
|
|
60
|
+
let settled = 0;
|
|
61
|
+
// Wrap each promise to count completions as they settle. We don't care
|
|
62
|
+
// about resolve vs reject — both mean "the handler returned, no longer
|
|
63
|
+
// in-flight". The `settled` counter is read by the caller AFTER the race
|
|
64
|
+
// resolves, so it reflects the count at the moment the timeout (or
|
|
65
|
+
// allSettled) fired.
|
|
66
|
+
const tracked = [...inFlight].map((p) => p.then(() => {
|
|
67
|
+
settled++;
|
|
68
|
+
}, () => {
|
|
69
|
+
settled++;
|
|
70
|
+
}));
|
|
71
|
+
await Promise.race([
|
|
72
|
+
Promise.allSettled(tracked),
|
|
73
|
+
new Promise((resolve) => setTimeout(resolve, timeoutMs).unref?.()),
|
|
74
|
+
]);
|
|
75
|
+
return { settled, abandoned: total - settled };
|
|
76
|
+
}
|
|
19
77
|
/**
|
|
20
78
|
* Read version from package.json at runtime. `server.js` lives in `dist/` after
|
|
21
79
|
* compilation (or `src/` under `tsx`) so package.json is the parent directory.
|
|
@@ -64,6 +122,13 @@ export async function runServer() {
|
|
|
64
122
|
inputSchema: buildToolInputSchema(tool),
|
|
65
123
|
})),
|
|
66
124
|
}));
|
|
125
|
+
// Tracks `tool.execute(...)` calls that are still mid-flight. Used by
|
|
126
|
+
// `shutdown()` to drain gracefully on SIGINT/SIGTERM (T6). Set semantics:
|
|
127
|
+
// each handler invocation `add`s its own promise on entry and `delete`s
|
|
128
|
+
// it in a `finally` block, regardless of resolve/reject path. A hung call
|
|
129
|
+
// remains in the set until shutdown's `drainInFlight` either races it to
|
|
130
|
+
// completion or times out and abandons it.
|
|
131
|
+
const inFlightCalls = new Set();
|
|
67
132
|
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
68
133
|
const { name, arguments: rawArgs } = request.params;
|
|
69
134
|
const progressToken = request.params._meta?.progressToken;
|
|
@@ -86,19 +151,43 @@ export async function runServer() {
|
|
|
86
151
|
progressToken,
|
|
87
152
|
throttle,
|
|
88
153
|
};
|
|
154
|
+
const callPromise = (async () => {
|
|
155
|
+
try {
|
|
156
|
+
const result = await tool.execute(parse.data, ctx);
|
|
157
|
+
return result;
|
|
158
|
+
}
|
|
159
|
+
catch (err) {
|
|
160
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
161
|
+
logger.error(`tool '${name}' threw: ${message}`);
|
|
162
|
+
return errorResult(`${name} threw: ${message}`);
|
|
163
|
+
}
|
|
164
|
+
})();
|
|
165
|
+
inFlightCalls.add(callPromise);
|
|
89
166
|
try {
|
|
90
|
-
|
|
91
|
-
return result;
|
|
167
|
+
return await callPromise;
|
|
92
168
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
logger.error(`tool '${name}' threw: ${message}`);
|
|
96
|
-
return errorResult(`${name} threw: ${message}`);
|
|
169
|
+
finally {
|
|
170
|
+
inFlightCalls.delete(callPromise);
|
|
97
171
|
}
|
|
98
172
|
});
|
|
99
173
|
const transport = new StdioServerTransport();
|
|
100
174
|
const shutdown = async (signal) => {
|
|
101
175
|
logger.info(`received ${signal}, shutting down…`);
|
|
176
|
+
// Drain in-flight tool calls BEFORE closing the transport / DB. Otherwise
|
|
177
|
+
// an in-progress `await tool.execute(...)` in the request handler would
|
|
178
|
+
// race against `server.close()` / `manifest.close()` and either lose its
|
|
179
|
+
// response (transport torn down) or hit "manifest closed" mid-write.
|
|
180
|
+
if (inFlightCalls.size > 0) {
|
|
181
|
+
const drainBudgetMs = resolveDrainBudgetMs();
|
|
182
|
+
logger.info(`waiting up to ${drainBudgetMs}ms for ${inFlightCalls.size} in-flight tool call(s) to drain`);
|
|
183
|
+
const { settled, abandoned } = await drainInFlight(inFlightCalls, drainBudgetMs);
|
|
184
|
+
if (abandoned > 0) {
|
|
185
|
+
logger.warn(`${abandoned}/${settled + abandoned} in-flight call(s) did not drain in ${drainBudgetMs}ms — abandoning`);
|
|
186
|
+
}
|
|
187
|
+
else if (settled > 0) {
|
|
188
|
+
logger.info(`drained ${settled} in-flight call(s) cleanly`);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
102
191
|
ttlWatcher.stop();
|
|
103
192
|
try {
|
|
104
193
|
manifest.close();
|
package/dist/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.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AAE,GAAG,EAAE;QAC1B,KAAK,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE;QAC3B,KAAK,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;IAEH,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,MAAM,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;AAC9C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qmediat.io/gemini-code-context-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"mcpName": "io.github.qmediat/gemini-code-context-mcp",
|
|
5
5
|
"description": "MCP server that gives Claude Code persistent memory of your codebase, backed by Gemini's 2M-token context. Includes eager `ask`/`code` for cached repo Q&A and `ask_agentic` for agentic file access on repos that exceed the model's input-token limit.",
|
|
6
6
|
"keywords": [
|