@nowline/mcp 0.12.1 → 0.13.0
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/diagnostics.d.ts +7 -4
- package/dist/diagnostics.d.ts.map +1 -1
- package/dist/diagnostics.js +12 -8
- package/dist/diagnostics.js.map +1 -1
- package/dist/generated/ui-bundle.d.ts.map +1 -1
- package/dist/generated/ui-bundle.js +2 -2
- package/dist/generated/ui-bundle.js.map +1 -1
- package/dist/generated/version.d.ts +3 -0
- package/dist/generated/version.d.ts.map +1 -0
- package/dist/generated/version.js +5 -0
- package/dist/generated/version.js.map +1 -0
- package/dist/http.d.ts +1 -1
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +48 -0
- package/dist/http.js.map +1 -1
- package/dist/index.js +13 -54
- package/dist/index.js.map +1 -1
- package/dist/path-guard.d.ts +43 -0
- package/dist/path-guard.d.ts.map +1 -0
- package/dist/path-guard.js +110 -0
- package/dist/path-guard.js.map +1 -0
- package/dist/server.d.ts +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +87 -58
- package/dist/server.js.map +1 -1
- package/dist/start.d.ts +30 -0
- package/dist/start.d.ts.map +1 -0
- package/dist/start.js +80 -0
- package/dist/start.js.map +1 -0
- package/package.json +14 -10
- package/src/diagnostics.ts +13 -10
- package/src/generated/ui-bundle.ts +2 -2
- package/src/generated/version.ts +5 -0
- package/src/http.ts +58 -1
- package/src/index.ts +14 -64
- package/src/path-guard.ts +134 -0
- package/src/server.ts +147 -67
- package/src/start.ts +101 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-bundle.js","sourceRoot":"","sources":["../../src/generated/ui-bundle.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,EAAE;AACF,qEAAqE;AACrE,8CAA8C;AAC9C,EAAE;AACF,mFAAmF;AAEnF,yEAAyE;AACzE,MAAM,CAAC,MAAM,SAAS,GAAW,
|
|
1
|
+
{"version":3,"file":"ui-bundle.js","sourceRoot":"","sources":["../../src/generated/ui-bundle.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,EAAE;AACF,qEAAqE;AACrE,8CAA8C;AAC9C,EAAE;AACF,mFAAmF;AAEnF,yEAAyE;AACzE,MAAM,CAAC,MAAM,SAAS,GAAW,2wrhDAA2wrhD,CAAC;AAE7yrhD,gFAAgF;AAChF,MAAM,CAAC,MAAM,YAAY,GAAW,ioshDAAioshD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/generated/version.ts"],"names":[],"mappings":"AAGA,kFAAkF;AAClF,eAAO,MAAM,WAAW,EAAE,MAAiB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// GENERATED — do not edit. Re-run `pnpm --filter @nowline/mcp build` to regenerate.
|
|
2
|
+
// Source: packages/mcp/package.json "version".
|
|
3
|
+
/** The @nowline/mcp package version, reported as the MCP `serverInfo.version`. */
|
|
4
|
+
export const MCP_VERSION = "0.13.0";
|
|
5
|
+
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/generated/version.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,+CAA+C;AAE/C,kFAAkF;AAClF,MAAM,CAAC,MAAM,WAAW,GAAW,QAAQ,CAAC"}
|
package/dist/http.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
2
|
-
import type
|
|
2
|
+
import { type McpServer } from '@modelcontextprotocol/server';
|
|
3
3
|
export declare function createMcpHttpHandler(createServer: () => McpServer): (req: IncomingMessage, res: ServerResponse) => Promise<void>;
|
|
4
4
|
//# sourceMappingURL=http.d.ts.map
|
package/dist/http.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEjE,OAAO,EAEH,KAAK,SAAS,EAGjB,MAAM,8BAA8B,CAAC;AAItC,wBAAgB,oBAAoB,CAChC,YAAY,EAAE,MAAM,SAAS,GAC9B,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAyB9D"}
|
package/dist/http.js
CHANGED
|
@@ -5,9 +5,26 @@
|
|
|
5
5
|
// own McpServer and transport. Sharing one pair across requests could deliver
|
|
6
6
|
// one HTTP client's messages to another, and since
|
|
7
7
|
// @modelcontextprotocol/server 2.3.0 the SDK throws on reuse.
|
|
8
|
+
//
|
|
9
|
+
// Binding 127.0.0.1 keeps other machines out but not a web page the user has
|
|
10
|
+
// open: by DNS rebinding, a page can send requests that reach this socket with
|
|
11
|
+
// its own name in Host and Origin. Stateless mode needs no `initialize`, so one
|
|
12
|
+
// such POST could call any tool. Every request is checked against the
|
|
13
|
+
// localhost names and the port this server listens on before the SDK sees it.
|
|
8
14
|
import { NodeStreamableHTTPServerTransport } from '@modelcontextprotocol/node';
|
|
15
|
+
import { localhostAllowedHostnames, validateHostHeader, validateOriginHeader, } from '@modelcontextprotocol/server';
|
|
16
|
+
const LOCALHOST_NAMES = localhostAllowedHostnames();
|
|
9
17
|
export function createMcpHttpHandler(createServer) {
|
|
10
18
|
return async (req, res) => {
|
|
19
|
+
const rejection = localRequestRejection(req);
|
|
20
|
+
if (rejection !== undefined) {
|
|
21
|
+
res.writeHead(403, { 'Content-Type': 'application/json' }).end(JSON.stringify({
|
|
22
|
+
jsonrpc: '2.0',
|
|
23
|
+
error: { code: -32000, message: rejection },
|
|
24
|
+
id: null,
|
|
25
|
+
}));
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
11
28
|
const server = createServer();
|
|
12
29
|
const transport = new NodeStreamableHTTPServerTransport({
|
|
13
30
|
sessionIdGenerator: undefined,
|
|
@@ -20,4 +37,35 @@ export function createMcpHttpHandler(createServer) {
|
|
|
20
37
|
await transport.handleRequest(req, res);
|
|
21
38
|
};
|
|
22
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Why the request must be refused, or `undefined` when it may proceed.
|
|
42
|
+
*
|
|
43
|
+
* Host must name localhost, 127.0.0.1 or [::1] with this server's port. Origin
|
|
44
|
+
* may be absent (MCP clients that aren't browsers don't send one); when present
|
|
45
|
+
* it must be `http://` on one of those names and the same port.
|
|
46
|
+
*/
|
|
47
|
+
function localRequestRejection(req) {
|
|
48
|
+
const port = String(req.socket.localPort);
|
|
49
|
+
const host = req.headers.host;
|
|
50
|
+
const hostResult = validateHostHeader(host, LOCALHOST_NAMES);
|
|
51
|
+
if (!hostResult.ok)
|
|
52
|
+
return hostResult.message;
|
|
53
|
+
if (effectivePort(`http://${host}`) !== port)
|
|
54
|
+
return `Invalid Host: ${host}`;
|
|
55
|
+
const origin = req.headers.origin;
|
|
56
|
+
const originResult = validateOriginHeader(origin, LOCALHOST_NAMES);
|
|
57
|
+
if (!originResult.ok)
|
|
58
|
+
return originResult.message;
|
|
59
|
+
if (origin) {
|
|
60
|
+
const url = new URL(origin);
|
|
61
|
+
if (url.protocol !== 'http:' || effectivePort(origin) !== port) {
|
|
62
|
+
return `Invalid Origin: ${origin}`;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return undefined;
|
|
66
|
+
}
|
|
67
|
+
function effectivePort(url) {
|
|
68
|
+
const parsed = new URL(url);
|
|
69
|
+
return parsed.port || (parsed.protocol === 'https:' ? '443' : '80');
|
|
70
|
+
}
|
|
23
71
|
//# sourceMappingURL=http.js.map
|
package/dist/http.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../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MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;IAC5B,OAAO,MAAM,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AACxE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// @nowline/mcp — entry point for `npx @nowline/mcp`.
|
|
3
3
|
//
|
|
4
|
-
// Parses --root, --port, and --version flags
|
|
5
|
-
//
|
|
4
|
+
// Parses --root, --port, and --version flags and hands them to
|
|
5
|
+
// startMcpServer (start.ts), which `nowline --mcp` calls too. Transports:
|
|
6
6
|
// stdio (default) standard MCP stdio transport
|
|
7
7
|
// http (--port <N>) Streamable HTTP transport on localhost:<N>
|
|
8
8
|
//
|
|
@@ -10,27 +10,8 @@
|
|
|
10
10
|
// npx @nowline/mcp [--root <path>] [--port <N>] [--version]
|
|
11
11
|
//
|
|
12
12
|
// Spec: specs/mcp.md.
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { dirname, resolve } from 'node:path';
|
|
16
|
-
import { fileURLToPath } from 'node:url';
|
|
17
|
-
import { StdioServerTransport } from '@modelcontextprotocol/server/stdio';
|
|
18
|
-
import { createMcpHttpHandler } from './http.js';
|
|
19
|
-
import { expandRootPath } from './root-path.js';
|
|
20
|
-
import { createMcpServer } from './server.js';
|
|
21
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
22
|
-
const __dirname = dirname(__filename);
|
|
23
|
-
function readPkgVersion() {
|
|
24
|
-
try {
|
|
25
|
-
const raw = readFileSync(resolve(__dirname, '../package.json'), 'utf-8');
|
|
26
|
-
const pkg = JSON.parse(raw);
|
|
27
|
-
return pkg.version ?? '0.0.0';
|
|
28
|
-
}
|
|
29
|
-
catch {
|
|
30
|
-
return '0.0.0';
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
const PKG_VERSION = readPkgVersion();
|
|
13
|
+
import { MCP_VERSION } from './generated/version.js';
|
|
14
|
+
import { InvalidPortError, startMcpServer } from './start.js';
|
|
34
15
|
function parseArgs(argv) {
|
|
35
16
|
const args = argv.slice(2);
|
|
36
17
|
let root;
|
|
@@ -42,12 +23,7 @@ function parseArgs(argv) {
|
|
|
42
23
|
root = args[++i];
|
|
43
24
|
}
|
|
44
25
|
else if (args[i] === '--port' && i + 1 < args.length) {
|
|
45
|
-
|
|
46
|
-
if (!Number.isFinite(n) || n < 1 || n > 65535) {
|
|
47
|
-
process.stderr.write(`nowline-mcp: --port must be a number between 1 and 65535\n`);
|
|
48
|
-
process.exit(1);
|
|
49
|
-
}
|
|
50
|
-
port = n;
|
|
26
|
+
port = args[++i];
|
|
51
27
|
}
|
|
52
28
|
else if (args[i] === '-h' || args[i] === '--help') {
|
|
53
29
|
help = true;
|
|
@@ -60,7 +36,7 @@ function parseArgs(argv) {
|
|
|
60
36
|
}
|
|
61
37
|
const { root, port, help, version } = parseArgs(process.argv);
|
|
62
38
|
if (version) {
|
|
63
|
-
process.stdout.write(`${
|
|
39
|
+
process.stdout.write(`${MCP_VERSION}\n`);
|
|
64
40
|
process.exit(0);
|
|
65
41
|
}
|
|
66
42
|
if (help) {
|
|
@@ -80,30 +56,13 @@ if (help) {
|
|
|
80
56
|
].join('\n'));
|
|
81
57
|
process.exit(0);
|
|
82
58
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
// (optional field left unset) collapses to undefined → cwd fallback, inline.
|
|
86
|
-
const expandedRoot = expandRootPath(root);
|
|
87
|
-
const serverOptions = {
|
|
88
|
-
allowedRoot: expandedRoot,
|
|
89
|
-
rootConfigured: expandedRoot !== undefined,
|
|
90
|
-
version: PKG_VERSION,
|
|
91
|
-
};
|
|
92
|
-
if (port !== undefined) {
|
|
93
|
-
// Streamable HTTP transport — stateless, one server per request.
|
|
94
|
-
const httpServer = createServer(createMcpHttpHandler(() => createMcpServer(serverOptions)));
|
|
95
|
-
httpServer.listen(port, '127.0.0.1', () => {
|
|
96
|
-
process.stderr.write(`nowline-mcp: Streamable HTTP listening on http://127.0.0.1:${port}\n`);
|
|
97
|
-
});
|
|
98
|
-
await new Promise((resolve) => {
|
|
99
|
-
httpServer.on('close', resolve);
|
|
100
|
-
process.on('SIGINT', () => httpServer.close());
|
|
101
|
-
process.on('SIGTERM', () => httpServer.close());
|
|
102
|
-
});
|
|
59
|
+
try {
|
|
60
|
+
await startMcpServer({ root, port });
|
|
103
61
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
62
|
+
catch (err) {
|
|
63
|
+
if (!(err instanceof InvalidPortError))
|
|
64
|
+
throw err;
|
|
65
|
+
process.stderr.write(`nowline-mcp: ${err.message}\n`);
|
|
66
|
+
process.exit(1);
|
|
108
67
|
}
|
|
109
68
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,qDAAqD;AACrD,EAAE;AACF,0EAA0E;AAC1E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,qDAAqD;AACrD,EAAE;AACF,+DAA+D;AAC/D,0EAA0E;AAC1E,mEAAmE;AACnE,iFAAiF;AACjF,EAAE;AACF,SAAS;AACT,8DAA8D;AAC9D,EAAE;AACF,sBAAsB;AAEtB,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE9D,SAAS,SAAS,CAAC,IAAc;IAM7B,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC3B,IAAI,IAAwB,CAAC;IAC7B,IAAI,IAAwB,CAAC;IAC7B,IAAI,IAAI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,CAChB;QACI,mCAAmC;QACnC,EAAE;QACF,+BAA+B;QAC/B,EAAE;QACF,UAAU;QACV,qEAAqE;QACrE,iDAAiD;QACjD,4EAA4E;QAC5E,iEAAiE;QACjE,2CAA2C;QAC3C,mCAAmC;QACnC,EAAE;KACL,CAAC,IAAI,CAAC,IAAI,CAAC,CACf,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAED,IAAI,CAAC;IACD,MAAM,cAAc,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AACzC,CAAC;AAAC,OAAO,GAAG,EAAE,CAAC;IACX,IAAI,CAAC,CAAC,GAAG,YAAY,gBAAgB,CAAC;QAAE,MAAM,GAAG,CAAC;IAClD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC;IACtD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { IncludePolicy } from '@nowline/core';
|
|
2
|
+
import { type WorkspaceRoots } from './workspace-roots.js';
|
|
3
|
+
/** The extension the roadmap file tools (`read`, `create`, `update`, `delete`, `path` inputs) accept. */
|
|
4
|
+
export declare const NOWLINE_EXTENSIONS: readonly ['.nowline'];
|
|
5
|
+
/** The extensions `render` / `export` may write: one per export format. */
|
|
6
|
+
export declare const OUTPUT_EXTENSIONS: readonly ['.svg', '.png', '.pdf', '.html', '.md', '.xml', '.xlsx'];
|
|
7
|
+
export interface GuardedPath {
|
|
8
|
+
/** The path as requested, resolved against the primary root. Reported back to the client. */
|
|
9
|
+
readonly abs: string;
|
|
10
|
+
/** `abs` with every symlink resolved; what the tool reads or writes. */
|
|
11
|
+
readonly real: string;
|
|
12
|
+
/** The real allowed root `real` lies in. */
|
|
13
|
+
readonly root: string;
|
|
14
|
+
/** The allowed root as configured (symlinks not resolved) that `root` is the real path of. */
|
|
15
|
+
readonly displayRoot: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* `p` with every symlink resolved, for a path that may not exist yet: the
|
|
19
|
+
* real path of its deepest existing ancestor joined with the missing rest. A
|
|
20
|
+
* dangling symlink resolves to where it points, so a write through it cannot
|
|
21
|
+
* create a file outside the root.
|
|
22
|
+
*/
|
|
23
|
+
export declare function realPathAllowingMissing(p: string, hops?: number): Promise<string>;
|
|
24
|
+
/** Whether `p` is `root` or inside it. */
|
|
25
|
+
export declare function isWithin(root: string, p: string): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Resolve `filePath` against the primary root and check it lands inside an
|
|
28
|
+
* allowed root, both as written and with symlinks resolved. With
|
|
29
|
+
* `extensions`, the requested and the real path must each end in one of
|
|
30
|
+
* them (`NL.MCP.INPUT` otherwise). Throws `PathOutsideRootError` for a path
|
|
31
|
+
* outside every root (`NL.MCP.OUT_OF_ROOT`).
|
|
32
|
+
*/
|
|
33
|
+
export declare function guardPath(filePath: string, roots: WorkspaceRoots, extensions?: readonly string[]): Promise<GuardedPath>;
|
|
34
|
+
/**
|
|
35
|
+
* The include policy for a roadmap at `target`: includes stay inside its
|
|
36
|
+
* root, symlinks resolved. Resolution works in the root's configured
|
|
37
|
+
* spelling: a real path inside the real root is re-expressed under
|
|
38
|
+
* `displayRoot`, so include diagnostics name the paths the client used
|
|
39
|
+
* (macOS's `/var` is `/private/var` once resolved). A real path outside the
|
|
40
|
+
* real root has no such spelling, stays outside, and is NL.E0208.
|
|
41
|
+
*/
|
|
42
|
+
export declare function includePolicyFor(target: GuardedPath): IncludePolicy;
|
|
43
|
+
//# sourceMappingURL=path-guard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path-guard.d.ts","sourceRoot":"","sources":["../src/path-guard.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE1E,yGAAyG;AACzG,eAAO,MAAM,kBAAkB,YAAI,UAAU,CAAU,CAAC;AAExD,2EAA2E;AAC3E,eAAO,MAAM,iBAAiB,YAAI,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAU,CAAC;AAEpG,MAAM,WAAW,WAAW;IACxB,6FAA6F;IAC7F,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4CAA4C;IAC5C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,8FAA8F;IAC9F,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAChC;AAWD;;;;;GAKG;AACH,wBAAsB,uBAAuB,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,SAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAgBlF;AAED,0CAA0C;AAC1C,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAGzD;AAOD;;;;;;GAMG;AACH,wBAAsB,SAAS,CAC3B,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,cAAc,EACrB,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,GAC/B,OAAO,CAAC,WAAW,CAAC,CAwBtB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,GAAG,aAAa,CAUnE"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// The path-root sandbox for the server's file tools.
|
|
2
|
+
//
|
|
3
|
+
// A path is checked twice: lexically (resolved against the primary root, so a
|
|
4
|
+
// path that names somewhere outside is refused before anything is touched)
|
|
5
|
+
// and again after symlinks are resolved, so a link inside a root cannot reach
|
|
6
|
+
// a file outside every root. File tools also name the extensions they accept,
|
|
7
|
+
// checked on both the requested and the real path, so a `.nowline` link to a
|
|
8
|
+
// non-roadmap file is refused too.
|
|
9
|
+
//
|
|
10
|
+
// Spec: specs/mcp.md "Path roots".
|
|
11
|
+
import { promises as fs } from 'node:fs';
|
|
12
|
+
import * as path from 'node:path';
|
|
13
|
+
import { InputRequiredError, PathOutsideRootError } from './diagnostics.js';
|
|
14
|
+
import { isInsideRoots } from './workspace-roots.js';
|
|
15
|
+
/** The extension the roadmap file tools (`read`, `create`, `update`, `delete`, `path` inputs) accept. */
|
|
16
|
+
export const NOWLINE_EXTENSIONS = ['.nowline'];
|
|
17
|
+
/** The extensions `render` / `export` may write: one per export format. */
|
|
18
|
+
export const OUTPUT_EXTENSIONS = ['.svg', '.png', '.pdf', '.html', '.md', '.xml', '.xlsx'];
|
|
19
|
+
/** Symlinks followed before giving up, as the kernel's own limit (`ELOOP`). */
|
|
20
|
+
const MAX_SYMLINK_HOPS = 40;
|
|
21
|
+
function loopError(p) {
|
|
22
|
+
const err = new Error(`Too many symbolic links: ${p}`);
|
|
23
|
+
err.code = 'ELOOP';
|
|
24
|
+
return err;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* `p` with every symlink resolved, for a path that may not exist yet: the
|
|
28
|
+
* real path of its deepest existing ancestor joined with the missing rest. A
|
|
29
|
+
* dangling symlink resolves to where it points, so a write through it cannot
|
|
30
|
+
* create a file outside the root.
|
|
31
|
+
*/
|
|
32
|
+
export async function realPathAllowingMissing(p, hops = 0) {
|
|
33
|
+
if (hops > MAX_SYMLINK_HOPS)
|
|
34
|
+
throw loopError(p);
|
|
35
|
+
try {
|
|
36
|
+
return await fs.realpath(p);
|
|
37
|
+
}
|
|
38
|
+
catch (err) {
|
|
39
|
+
const code = err.code;
|
|
40
|
+
if (code !== 'ENOENT' && code !== 'ENOTDIR')
|
|
41
|
+
throw err;
|
|
42
|
+
}
|
|
43
|
+
const stat = await fs.lstat(p).catch(() => undefined);
|
|
44
|
+
if (stat?.isSymbolicLink()) {
|
|
45
|
+
const target = path.resolve(path.dirname(p), await fs.readlink(p));
|
|
46
|
+
return realPathAllowingMissing(target, hops + 1);
|
|
47
|
+
}
|
|
48
|
+
const parent = path.dirname(p);
|
|
49
|
+
if (parent === p)
|
|
50
|
+
return p;
|
|
51
|
+
return path.join(await realPathAllowingMissing(parent, hops), path.basename(p));
|
|
52
|
+
}
|
|
53
|
+
/** Whether `p` is `root` or inside it. */
|
|
54
|
+
export function isWithin(root, p) {
|
|
55
|
+
const prefix = root.endsWith(path.sep) ? root : root + path.sep;
|
|
56
|
+
return p === root || p.startsWith(prefix);
|
|
57
|
+
}
|
|
58
|
+
function hasExtension(p, extensions) {
|
|
59
|
+
const lower = p.toLowerCase();
|
|
60
|
+
return extensions.some((ext) => lower.endsWith(ext));
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Resolve `filePath` against the primary root and check it lands inside an
|
|
64
|
+
* allowed root, both as written and with symlinks resolved. With
|
|
65
|
+
* `extensions`, the requested and the real path must each end in one of
|
|
66
|
+
* them (`NL.MCP.INPUT` otherwise). Throws `PathOutsideRootError` for a path
|
|
67
|
+
* outside every root (`NL.MCP.OUT_OF_ROOT`).
|
|
68
|
+
*/
|
|
69
|
+
export async function guardPath(filePath, roots, extensions) {
|
|
70
|
+
const abs = path.resolve(roots.primary, filePath);
|
|
71
|
+
if (!isInsideRoots(abs, roots)) {
|
|
72
|
+
throw new PathOutsideRootError(filePath, roots.allowed.join(', '));
|
|
73
|
+
}
|
|
74
|
+
if (extensions && !hasExtension(abs, extensions)) {
|
|
75
|
+
throw new InputRequiredError(`Path ${filePath} must end in ${extensions.join(', ')}; this tool does not touch other files.`);
|
|
76
|
+
}
|
|
77
|
+
const real = await realPathAllowingMissing(abs);
|
|
78
|
+
const realRoots = await Promise.all(roots.allowed.map((r) => realPathAllowingMissing(r)));
|
|
79
|
+
const index = realRoots.findIndex((r) => isWithin(r, real));
|
|
80
|
+
if (index === -1) {
|
|
81
|
+
throw new PathOutsideRootError(filePath, roots.allowed.join(', '));
|
|
82
|
+
}
|
|
83
|
+
const root = realRoots[index];
|
|
84
|
+
const displayRoot = roots.allowed[index];
|
|
85
|
+
if (extensions && !hasExtension(real, extensions)) {
|
|
86
|
+
throw new InputRequiredError(`Path ${filePath} is a link to a file that does not end in ${extensions.join(', ')}.`);
|
|
87
|
+
}
|
|
88
|
+
return { abs, real, root, displayRoot };
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* The include policy for a roadmap at `target`: includes stay inside its
|
|
92
|
+
* root, symlinks resolved. Resolution works in the root's configured
|
|
93
|
+
* spelling: a real path inside the real root is re-expressed under
|
|
94
|
+
* `displayRoot`, so include diagnostics name the paths the client used
|
|
95
|
+
* (macOS's `/var` is `/private/var` once resolved). A real path outside the
|
|
96
|
+
* real root has no such spelling, stays outside, and is NL.E0208.
|
|
97
|
+
*/
|
|
98
|
+
export function includePolicyFor(target) {
|
|
99
|
+
return {
|
|
100
|
+
kind: 'rooted',
|
|
101
|
+
root: target.displayRoot,
|
|
102
|
+
realPath: async (p) => {
|
|
103
|
+
const real = await fs.realpath(p);
|
|
104
|
+
if (!isWithin(target.root, real))
|
|
105
|
+
return real;
|
|
106
|
+
return path.join(target.displayRoot, path.relative(target.root, real));
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=path-guard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path-guard.js","sourceRoot":"","sources":["../src/path-guard.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,EAAE;AACF,8EAA8E;AAC9E,2EAA2E;AAC3E,8EAA8E;AAC9E,8EAA8E;AAC9E,6EAA6E;AAC7E,mCAAmC;AACnC,EAAE;AACF,mCAAmC;AAEnC,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,oBAA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M,UAAU,gBAAgB,CAAC,MAAmB;IAChD,OAAO;QACH,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,MAAM,CAAC,WAAW;QACxB,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;YAClB,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAClC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC;gBAAE,OAAO,IAAI,CAAC;YAC9C,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;QAC3E,CAAC;KACJ,CAAC;AACN,CAAC"}
|
package/dist/server.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface McpServerOptions {
|
|
|
11
11
|
rootConfigured?: boolean;
|
|
12
12
|
/** Server name shown in the MCP client. Defaults to 'nowline'. */
|
|
13
13
|
name?: string;
|
|
14
|
-
/** Server version. Defaults to package version. */
|
|
14
|
+
/** Server version. Defaults to the @nowline/mcp package version. */
|
|
15
15
|
version?: string;
|
|
16
16
|
}
|
|
17
17
|
export declare function createMcpServer(opts?: McpServerOptions): McpServer;
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AA2FzD,4EAA4E;AAC5E,eAAO,MAAM,cAAc,4BAA4B,CAAC;AAiKxD,MAAM,WAAW,gBAAgB;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wJAAwJ;IACxJ,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kEAAkE;IAClE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,eAAe,CAAC,IAAI,GAAE,gBAAqB,GAAG,SAAS,CAyuCtE"}
|