crosscheck-mcp 0.2.8 → 0.2.9
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/dist/browser-ext.cjs +2 -2
- package/dist/browser-ext.js +2 -2
- package/dist/node-stdio.cjs +13 -3
- package/dist/node-stdio.cjs.map +1 -1
- package/dist/node-stdio.js +13 -3
- package/dist/node-stdio.js.map +1 -1
- package/package.json +1 -1
package/dist/node-stdio.js
CHANGED
|
@@ -2159,7 +2159,7 @@ import { z } from "zod";
|
|
|
2159
2159
|
// src/server-meta.ts
|
|
2160
2160
|
init_esm_shims();
|
|
2161
2161
|
var SERVER_NAME = "crosscheck-agent";
|
|
2162
|
-
var SERVER_VERSION = true ? "0.2.
|
|
2162
|
+
var SERVER_VERSION = true ? "0.2.9" : "0.0.0-dev";
|
|
2163
2163
|
|
|
2164
2164
|
// src/tools/audit.ts
|
|
2165
2165
|
init_esm_shims();
|
|
@@ -12467,7 +12467,7 @@ var CHECK_INTERVAL_SECONDS = 3 * 24 * 60 * 60;
|
|
|
12467
12467
|
var DEFAULT_PACKAGE = "crosscheck-cli";
|
|
12468
12468
|
var FETCH_TIMEOUT_MS = 3e3;
|
|
12469
12469
|
function engineVersion() {
|
|
12470
|
-
return true ? "0.2.
|
|
12470
|
+
return true ? "0.2.9" : "0.0.0-dev";
|
|
12471
12471
|
}
|
|
12472
12472
|
function defaultUpdateCachePath() {
|
|
12473
12473
|
const base = process.env["CROSSCHECK_DATA_DIR"] || path10.join(os.homedir() || os.tmpdir(), ".crosscheck");
|
|
@@ -14342,13 +14342,23 @@ function createServer(opts = {}) {
|
|
|
14342
14342
|
const server = new Server(
|
|
14343
14343
|
{ name: SERVER_NAME, version: SERVER_VERSION },
|
|
14344
14344
|
{
|
|
14345
|
-
|
|
14345
|
+
// listChanged: true + the oninitialized hook below tell a compliant
|
|
14346
|
+
// client to re-fetch tools/list on every fresh connection, instead of
|
|
14347
|
+
// trusting whatever schema it cached from a previous server process in
|
|
14348
|
+
// the same long-lived session — the mechanism a new tool arg (e.g. a
|
|
14349
|
+
// newly-added optional parameter) needs to actually become visible
|
|
14350
|
+
// without requiring a full client restart.
|
|
14351
|
+
capabilities: { tools: { listChanged: true } },
|
|
14346
14352
|
// Surfaces the `xc` / `XC` prefix-routing convention to MCP
|
|
14347
14353
|
// hosts that inject server instructions into the model's
|
|
14348
14354
|
// context (e.g. Claude Code). See src/instructions.ts.
|
|
14349
14355
|
instructions: renderInstructions()
|
|
14350
14356
|
}
|
|
14351
14357
|
);
|
|
14358
|
+
server.oninitialized = () => {
|
|
14359
|
+
void server.sendToolListChanged().catch(() => {
|
|
14360
|
+
});
|
|
14361
|
+
};
|
|
14352
14362
|
const tools = buildToolRegistry(opts);
|
|
14353
14363
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
14354
14364
|
tools: Array.from(tools.values()).map((t) => ({
|