Skip to content

Commit 6e943f2

Browse files
authored
chore(cli): remove --mcp option from trigger dev (#4246)
1 parent e0b42a8 commit 6e943f2

6 files changed

Lines changed: 5 additions & 341 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Remove the legacy `--mcp` and `--mcp-port` options from the `dev` command. Run the dedicated `trigger mcp` command to start the Trigger.dev MCP server.

packages/cli-v3/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"@types/gradient-string": "^1.1.2",
5757
"@types/ini": "^4.1.1",
5858
"@types/object-hash": "3.0.6",
59-
"@types/polka": "^0.5.7",
6059
"@types/react": "^18.2.48",
6160
"@types/resolve": "^1.20.6",
6261
"@types/rimraf": "^4.0.5",
@@ -133,7 +132,6 @@
133132
"p-retry": "^6.1.0",
134133
"partysocket": "^1.0.2",
135134
"pkg-types": "^1.1.3",
136-
"polka": "^0.5.2",
137135
"resolve": "^1.22.8",
138136
"semver": "^7.5.0",
139137
"signal-exit": "^4.1.0",

packages/cli-v3/src/commands/dev.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ const DevCommandOptions = CommonCommandOptions.extend({
5959
envFile: z.string().optional(),
6060
keepTmpFiles: z.boolean().default(false),
6161
maxConcurrentRuns: z.coerce.number().optional(),
62-
mcp: z.boolean().default(false),
63-
mcpPort: z.coerce.number().optional().default(3333),
6462
analyze: z.boolean().default(false),
6563
disableWarnings: z.boolean().default(false),
6664
skipMCPInstall: z.boolean().default(false),
@@ -101,8 +99,6 @@ export function configureDevCommand(program: Command) {
10199
"--keep-tmp-files",
102100
"Keep temporary files after the dev session ends, helpful for debugging"
103101
)
104-
.option("--mcp", "Start the MCP server")
105-
.option("--mcp-port", "The port to run the MCP server on", "3333")
106102
.addOption(
107103
new CommandOption("--analyze", "Analyze the build output and import timings").hideHelp()
108104
)

packages/cli-v3/src/dev/devSession.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import type { EphemeralDirectory } from "../utilities/tempDirectories.js";
2323
import { clearTmpDirs, getStoreDir, getTmpDir } from "../utilities/tempDirectories.js";
2424
import { startDevOutput } from "./devOutput.js";
2525
import { startWorkerRuntime } from "./devSupervisor.js";
26-
import { startMcpServer, stopMcpServer } from "./mcpServer.js";
2726
import { writeJSONFile } from "../utilities/fileSystem.js";
2827
import { join } from "node:path";
2928

@@ -67,17 +66,6 @@ export async function startDevSession({
6766
dashboardUrl,
6867
});
6968

70-
if (rawArgs.mcp) {
71-
await startMcpServer({
72-
port: rawArgs.mcpPort,
73-
cliApiClient: client,
74-
devSession: {
75-
dashboardUrl,
76-
projectRef: rawConfig.project,
77-
},
78-
});
79-
}
80-
8169
const stopOutput = startDevOutput({
8270
name,
8371
branch,
@@ -237,7 +225,6 @@ export async function startDevSession({
237225
stopBundling?.().catch((error) => {});
238226
runtime.shutdown().catch((error) => {});
239227
stopOutput();
240-
stopMcpServer();
241228
},
242229
};
243230
}

packages/cli-v3/src/dev/mcpServer.ts

Lines changed: 0 additions & 266 deletions
This file was deleted.

0 commit comments

Comments
 (0)