rudow-local-mcp 0.1.2 → 0.1.3
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/index.js +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
// answers tool calls from that data. It makes no network calls, needs no
|
|
7
7
|
// account, and sends nothing anywhere. Log files are re-read when they
|
|
8
8
|
// change, so a growing file is picked up on the next tool call.
|
|
9
|
+
import { readFileSync } from "node:fs";
|
|
10
|
+
import { dirname, join } from "node:path";
|
|
11
|
+
import { fileURLToPath } from "node:url";
|
|
9
12
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
10
13
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
11
14
|
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
@@ -13,7 +16,12 @@ import { resolveSources } from "./config.js";
|
|
|
13
16
|
import { handleTool, isKnownTool } from "./handlers.js";
|
|
14
17
|
import { LogStore } from "./store.js";
|
|
15
18
|
import { TOOLS } from "./tools.js";
|
|
16
|
-
|
|
19
|
+
// VERSION is read from package.json at startup, so the version the server
|
|
20
|
+
// announces can never drift from the published one again. It was hardcoded
|
|
21
|
+
// at "0.1.0" while package.json moved to 0.1.2, so the shipped server
|
|
22
|
+
// announced the wrong version.
|
|
23
|
+
const packageJsonPath = join(dirname(fileURLToPath(import.meta.url)), "..", "package.json");
|
|
24
|
+
export const VERSION = JSON.parse(readFileSync(packageJsonPath, "utf8")).version;
|
|
17
25
|
function errorResult(message) {
|
|
18
26
|
return {
|
|
19
27
|
content: [{ type: "text", text: JSON.stringify({ error: message }) }],
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"author":"Rudow","bin":{"rudow-local-mcp":"dist/index.js"},"dependencies":{"@modelcontextprotocol/sdk":"^1.17.0"},"description":"Local-first MCP server that lets your AI coding agent read your own log files. No account, no cloud, nothing leaves the machine.","devDependencies":{"@types/node":"^22.0.0","typescript":"^5.6.0"},"engines":{"node":">=18"},"files":["dist","examples"],"homepage":"https://rudow.ai","keywords":["mcp","mcp-server","model-context-protocol","rudow","logs","observability","local-first"],"license":"MIT","name":"rudow-local-mcp","repository":{"type":"git","url":"git+https://github.com/Markera-OU/rudow-local-mcp.git"},"scripts":{"build":"tsc","start":"node dist/index.js","test":"npm run build && node --test test/*.test.mjs"},"type":"module","version":"0.1.
|
|
1
|
+
{"author":"Rudow","bin":{"rudow-local-mcp":"dist/index.js"},"dependencies":{"@modelcontextprotocol/sdk":"^1.17.0"},"description":"Local-first MCP server that lets your AI coding agent read your own log files. No account, no cloud, nothing leaves the machine.","devDependencies":{"@types/node":"^22.0.0","typescript":"^5.6.0"},"engines":{"node":">=18"},"files":["dist","examples"],"homepage":"https://rudow.ai","keywords":["mcp","mcp-server","model-context-protocol","rudow","logs","observability","local-first"],"license":"MIT","name":"rudow-local-mcp","repository":{"type":"git","url":"git+https://github.com/Markera-OU/rudow-local-mcp.git"},"scripts":{"build":"tsc","start":"node dist/index.js","test":"npm run build && node --test test/*.test.mjs"},"type":"module","version":"0.1.3"}
|