@envseal/mcp-server 0.1.6 → 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.
@@ -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
- export declare const VERSION = "0.1.5";
6
- export declare const USAGE = "envseal-mcp 0.1.5\n\nServes the SEP/1 tools to an MCP host over stdio JSON-RPC.\n\nUsage: envseal-mcp [--project <dir>]\n\nOptions:\n --project <dir> Project root to broker secrets for. Default: search\n upward from the current directory for env.schema.jsonc,\n .git or package.json. If none is found, this server\n refuses to start rather than create .envseal/ in a\n directory that is not a project.\n --help, -h Show this help and exit.\n --version, -v Print the version and exit.\n\nTransport: stdio only. --http and --port were removed; they were parsed and\nthen ignored, and no HTTP or SSE transport was ever implemented. For an HTTP\nsurface use @envseal/http-server, which speaks REST + OpenAPI on loopback --\nthat is a different protocol, not MCP over HTTP.\n";
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
- export const VERSION = '0.1.5';
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: '0.1.0' }, { capabilities: { tools: {} } });
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.6",
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.6",
29
- "@envseal/registry": "0.1.6",
30
- "@envseal/prompters": "0.1.6",
31
- "@envseal/core": "0.1.6"
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",