@inspecto-dev/cli 0.3.8 → 0.3.9
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/.turbo/turbo-build.log +7 -7
- package/.turbo/turbo-test.log +206 -6777
- package/CHANGELOG.md +8 -0
- package/dist/bin.js +12 -1
- package/dist/{chunk-B5JDHSP7.js → chunk-T46P6RD7.js} +422 -56
- package/dist/index.d.ts +50 -1
- package/dist/index.js +9 -1
- package/package.json +5 -3
- package/src/bin.ts +20 -0
- package/src/commands/init.ts +7 -3
- package/src/commands/integration-install.ts +27 -2
- package/src/commands/mcp.ts +386 -0
- package/src/commands/onboard.ts +5 -1
- package/src/index.ts +6 -0
- package/src/instructions.ts +1 -1
- package/src/onboarding/session.ts +40 -3
- package/src/onboarding/umi-guidance.ts +1 -1
- package/src/prompts.ts +19 -9
- package/src/types.ts +10 -0
- package/tests/integration-install.test.ts +16 -0
- package/tests/mcp.test.ts +197 -0
- package/tests/onboard.test.ts +15 -0
package/CHANGELOG.md
CHANGED
package/dist/bin.js
CHANGED
|
@@ -13,8 +13,9 @@ import {
|
|
|
13
13
|
printIntegrationList,
|
|
14
14
|
printIntegrationPath,
|
|
15
15
|
reportCommandError,
|
|
16
|
+
startMcpServer,
|
|
16
17
|
teardown
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-T46P6RD7.js";
|
|
18
19
|
|
|
19
20
|
// src/bin.ts
|
|
20
21
|
import { cac } from "cac";
|
|
@@ -61,6 +62,16 @@ function createCli(_argv = process.argv) {
|
|
|
61
62
|
exitWithError(error, options);
|
|
62
63
|
}
|
|
63
64
|
});
|
|
65
|
+
cli.command("mcp", "Run Inspecto as a minimal stdio MCP server for agents").option("--server-url <url>", "Use an explicit Inspecto dev server base URL").option("--debug", "Enable debug mode to show full error traces", { default: false }).action(async (options) => {
|
|
66
|
+
try {
|
|
67
|
+
await startMcpServer({
|
|
68
|
+
...options.serverUrl ? { serverUrl: options.serverUrl } : {},
|
|
69
|
+
version
|
|
70
|
+
});
|
|
71
|
+
} catch (error) {
|
|
72
|
+
exitWithError(error, options);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
64
75
|
cli.command("init", "Set up Inspecto in your project").option("--shared", "Share .inspecto/settings.json with your team via Git", { default: false }).option("--skip-install", "Skip npm dependency installation", { default: false }).option("--dry-run", "Preview changes without modifying files", { default: false }).option("--provider <provider>", "Set default provider (e.g. copilot, claude-code)").option("--no-extension", "Skip VS Code extension installation", { default: false }).option("--packages <names>", "(Monorepo) Comma-separated list of packages to inject").option("--force", "Force initialization even if environment is unsupported", {
|
|
65
76
|
default: false
|
|
66
77
|
}).option("--debug", "Enable debug mode to show full error traces", { default: false }).action(async (options) => {
|