Skip to content

MCP Support #2324

@kulinacs

Description

@kulinacs

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions