@bridgent/cli 0.1.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/LICENSE +21 -0
- package/README.md +10 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +165 -0
- package/dist/cli.mjs.map +1 -0
- package/package.json +56 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 The Mark and Bridgent contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# bridgent
|
|
2
|
+
|
|
3
|
+
> Bridgent CLI — `bridgent dev <file>` to launch an MCP server from any TS/JS file.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
pnpm add -D bridgent @bridgent/core zod
|
|
7
|
+
bridgent dev ./server.ts
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Requires Node `>= 22.18` (uses native `--experimental-strip-types` for TypeScript).
|
package/dist/cli.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/cli.mjs
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { defineCommand, runMain } from "citty";
|
|
3
|
+
import { spawn } from "node:child_process";
|
|
4
|
+
import { existsSync } from "node:fs";
|
|
5
|
+
import { resolve } from "node:path";
|
|
6
|
+
import process from "node:process";
|
|
7
|
+
import { consola } from "consola";
|
|
8
|
+
//#region src/commands/dev.ts
|
|
9
|
+
const dev = defineCommand({
|
|
10
|
+
meta: {
|
|
11
|
+
name: "dev",
|
|
12
|
+
description: "Start an MCP server from a TypeScript or JavaScript file"
|
|
13
|
+
},
|
|
14
|
+
args: { file: {
|
|
15
|
+
type: "positional",
|
|
16
|
+
description: "Path to the server file (TS or JS)",
|
|
17
|
+
required: true
|
|
18
|
+
} },
|
|
19
|
+
async run({ args }) {
|
|
20
|
+
const file = resolve(process.cwd(), args.file);
|
|
21
|
+
if (!existsSync(file)) {
|
|
22
|
+
consola.error(`File not found: ${file}`);
|
|
23
|
+
process.exit(1);
|
|
24
|
+
}
|
|
25
|
+
const nodeArgs = file.endsWith(".ts") || file.endsWith(".tsx") || file.endsWith(".mts") ? [
|
|
26
|
+
"--experimental-strip-types",
|
|
27
|
+
"--no-warnings=ExperimentalWarning",
|
|
28
|
+
file
|
|
29
|
+
] : [file];
|
|
30
|
+
consola.info(`Starting MCP server: ${file}`);
|
|
31
|
+
const child = spawn(process.execPath, nodeArgs, {
|
|
32
|
+
stdio: "inherit",
|
|
33
|
+
env: process.env
|
|
34
|
+
});
|
|
35
|
+
child.on("exit", (code) => {
|
|
36
|
+
process.exit(code ?? 0);
|
|
37
|
+
});
|
|
38
|
+
const forward = (signal) => {
|
|
39
|
+
if (!child.killed) child.kill(signal);
|
|
40
|
+
};
|
|
41
|
+
process.on("SIGINT", () => forward("SIGINT"));
|
|
42
|
+
process.on("SIGTERM", () => forward("SIGTERM"));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/commands/inspect.ts
|
|
47
|
+
/**
|
|
48
|
+
* `bridgent inspect <file>` is a thin wrapper around the official MCP Inspector.
|
|
49
|
+
*
|
|
50
|
+
* It spawns Inspector via `pnpm dlx` (falling back to `npx -y` if unavailable)
|
|
51
|
+
* and connects it to the user's server file using stdio. The Inspector opens
|
|
52
|
+
* a browser window letting you list tools, send `tools/call`, and see traces.
|
|
53
|
+
*
|
|
54
|
+
* This is intentionally a thin wrapper — Bridgent's own inspector UI ships
|
|
55
|
+
* later as a differentiated experience.
|
|
56
|
+
*/
|
|
57
|
+
const inspect = defineCommand({
|
|
58
|
+
meta: {
|
|
59
|
+
name: "inspect",
|
|
60
|
+
description: "Open MCP Inspector and connect it to your server (stdio)."
|
|
61
|
+
},
|
|
62
|
+
args: { file: {
|
|
63
|
+
type: "positional",
|
|
64
|
+
description: "Path to the server file (TS or JS).",
|
|
65
|
+
required: true
|
|
66
|
+
} },
|
|
67
|
+
async run({ args }) {
|
|
68
|
+
const file = resolve(process.cwd(), args.file);
|
|
69
|
+
if (!existsSync(file)) {
|
|
70
|
+
consola.error(`File not found: ${file}`);
|
|
71
|
+
process.exit(1);
|
|
72
|
+
}
|
|
73
|
+
const targetArgs = file.endsWith(".ts") || file.endsWith(".tsx") || file.endsWith(".mts") ? [
|
|
74
|
+
process.execPath,
|
|
75
|
+
"--experimental-strip-types",
|
|
76
|
+
"--no-warnings=ExperimentalWarning",
|
|
77
|
+
file
|
|
78
|
+
] : [process.execPath, file];
|
|
79
|
+
consola.info("Starting MCP Inspector …");
|
|
80
|
+
const launcher = pickLauncher();
|
|
81
|
+
if (!launcher) {
|
|
82
|
+
consola.error("Neither `pnpm` nor `npx` is on PATH. Install one of them and try again.");
|
|
83
|
+
process.exit(1);
|
|
84
|
+
}
|
|
85
|
+
const child = spawn(launcher.cmd, [
|
|
86
|
+
...launcher.args,
|
|
87
|
+
"@modelcontextprotocol/inspector",
|
|
88
|
+
...targetArgs
|
|
89
|
+
], {
|
|
90
|
+
stdio: "inherit",
|
|
91
|
+
env: process.env
|
|
92
|
+
});
|
|
93
|
+
child.on("exit", (code) => {
|
|
94
|
+
process.exit(code ?? 0);
|
|
95
|
+
});
|
|
96
|
+
const forward = (signal) => {
|
|
97
|
+
if (!child.killed) child.kill(signal);
|
|
98
|
+
};
|
|
99
|
+
process.on("SIGINT", () => forward("SIGINT"));
|
|
100
|
+
process.on("SIGTERM", () => forward("SIGTERM"));
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
function pickLauncher() {
|
|
104
|
+
if (process.env.npm_execpath?.includes("pnpm") || process.env.PNPM_HOME) return {
|
|
105
|
+
cmd: "pnpm",
|
|
106
|
+
args: ["dlx"]
|
|
107
|
+
};
|
|
108
|
+
return {
|
|
109
|
+
cmd: "npx",
|
|
110
|
+
args: ["-y"]
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/cli.ts
|
|
115
|
+
runMain(defineCommand({
|
|
116
|
+
meta: {
|
|
117
|
+
name: "bridgent",
|
|
118
|
+
version: "0.0.1",
|
|
119
|
+
description: "Expose your existing APIs, databases, and code as MCP servers"
|
|
120
|
+
},
|
|
121
|
+
subCommands: {
|
|
122
|
+
dev,
|
|
123
|
+
serve: defineCommand({
|
|
124
|
+
meta: {
|
|
125
|
+
name: "serve",
|
|
126
|
+
description: "Run a Bridgent server file (typically using createHttpServer)."
|
|
127
|
+
},
|
|
128
|
+
args: { file: {
|
|
129
|
+
type: "positional",
|
|
130
|
+
description: "Path to the server file (TS or JS).",
|
|
131
|
+
required: true
|
|
132
|
+
} },
|
|
133
|
+
async run({ args }) {
|
|
134
|
+
const file = resolve(process.cwd(), args.file);
|
|
135
|
+
if (!existsSync(file)) {
|
|
136
|
+
consola.error(`File not found: ${file}`);
|
|
137
|
+
process.exit(1);
|
|
138
|
+
}
|
|
139
|
+
const nodeArgs = file.endsWith(".ts") || file.endsWith(".tsx") || file.endsWith(".mts") ? [
|
|
140
|
+
"--experimental-strip-types",
|
|
141
|
+
"--no-warnings=ExperimentalWarning",
|
|
142
|
+
file
|
|
143
|
+
] : [file];
|
|
144
|
+
consola.info(`Starting server: ${file}`);
|
|
145
|
+
const child = spawn(process.execPath, nodeArgs, {
|
|
146
|
+
stdio: "inherit",
|
|
147
|
+
env: process.env
|
|
148
|
+
});
|
|
149
|
+
child.on("exit", (code) => {
|
|
150
|
+
process.exit(code ?? 0);
|
|
151
|
+
});
|
|
152
|
+
const forward = (signal) => {
|
|
153
|
+
if (!child.killed) child.kill(signal);
|
|
154
|
+
};
|
|
155
|
+
process.on("SIGINT", () => forward("SIGINT"));
|
|
156
|
+
process.on("SIGTERM", () => forward("SIGTERM"));
|
|
157
|
+
}
|
|
158
|
+
}),
|
|
159
|
+
inspect
|
|
160
|
+
}
|
|
161
|
+
}));
|
|
162
|
+
//#endregion
|
|
163
|
+
export {};
|
|
164
|
+
|
|
165
|
+
//# sourceMappingURL=cli.mjs.map
|
package/dist/cli.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.mjs","names":[],"sources":["../src/commands/dev.ts","../src/commands/inspect.ts","../src/commands/serve.ts","../src/cli.ts"],"sourcesContent":["import { spawn } from 'node:child_process'\nimport { existsSync } from 'node:fs'\nimport { resolve } from 'node:path'\nimport process from 'node:process'\nimport { defineCommand } from 'citty'\nimport { consola } from 'consola'\n\nexport const dev = defineCommand({\n meta: {\n name: 'dev',\n description: 'Start an MCP server from a TypeScript or JavaScript file',\n },\n args: {\n file: {\n type: 'positional',\n description: 'Path to the server file (TS or JS)',\n required: true,\n },\n },\n async run({ args }): Promise<void> {\n const file = resolve(process.cwd(), args.file)\n if (!existsSync(file)) {\n consola.error(`File not found: ${file}`)\n process.exit(1)\n }\n\n const isTs = file.endsWith('.ts') || file.endsWith('.tsx') || file.endsWith('.mts')\n const nodeArgs = isTs\n ? ['--experimental-strip-types', '--no-warnings=ExperimentalWarning', file]\n : [file]\n\n consola.info(`Starting MCP server: ${file}`)\n\n const child = spawn(process.execPath, nodeArgs, {\n stdio: 'inherit',\n env: process.env,\n })\n\n child.on('exit', (code) => {\n process.exit(code ?? 0)\n })\n\n const forward = (signal: NodeJS.Signals): void => {\n if (!child.killed)\n child.kill(signal)\n }\n process.on('SIGINT', () => forward('SIGINT'))\n process.on('SIGTERM', () => forward('SIGTERM'))\n },\n})\n","import { spawn } from 'node:child_process'\nimport { existsSync } from 'node:fs'\nimport { resolve } from 'node:path'\nimport process from 'node:process'\nimport { defineCommand } from 'citty'\nimport { consola } from 'consola'\n\n/**\n * `bridgent inspect <file>` is a thin wrapper around the official MCP Inspector.\n *\n * It spawns Inspector via `pnpm dlx` (falling back to `npx -y` if unavailable)\n * and connects it to the user's server file using stdio. The Inspector opens\n * a browser window letting you list tools, send `tools/call`, and see traces.\n *\n * This is intentionally a thin wrapper — Bridgent's own inspector UI ships\n * later as a differentiated experience.\n */\nexport const inspect = defineCommand({\n meta: {\n name: 'inspect',\n description: 'Open MCP Inspector and connect it to your server (stdio).',\n },\n args: {\n file: {\n type: 'positional',\n description: 'Path to the server file (TS or JS).',\n required: true,\n },\n },\n async run({ args }): Promise<void> {\n const file = resolve(process.cwd(), args.file)\n if (!existsSync(file)) {\n consola.error(`File not found: ${file}`)\n process.exit(1)\n }\n\n const isTs = file.endsWith('.ts') || file.endsWith('.tsx') || file.endsWith('.mts')\n const targetArgs = isTs\n ? [process.execPath, '--experimental-strip-types', '--no-warnings=ExperimentalWarning', file]\n : [process.execPath, file]\n\n consola.info('Starting MCP Inspector …')\n\n // Prefer pnpm dlx (this monorepo uses pnpm); fall back to npx for users\n // running outside a pnpm shell.\n const launcher = pickLauncher()\n if (!launcher) {\n consola.error('Neither `pnpm` nor `npx` is on PATH. Install one of them and try again.')\n process.exit(1)\n }\n\n const child = spawn(launcher.cmd, [...launcher.args, '@modelcontextprotocol/inspector', ...targetArgs], {\n stdio: 'inherit',\n env: process.env,\n })\n\n child.on('exit', (code) => {\n process.exit(code ?? 0)\n })\n\n const forward = (signal: NodeJS.Signals): void => {\n if (!child.killed)\n child.kill(signal)\n }\n process.on('SIGINT', () => forward('SIGINT'))\n process.on('SIGTERM', () => forward('SIGTERM'))\n },\n})\n\nfunction pickLauncher(): { cmd: string, args: string[] } | undefined {\n // We can't synchronously check $PATH cheaply across platforms; pick by\n // env hint, then fall back at spawn time. spawn'll throw ENOENT if missing.\n if (process.env.npm_execpath?.includes('pnpm') || process.env.PNPM_HOME)\n return { cmd: 'pnpm', args: ['dlx'] }\n return { cmd: 'npx', args: ['-y'] }\n}\n","import { spawn } from 'node:child_process'\nimport { existsSync } from 'node:fs'\nimport { resolve } from 'node:path'\nimport process from 'node:process'\nimport { defineCommand } from 'citty'\nimport { consola } from 'consola'\n\nexport const serve = defineCommand({\n meta: {\n name: 'serve',\n description: 'Run a Bridgent server file (typically using createHttpServer).',\n },\n args: {\n file: {\n type: 'positional',\n description: 'Path to the server file (TS or JS).',\n required: true,\n },\n },\n async run({ args }): Promise<void> {\n const file = resolve(process.cwd(), args.file)\n if (!existsSync(file)) {\n consola.error(`File not found: ${file}`)\n process.exit(1)\n }\n\n const isTs = file.endsWith('.ts') || file.endsWith('.tsx') || file.endsWith('.mts')\n const nodeArgs = isTs\n ? ['--experimental-strip-types', '--no-warnings=ExperimentalWarning', file]\n : [file]\n\n consola.info(`Starting server: ${file}`)\n\n const child = spawn(process.execPath, nodeArgs, {\n stdio: 'inherit',\n env: process.env,\n })\n\n child.on('exit', (code) => {\n process.exit(code ?? 0)\n })\n\n const forward = (signal: NodeJS.Signals): void => {\n if (!child.killed)\n child.kill(signal)\n }\n process.on('SIGINT', () => forward('SIGINT'))\n process.on('SIGTERM', () => forward('SIGTERM'))\n },\n})\n","import { defineCommand, runMain } from 'citty'\nimport { dev } from './commands/dev'\nimport { inspect } from './commands/inspect'\nimport { serve } from './commands/serve'\n\nconst main = defineCommand({\n meta: {\n name: 'bridgent',\n version: '0.0.1',\n description: 'Expose your existing APIs, databases, and code as MCP servers',\n },\n subCommands: {\n dev,\n serve,\n inspect,\n },\n})\n\nrunMain(main)\n"],"mappings":"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"}
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bridgent/cli",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"description": "Bridgent AI CLI — expose any API, database, or code as a production-ready MCP server in one line.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://bridgent.ai",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/js-mark/bridgent.git",
|
|
11
|
+
"directory": "packages/cli"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/js-mark/bridgent/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"bridgent",
|
|
18
|
+
"bridgent-ai",
|
|
19
|
+
"mcp",
|
|
20
|
+
"model-context-protocol",
|
|
21
|
+
"ai-agent",
|
|
22
|
+
"cli",
|
|
23
|
+
"claude-code",
|
|
24
|
+
"cursor",
|
|
25
|
+
"codex",
|
|
26
|
+
"gemini-cli"
|
|
27
|
+
],
|
|
28
|
+
"bin": {
|
|
29
|
+
"bridgent": "./dist/cli.mjs"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"README.md",
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=22.18.0"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"citty": "^0.2.2",
|
|
40
|
+
"consola": "^3.4.2",
|
|
41
|
+
"@bridgent/core": "0.1.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/node": "^25.9.1",
|
|
45
|
+
"tsdown": "^0.22.1",
|
|
46
|
+
"typescript": "^6.0.3",
|
|
47
|
+
"vitest": "^3.2.6"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "tsdown",
|
|
51
|
+
"dev": "tsdown --watch",
|
|
52
|
+
"test": "vitest run --passWithNoTests",
|
|
53
|
+
"typecheck": "tsc --noEmit",
|
|
54
|
+
"lint": "eslint ."
|
|
55
|
+
}
|
|
56
|
+
}
|