Expand description
§Task MCP
An MCP server to prevent agents from losing track of all the dev servers they
spawn, thus burning through port numbers and running pkill indiscriminately.
[!WARNING] This server currently has a bug whereby it also loses track of tasks. See
./tbd/connection-bug.md.
§Sample
You may wish to paste something like the following into AGENTS.md or CLAUDE.md:
## Process Management
Use the MCP task server for background processes, not raw bash backgrounding
or pkill. This includes dev servers, watch processes, and any long-running
commands.
- `task_ensure` to start (idempotent - safe to call if already running)
- `task_list` to see what's running
- `task_logs` to check output
- `task_stop` to stop cleanly
Never use `pkill`, `kill`, or `&` backgrounding for process management.Structs§
- Task
Ensure Args - Arguments for the
task_ensuretool. - Task
Ensure Result - Result of
task_ensure. - Task
Info - Information about a managed task.
- Task
List Result - Result of
task_list. - Task
Logs Args - Arguments for the
task_logstool. - Task
Logs Result - Result of
task_logs. - Task
Manager - Manages the collection of tracked tasks.
- Task
McpServer - MCP server for managing background tasks.
- Task
Status - Status information for a task.
- Task
Stop Args - Arguments for the
task_stoptool. - Task
Stop Result - Result of
task_stop.
Enums§
- Error
- Errors that can occur during task management.
Type Aliases§
- Result
- A specialized Result type for task-mcp operations.