sigrank 1.0.43 → 1.0.44

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/index.mjs CHANGED
@@ -22,7 +22,7 @@
22
22
  * Token-only — no transcript content.
23
23
  */
24
24
 
25
- import { StdioServerTransport } from "@modelcontextprotocol/server/stdio";
25
+ import { serveStdio } from "@modelcontextprotocol/server/stdio";
26
26
  import { Server, ProtocolError, ProtocolErrorCode } from "@modelcontextprotocol/server";
27
27
  import { TOOLS, callTool } from "./tools.mjs";
28
28
  import { runCli } from "./cli.mjs";
@@ -64,8 +64,12 @@ function installMcpCrashHandlers() {
64
64
  });
65
65
  }
66
66
 
67
- async function startMcpServer() {
68
- installMcpCrashHandlers();
67
+ // One factory builds a server instance per connection. serveStdio owns the
68
+ // era decision: a `server/discover` probe with the modern envelope pins the
69
+ // connection to protocol revision 2026-07-28; an `initialize` opening serves
70
+ // the 2025-era protocol unchanged (legacy: 'serve' — retained deliberately;
71
+ // see docs/PROTOCOL-COMPATIBILITY.md). The same handlers back both eras.
72
+ function buildServer() {
69
73
  const server = new Server(
70
74
  { name: "sigrank", version: serverVersion() },
71
75
  { capabilities: { tools: { listChanged: false }, prompts: { listChanged: false }, resources: { listChanged: false } } },
@@ -251,7 +255,15 @@ async function startMcpServer() {
251
255
  };
252
256
  });
253
257
 
254
- await server.connect(new StdioServerTransport());
258
+ return server;
259
+ }
260
+
261
+ function startMcpServer() {
262
+ installMcpCrashHandlers();
263
+ serveStdio(() => buildServer(), {
264
+ onerror: (e) =>
265
+ process.stderr.write(`[sigrank-mcp] stdio transport: ${e.message}\n`),
266
+ });
255
267
  }
256
268
 
257
269
  // Route:
package/manifest.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/anthropics/mcpb/main/schemas/mcpb-manifest-v0.4.schema.json",
3
3
  "manifest_version": "0.4",
4
4
  "name": "sigrank",
5
- "version": "1.0.42",
5
+ "version": "1.0.43",
6
6
  "description": "Ranks AI coding operators by token cascade efficiency (Yield = cache_read \u00d7 output / input\u00b2). 25 tools including SigRank Standard record, yield calculation, local token usage pulls, signed submission, and tokscale-powered analytics (market share, developer profiles, model trends, cost analysis, device profiles, MCP usage, competitive intelligence). Privacy-first: runs locally, only four token counts leave the machine.",
7
7
  "author": {
8
8
  "name": "SunrisesIllNeverSee",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigrank",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
4
4
  "author": "SunrisesIllNeverSee (https://github.com/SunrisesIllNeverSee)",
5
5
  "description": "Upsilon measurement engine distributed through the sigrank CLI/MCP compatibility package, with SigRank public leaderboard tools.",
6
6
  "mcpName": "io.github.SunrisesIllNeverSee/sigrank-mcp",