@loopable/mcp 0.2.0 → 0.2.1
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/lib/version.mjs +13 -0
- package/package.json +1 -1
- package/server.mjs +2 -1
package/lib/version.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The version the server announces is the version it was published as.
|
|
3
|
+
*
|
|
4
|
+
* server.mjs once carried a literal '0.1.0' that survived a release to 0.2.0,
|
|
5
|
+
* so a harness asking the server what it was got a number npm disagreed
|
|
6
|
+
* with. package.json is the one copy — it is what the release tag is checked
|
|
7
|
+
* against and what npm records — so it is read here, once, at startup.
|
|
8
|
+
*/
|
|
9
|
+
import { readFileSync } from 'node:fs';
|
|
10
|
+
|
|
11
|
+
const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
|
|
12
|
+
|
|
13
|
+
export const VERSION = pkg.version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopable/mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "The Loopable MCP server: an agent reads the backlog it is meant to build, proposes work, asks the studio a question, and says when it is done.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://loopable.ai",
|
package/server.mjs
CHANGED
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
} from '@modelcontextprotocol/sdk/types.js';
|
|
22
22
|
import { LoopableError, TOOLS, makeClient, runTool } from './lib/tools.mjs';
|
|
23
23
|
import { resolveToken } from './lib/token.mjs';
|
|
24
|
+
import { VERSION } from './lib/version.mjs';
|
|
24
25
|
|
|
25
26
|
/**
|
|
26
27
|
* Built on first use, not at startup.
|
|
@@ -45,7 +46,7 @@ const clientOrThrow = () => {
|
|
|
45
46
|
};
|
|
46
47
|
|
|
47
48
|
const server = new Server(
|
|
48
|
-
{ name: 'loopable', version:
|
|
49
|
+
{ name: 'loopable', version: VERSION },
|
|
49
50
|
{ capabilities: { tools: {} } },
|
|
50
51
|
);
|
|
51
52
|
|