@topolo/mcp 0.4.6 → 0.4.7

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.
Files changed (2) hide show
  1. package/dist/index.js +22 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3184,7 +3184,28 @@ function formatKnownValues(values, label) {
3184
3184
  }
3185
3185
 
3186
3186
  // src/version.ts
3187
- var MCP_VERSION = "0.4.1";
3187
+ import { readFileSync } from "fs";
3188
+ import { dirname, join } from "path";
3189
+ import { fileURLToPath } from "url";
3190
+ function readMcpVersion() {
3191
+ try {
3192
+ const here = dirname(fileURLToPath(import.meta.url));
3193
+ const candidates = [
3194
+ join(here, "package.json"),
3195
+ join(here, "..", "package.json")
3196
+ ];
3197
+ for (const path of candidates) {
3198
+ try {
3199
+ const pkg = JSON.parse(readFileSync(path, "utf8"));
3200
+ if (typeof pkg.version === "string" && pkg.version) return pkg.version;
3201
+ } catch {
3202
+ }
3203
+ }
3204
+ } catch {
3205
+ }
3206
+ return "0.0.0";
3207
+ }
3208
+ var MCP_VERSION = readMcpVersion();
3188
3209
 
3189
3210
  // src/server.ts
3190
3211
  function buildServer(topolo, scopes, tools = TOOLS) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topolo/mcp",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Model Context Protocol server for the Topolo platform. Exposes scope-gated tools that third-party agents (Claude, Codex, etc.) can call natively.",
5
5
  "type": "module",
6
6
  "bin": {