mcp-server-subagent

v1.3.3
mcp-server-subagent Checked 3 days ago Published 1 year ago

MCP server for managing sub-agents

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

run_subagent_q

Delegates the given task to a q subagent as an asynchronous sub-task. This creates a new agent instance that will handle the provided input independently and report back its results. The task can be short or long-running. Use check_subagent_status with the returned runId to monitor progress, as completion may take some time. Synonyms: Run subtask, run sub-agent, delegate task, delegate sub-task. Run a query through the Amazon Q CLI

ParameterTypeDescription
cwd *stringWorking directory path (project root) where the subagent should be executed. Set this to the current working directory, or the current project root, usually the directory with the .git/ folder.
input *stringInput to send to the subagent

run_subagent_claude

Delegates the given task to a claude subagent as an asynchronous sub-task. This creates a new agent instance that will handle the provided input independently and report back its results. The task can be short or long-running. Use check_subagent_status with the returned runId to monitor progress, as completion may take some time. Synonyms: Run subtask, run sub-agent, delegate task, delegate sub-task. Run a query through the Claude CLI

ParameterTypeDescription
cwd *stringWorking directory path (project root) where the subagent should be executed. Set this to the current working directory, or the current project root, usually the directory with the .git/ folder.
input *stringInput to send to the subagent

check_subagent_status

Check the status of a subagent run. Since sub-agents can take a while it is recommneded to wait at least 30 or 60 seconds (`sleep 30`) in between polling intervals.

ParameterTypeDescription
runId *stringRun ID to check status for

get_subagent_logs

Get the logs of a subagent run. This can be VERY long, so only use this tool if instructed. Requires only the runId.

ParameterTypeDescription
runId *stringRun ID to get logs for

update_subagent_status

Update the status and summary of a subagent run. This tool is meant to be used from sub-agents, not the main agent. Requires runId and status.

ParameterTypeDescription
runId *stringRun ID to update status for
status *stringNew status to set
summarystringSummary or result message to include with the status update

ask_parent

Enables the subagent to ask a question to the parent agent.

ParameterTypeDescription
question *stringThe question/message content
runId *stringThe subagent's current run ID

reply_subagent

Enables the parent to reply to a specific question from a subagent.

ParameterTypeDescription
answer *stringThe parent's reply content
messageId *stringThe ID of the message being replied to
runId *stringThe subagent's run ID

check_message_status

Check the status of a specific message and retrieve the reply if available. This will acknowledge the message if it has been replied to.

ParameterTypeDescription
messageId *stringMessage ID to check status for
runId *stringRun ID to check message status for