Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MCP server accessible from the CLI dev command #1780

Open
matt-aitken opened this issue Mar 10, 2025 · 1 comment
Open

MCP server accessible from the CLI dev command #1780

matt-aitken opened this issue Mar 10, 2025 · 1 comment

Comments

@matt-aitken
Copy link
Member

matt-aitken commented Mar 10, 2025

When you're running the dev command you should be able to pass --mcp like this:

npx trigger.dev@latest dev --mcp --mcp-port 3001

As well as running the normal dev command (so you can execute tasks using your local code on your machine), this would spin up an MCP server.

The main use case would be to trigger tasks and debug your runs from something like Cursor.

Use cases

1. Triggering runs

User: "Can you help me trigger my 'process-stripe-webhooks' task from my backend?"

Cursor: "Yes, I'll help you trigger your Trigger.dev task. Let me investigate using the MCP tools."

Cursor: ...

2. Debugging a run using the source code and logs

User: "My Stripe webhook task 'process-stripe-webhooks' is failing. Can you help me diagnose and fix it?"

Cursor: "I'll help you troubleshoot your Trigger.dev task. Let me investigate using the MCP tools."

Cursor: ...
@matt-aitken
Copy link
Member Author

Related feature request: https://feedback.trigger.dev/p/mcp-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant