@envseal/mcp-server 0.1.7 → 0.1.8
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/cli-args.d.ts +7 -2
- package/dist/cli-args.js +15 -2
- package/dist/server.js +2 -1
- package/package.json +5 -5
package/dist/cli-args.d.ts
CHANGED
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
* Argument handling for the `envseal-mcp` binary, kept out of bin.ts so it can
|
|
3
3
|
* be tested without importing a module whose side effect is starting a server.
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The shipped version, read from this package's own package.json so a release
|
|
7
|
+
* can never ship a stale hardcoded string again (0.1.6 and 0.1.7 both
|
|
8
|
+
* reported 0.1.5). Falls back to 'unknown' — never a wrong number.
|
|
9
|
+
*/
|
|
10
|
+
export declare const VERSION: string;
|
|
11
|
+
export declare const USAGE: string;
|
|
7
12
|
export type ParsedArgv = {
|
|
8
13
|
kind: 'help';
|
|
9
14
|
} | {
|
package/dist/cli-args.js
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
import { existsSync, statSync } from 'node:fs';
|
|
1
|
+
import { existsSync, readFileSync, statSync } from 'node:fs';
|
|
2
2
|
import { join, resolve } from 'node:path';
|
|
3
3
|
import { findProjectRoot } from '@envseal/core';
|
|
4
4
|
/**
|
|
5
5
|
* Argument handling for the `envseal-mcp` binary, kept out of bin.ts so it can
|
|
6
6
|
* be tested without importing a module whose side effect is starting a server.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The shipped version, read from this package's own package.json so a release
|
|
10
|
+
* can never ship a stale hardcoded string again (0.1.6 and 0.1.7 both
|
|
11
|
+
* reported 0.1.5). Falls back to 'unknown' — never a wrong number.
|
|
12
|
+
*/
|
|
13
|
+
export const VERSION = (() => {
|
|
14
|
+
try {
|
|
15
|
+
const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
|
|
16
|
+
return typeof pkg.version === 'string' ? pkg.version : 'unknown';
|
|
17
|
+
}
|
|
18
|
+
catch {
|
|
19
|
+
return 'unknown';
|
|
20
|
+
}
|
|
21
|
+
})();
|
|
9
22
|
export const USAGE = `envseal-mcp ${VERSION}
|
|
10
23
|
|
|
11
24
|
Serves the SEP/1 tools to an MCP host over stdio JSON-RPC.
|
package/dist/server.js
CHANGED
|
@@ -10,11 +10,12 @@ import * as verify from './tools/verify.js';
|
|
|
10
10
|
import * as use from './tools/use.js';
|
|
11
11
|
import * as revoke from './tools/revoke.js';
|
|
12
12
|
import { respondError } from './respond.js';
|
|
13
|
+
import { VERSION } from './cli-args.js';
|
|
13
14
|
const toolModules = [describe, declare, request, await_, verify, use, revoke];
|
|
14
15
|
export function createServer(broker) {
|
|
15
16
|
// Capabilities must be declared up front or a client will never issue
|
|
16
17
|
// tools/list, and the handlers below would be dead code.
|
|
17
|
-
const server = new Server({ name: 'envseal-mcp', version:
|
|
18
|
+
const server = new Server({ name: 'envseal-mcp', version: VERSION }, { capabilities: { tools: {} } });
|
|
18
19
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
19
20
|
tools: toolModules.map((mod) => ({
|
|
20
21
|
name: mod.name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envseal/mcp-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@modelcontextprotocol/sdk": "^1.13.0",
|
|
27
27
|
"zod": "^3.24.1",
|
|
28
|
-
"@envseal/protocol": "0.1.
|
|
29
|
-
"@envseal/core": "0.1.
|
|
30
|
-
"@envseal/
|
|
31
|
-
"@envseal/
|
|
28
|
+
"@envseal/protocol": "0.1.8",
|
|
29
|
+
"@envseal/core": "0.1.8",
|
|
30
|
+
"@envseal/registry": "0.1.8",
|
|
31
|
+
"@envseal/prompters": "0.1.8"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"tsx": "^4.19.2",
|