-
-
Notifications
You must be signed in to change notification settings - Fork 707
Description
Description
Support for tasks to be exposed via MCP server, allowing LLMs (like coding agents) to be aware of tasks without needing to be aware of taskfile specifically. Wrappers already exist for this, but it'd be much more convenient for this to be built into Task itself.
Looking at the existing API, it makes the most sense to me to implement it as a flag, similar to --list
.
For example, running task --mcp
would start an MCP server using stdio transport and expose all of the tasks as tools. Existing descriptions and arguments could be included in the tool definitions exposed by the MCP server. Ultimately this would be just another way to call existing tasks.
I'm not sure on the maturity of the project, but assuming the server implementation is complete, I imagine this should be simple to implement with the new Go SDK (https://github.com/modelcontextprotocol/go-sdk)