Use sentence case for MCP tool titles
This commit is contained in:
@@ -147,7 +147,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"create_agent",
|
"create_agent",
|
||||||
{
|
{
|
||||||
title: "Create Agent",
|
title: "Create agent",
|
||||||
description:
|
description:
|
||||||
"Create a new Claude or Codex agent tied to a working directory. Optionally run an initial prompt immediately or create a git worktree for the agent.",
|
"Create a new Claude or Codex agent tied to a working directory. Optionally run an initial prompt immediately or create a git worktree for the agent.",
|
||||||
inputSchema,
|
inputSchema,
|
||||||
@@ -321,7 +321,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"wait_for_agent",
|
"wait_for_agent",
|
||||||
{
|
{
|
||||||
title: "Wait For Agent",
|
title: "Wait for agent",
|
||||||
description:
|
description:
|
||||||
"Block until the agent requests permission or the current run completes. Returns the pending permission (if any) and recent activity summary.",
|
"Block until the agent requests permission or the current run completes. Returns the pending permission (if any) and recent activity summary.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
@@ -399,7 +399,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"send_agent_prompt",
|
"send_agent_prompt",
|
||||||
{
|
{
|
||||||
title: "Send Agent Prompt",
|
title: "Send agent prompt",
|
||||||
description:
|
description:
|
||||||
"Send a task to a running agent. Returns immediately after the agent begins processing.",
|
"Send a task to a running agent. Returns immediately after the agent begins processing.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
@@ -489,7 +489,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"get_agent_status",
|
"get_agent_status",
|
||||||
{
|
{
|
||||||
title: "Get Agent Status",
|
title: "Get agent status",
|
||||||
description:
|
description:
|
||||||
"Return the latest snapshot for an agent, including lifecycle state, capabilities, and pending permissions.",
|
"Return the latest snapshot for an agent, including lifecycle state, capabilities, and pending permissions.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
@@ -524,7 +524,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"list_agents",
|
"list_agents",
|
||||||
{
|
{
|
||||||
title: "List Agents",
|
title: "List agents",
|
||||||
description: "List all live agents managed by the server.",
|
description: "List all live agents managed by the server.",
|
||||||
inputSchema: {},
|
inputSchema: {},
|
||||||
outputSchema: {
|
outputSchema: {
|
||||||
@@ -548,7 +548,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"cancel_agent",
|
"cancel_agent",
|
||||||
{
|
{
|
||||||
title: "Cancel Agent Run",
|
title: "Cancel agent run",
|
||||||
description: "Abort the agent's current run but keep the agent alive for future tasks.",
|
description: "Abort the agent's current run but keep the agent alive for future tasks.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
agentId: z.string(),
|
agentId: z.string(),
|
||||||
@@ -572,7 +572,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"archive_agent",
|
"archive_agent",
|
||||||
{
|
{
|
||||||
title: "Archive Agent",
|
title: "Archive agent",
|
||||||
description:
|
description:
|
||||||
"Archive an agent (soft-delete). The agent is interrupted if running and removed from the active list.",
|
"Archive an agent (soft-delete). The agent is interrupted if running and removed from the active list.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
@@ -595,7 +595,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"kill_agent",
|
"kill_agent",
|
||||||
{
|
{
|
||||||
title: "Kill Agent",
|
title: "Kill agent",
|
||||||
description: "Terminate an agent session permanently.",
|
description: "Terminate an agent session permanently.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
agentId: z.string(),
|
agentId: z.string(),
|
||||||
@@ -617,7 +617,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"update_agent",
|
"update_agent",
|
||||||
{
|
{
|
||||||
title: "Update Agent",
|
title: "Update agent",
|
||||||
description: "Update an agent name and/or labels.",
|
description: "Update an agent name and/or labels.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
agentId: z.string(),
|
agentId: z.string(),
|
||||||
@@ -660,7 +660,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"create_schedule",
|
"create_schedule",
|
||||||
{
|
{
|
||||||
title: "Create Schedule",
|
title: "Create schedule",
|
||||||
description: "Create a recurring schedule that runs on an agent or a new agent.",
|
description: "Create a recurring schedule that runs on an agent or a new agent.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
prompt: z.string().trim().min(1, "prompt is required"),
|
prompt: z.string().trim().min(1, "prompt is required"),
|
||||||
@@ -711,7 +711,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"list_schedules",
|
"list_schedules",
|
||||||
{
|
{
|
||||||
title: "List Schedules",
|
title: "List schedules",
|
||||||
description: "List all schedules managed by the daemon.",
|
description: "List all schedules managed by the daemon.",
|
||||||
inputSchema: {},
|
inputSchema: {},
|
||||||
outputSchema: {
|
outputSchema: {
|
||||||
@@ -734,7 +734,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"inspect_schedule",
|
"inspect_schedule",
|
||||||
{
|
{
|
||||||
title: "Inspect Schedule",
|
title: "Inspect schedule",
|
||||||
description: "Inspect a schedule and its run history.",
|
description: "Inspect a schedule and its run history.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
@@ -757,7 +757,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"pause_schedule",
|
"pause_schedule",
|
||||||
{
|
{
|
||||||
title: "Pause Schedule",
|
title: "Pause schedule",
|
||||||
description: "Pause an active schedule.",
|
description: "Pause an active schedule.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
@@ -782,7 +782,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"resume_schedule",
|
"resume_schedule",
|
||||||
{
|
{
|
||||||
title: "Resume Schedule",
|
title: "Resume schedule",
|
||||||
description: "Resume a paused schedule.",
|
description: "Resume a paused schedule.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
@@ -807,7 +807,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"delete_schedule",
|
"delete_schedule",
|
||||||
{
|
{
|
||||||
title: "Delete Schedule",
|
title: "Delete schedule",
|
||||||
description: "Delete a schedule permanently.",
|
description: "Delete a schedule permanently.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
@@ -832,7 +832,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"list_providers",
|
"list_providers",
|
||||||
{
|
{
|
||||||
title: "List Providers",
|
title: "List providers",
|
||||||
description: "List available agent providers and their modes.",
|
description: "List available agent providers and their modes.",
|
||||||
inputSchema: {},
|
inputSchema: {},
|
||||||
outputSchema: {
|
outputSchema: {
|
||||||
@@ -858,7 +858,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"list_models",
|
"list_models",
|
||||||
{
|
{
|
||||||
title: "List Models",
|
title: "List models",
|
||||||
description: "List models for an agent provider.",
|
description: "List models for an agent provider.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
provider: AgentProviderEnum,
|
provider: AgentProviderEnum,
|
||||||
@@ -892,7 +892,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"get_agent_activity",
|
"get_agent_activity",
|
||||||
{
|
{
|
||||||
title: "Get Agent Activity",
|
title: "Get agent activity",
|
||||||
description: "Return recent agent timeline entries as a curated summary.",
|
description: "Return recent agent timeline entries as a curated summary.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
agentId: z.string(),
|
agentId: z.string(),
|
||||||
@@ -942,7 +942,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"set_agent_mode",
|
"set_agent_mode",
|
||||||
{
|
{
|
||||||
title: "Set Agent Session Mode",
|
title: "Set agent session mode",
|
||||||
description:
|
description:
|
||||||
"Switch the agent's session mode (plan, bypassPermissions, read-only, auto, etc.).",
|
"Switch the agent's session mode (plan, bypassPermissions, read-only, auto, etc.).",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
@@ -966,7 +966,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"list_pending_permissions",
|
"list_pending_permissions",
|
||||||
{
|
{
|
||||||
title: "List Pending Permissions",
|
title: "List pending permissions",
|
||||||
description:
|
description:
|
||||||
"Return all pending permission requests across all agents with the normalized payloads.",
|
"Return all pending permission requests across all agents with the normalized payloads.",
|
||||||
inputSchema: {},
|
inputSchema: {},
|
||||||
@@ -1000,7 +1000,7 @@ export async function createAgentManagementMcpServer(
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"respond_to_permission",
|
"respond_to_permission",
|
||||||
{
|
{
|
||||||
title: "Respond To Permission",
|
title: "Respond to permission",
|
||||||
description:
|
description:
|
||||||
"Approve or deny a pending permission request with an AgentManager-compatible response payload.",
|
"Approve or deny a pending permission request with an AgentManager-compatible response payload.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ import {
|
|||||||
ProviderSummarySchema,
|
ProviderSummarySchema,
|
||||||
parseDurationString,
|
parseDurationString,
|
||||||
sanitizePermissionRequest,
|
sanitizePermissionRequest,
|
||||||
|
setupFinishNotification,
|
||||||
serializeSnapshotWithMetadata,
|
serializeSnapshotWithMetadata,
|
||||||
startAgentRun,
|
startAgentRun,
|
||||||
toScheduleSummary,
|
toScheduleSummary,
|
||||||
@@ -310,6 +311,13 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
.describe(
|
.describe(
|
||||||
"Run agent in background. If false (default), waits for completion or permission request. If true, returns immediately.",
|
"Run agent in background. If false (default), waits for completion or permission request. If true, returns immediately.",
|
||||||
),
|
),
|
||||||
|
notifyOnFinish: z
|
||||||
|
.boolean()
|
||||||
|
.optional()
|
||||||
|
.default(false)
|
||||||
|
.describe(
|
||||||
|
"Send a notification prompt to the caller agent when this agent finishes, errors, or needs permission. Requires a caller agent context.",
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
const topLevelInputSchema = {
|
const topLevelInputSchema = {
|
||||||
@@ -355,6 +363,13 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
.describe(
|
.describe(
|
||||||
"Run agent in background. If false (default), waits for completion or permission request. If true, returns immediately.",
|
"Run agent in background. If false (default), waits for completion or permission request. If true, returns immediately.",
|
||||||
),
|
),
|
||||||
|
notifyOnFinish: z
|
||||||
|
.boolean()
|
||||||
|
.optional()
|
||||||
|
.default(false)
|
||||||
|
.describe(
|
||||||
|
"Send a notification prompt to the caller agent when this agent finishes, errors, or needs permission. Requires a caller agent context.",
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
const createAgentInputSchema = callerAgentId ? agentToAgentInputSchema : topLevelInputSchema;
|
const createAgentInputSchema = callerAgentId ? agentToAgentInputSchema : topLevelInputSchema;
|
||||||
@@ -410,7 +425,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"create_agent",
|
"create_agent",
|
||||||
{
|
{
|
||||||
title: "Create Agent",
|
title: "Create agent",
|
||||||
description:
|
description:
|
||||||
"Create a new Claude or Codex agent tied to a working directory. Optionally run an initial prompt immediately or create a git worktree for the agent.",
|
"Create a new Claude or Codex agent tied to a working directory. Optionally run an initial prompt immediately or create a git worktree for the agent.",
|
||||||
inputSchema: createAgentInputSchema,
|
inputSchema: createAgentInputSchema,
|
||||||
@@ -439,6 +454,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
let model: string | undefined;
|
let model: string | undefined;
|
||||||
let thinking: string | undefined;
|
let thinking: string | undefined;
|
||||||
let labels: Record<string, string> | undefined;
|
let labels: Record<string, string> | undefined;
|
||||||
|
let notifyOnFinish = false;
|
||||||
|
|
||||||
let resolvedCwd: string;
|
let resolvedCwd: string;
|
||||||
let resolvedMode: string | undefined;
|
let resolvedMode: string | undefined;
|
||||||
@@ -453,6 +469,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
model = callerArgs.model;
|
model = callerArgs.model;
|
||||||
thinking = callerArgs.thinking;
|
thinking = callerArgs.thinking;
|
||||||
labels = callerArgs.labels;
|
labels = callerArgs.labels;
|
||||||
|
notifyOnFinish = callerArgs.notifyOnFinish ?? false;
|
||||||
|
|
||||||
const parentAgent = agentManager.getAgent(callerAgentId);
|
const parentAgent = agentManager.getAgent(callerAgentId);
|
||||||
if (!parentAgent) {
|
if (!parentAgent) {
|
||||||
@@ -477,6 +494,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
model = topLevelArgs.model;
|
model = topLevelArgs.model;
|
||||||
thinking = topLevelArgs.thinking;
|
thinking = topLevelArgs.thinking;
|
||||||
labels = topLevelArgs.labels;
|
labels = topLevelArgs.labels;
|
||||||
|
notifyOnFinish = topLevelArgs.notifyOnFinish ?? false;
|
||||||
const { cwd, initialMode, worktreeName, baseBranch } = topLevelArgs;
|
const { cwd, initialMode, worktreeName, baseBranch } = topLevelArgs;
|
||||||
|
|
||||||
resolvedCwd = expandUserPath(cwd);
|
resolvedCwd = expandUserPath(cwd);
|
||||||
@@ -560,6 +578,14 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
startAgentRun(agentManager, snapshot.id, trimmedPrompt, childLogger);
|
startAgentRun(agentManager, snapshot.id, trimmedPrompt, childLogger);
|
||||||
|
if (notifyOnFinish && callerAgentId) {
|
||||||
|
setupFinishNotification({
|
||||||
|
agentManager,
|
||||||
|
childAgentId: snapshot.id,
|
||||||
|
callerAgentId,
|
||||||
|
logger: childLogger,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// If not running in background, wait for completion
|
// If not running in background, wait for completion
|
||||||
if (!background) {
|
if (!background) {
|
||||||
@@ -610,7 +636,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"wait_for_agent",
|
"wait_for_agent",
|
||||||
{
|
{
|
||||||
title: "Wait For Agent",
|
title: "Wait for agent",
|
||||||
description:
|
description:
|
||||||
"Block until the agent requests permission or the current run completes. Returns the pending permission (if any) and recent activity summary.",
|
"Block until the agent requests permission or the current run completes. Returns the pending permission (if any) and recent activity summary.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
@@ -687,7 +713,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"send_agent_prompt",
|
"send_agent_prompt",
|
||||||
{
|
{
|
||||||
title: "Send Agent Prompt",
|
title: "Send agent prompt",
|
||||||
description:
|
description:
|
||||||
"Send a task to a running agent. Returns immediately after the agent begins processing.",
|
"Send a task to a running agent. Returns immediately after the agent begins processing.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
@@ -704,6 +730,13 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
.describe(
|
.describe(
|
||||||
"Run agent in background. If false (default), waits for completion or permission request. If true, returns immediately.",
|
"Run agent in background. If false (default), waits for completion or permission request. If true, returns immediately.",
|
||||||
),
|
),
|
||||||
|
notifyOnFinish: z
|
||||||
|
.boolean()
|
||||||
|
.optional()
|
||||||
|
.default(false)
|
||||||
|
.describe(
|
||||||
|
"Send a notification prompt to the caller agent when this agent finishes, errors, or needs permission.",
|
||||||
|
),
|
||||||
},
|
},
|
||||||
outputSchema: {
|
outputSchema: {
|
||||||
success: z.boolean(),
|
success: z.boolean(),
|
||||||
@@ -712,7 +745,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
permission: AgentPermissionRequestPayloadSchema.nullable().optional(),
|
permission: AgentPermissionRequestPayloadSchema.nullable().optional(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
async ({ agentId, prompt, sessionMode, background = false }) => {
|
async ({ agentId, prompt, sessionMode, background = false, notifyOnFinish = false }) => {
|
||||||
const snapshot = agentManager.getAgent(agentId);
|
const snapshot = agentManager.getAgent(agentId);
|
||||||
if (!snapshot) {
|
if (!snapshot) {
|
||||||
throw new Error(`Agent ${agentId} not found`);
|
throw new Error(`Agent ${agentId} not found`);
|
||||||
@@ -737,6 +770,14 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
startAgentRun(agentManager, agentId, prompt, childLogger, {
|
startAgentRun(agentManager, agentId, prompt, childLogger, {
|
||||||
replaceRunning: true,
|
replaceRunning: true,
|
||||||
});
|
});
|
||||||
|
if (notifyOnFinish && callerAgentId) {
|
||||||
|
setupFinishNotification({
|
||||||
|
agentManager,
|
||||||
|
childAgentId: agentId,
|
||||||
|
callerAgentId,
|
||||||
|
logger: childLogger,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// If not running in background, wait for completion
|
// If not running in background, wait for completion
|
||||||
if (!background) {
|
if (!background) {
|
||||||
@@ -782,7 +823,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"get_agent_status",
|
"get_agent_status",
|
||||||
{
|
{
|
||||||
title: "Get Agent Status",
|
title: "Get agent status",
|
||||||
description:
|
description:
|
||||||
"Return the latest snapshot for an agent, including lifecycle state, capabilities, and pending permissions.",
|
"Return the latest snapshot for an agent, including lifecycle state, capabilities, and pending permissions.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
@@ -817,7 +858,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"list_agents",
|
"list_agents",
|
||||||
{
|
{
|
||||||
title: "List Agents",
|
title: "List agents",
|
||||||
description: "List all live agents managed by the server.",
|
description: "List all live agents managed by the server.",
|
||||||
inputSchema: {},
|
inputSchema: {},
|
||||||
outputSchema: {
|
outputSchema: {
|
||||||
@@ -841,7 +882,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"cancel_agent",
|
"cancel_agent",
|
||||||
{
|
{
|
||||||
title: "Cancel Agent Run",
|
title: "Cancel agent run",
|
||||||
description: "Abort the agent's current run but keep the agent alive for future tasks.",
|
description: "Abort the agent's current run but keep the agent alive for future tasks.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
agentId: z.string(),
|
agentId: z.string(),
|
||||||
@@ -865,7 +906,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"archive_agent",
|
"archive_agent",
|
||||||
{
|
{
|
||||||
title: "Archive Agent",
|
title: "Archive agent",
|
||||||
description:
|
description:
|
||||||
"Archive an agent (soft-delete). The agent is interrupted if running and removed from the active list.",
|
"Archive an agent (soft-delete). The agent is interrupted if running and removed from the active list.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
@@ -888,7 +929,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"kill_agent",
|
"kill_agent",
|
||||||
{
|
{
|
||||||
title: "Kill Agent",
|
title: "Kill agent",
|
||||||
description: "Terminate an agent session permanently.",
|
description: "Terminate an agent session permanently.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
agentId: z.string(),
|
agentId: z.string(),
|
||||||
@@ -910,7 +951,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"update_agent",
|
"update_agent",
|
||||||
{
|
{
|
||||||
title: "Update Agent",
|
title: "Update agent",
|
||||||
description: "Update an agent name and/or labels.",
|
description: "Update an agent name and/or labels.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
agentId: z.string(),
|
agentId: z.string(),
|
||||||
@@ -953,7 +994,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"list_terminals",
|
"list_terminals",
|
||||||
{
|
{
|
||||||
title: "List Terminals",
|
title: "List terminals",
|
||||||
description: "List terminals for a working directory or across all working directories.",
|
description: "List terminals for a working directory or across all working directories.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
cwd: z
|
cwd: z
|
||||||
@@ -1004,7 +1045,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"create_terminal",
|
"create_terminal",
|
||||||
{
|
{
|
||||||
title: "Create Terminal",
|
title: "Create terminal",
|
||||||
description: "Create a terminal session for a working directory.",
|
description: "Create a terminal session for a working directory.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
cwd: z
|
cwd: z
|
||||||
@@ -1039,7 +1080,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"kill_terminal",
|
"kill_terminal",
|
||||||
{
|
{
|
||||||
title: "Kill Terminal",
|
title: "Kill terminal",
|
||||||
description: "Kill an existing terminal session.",
|
description: "Kill an existing terminal session.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
terminalId: z.string(),
|
terminalId: z.string(),
|
||||||
@@ -1070,7 +1111,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"capture_terminal",
|
"capture_terminal",
|
||||||
{
|
{
|
||||||
title: "Capture Terminal",
|
title: "Capture terminal",
|
||||||
description: "Capture plain-text terminal output lines from a terminal session.",
|
description: "Capture plain-text terminal output lines from a terminal session.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
terminalId: z.string(),
|
terminalId: z.string(),
|
||||||
@@ -1115,7 +1156,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"send_terminal_keys",
|
"send_terminal_keys",
|
||||||
{
|
{
|
||||||
title: "Send Terminal Keys",
|
title: "Send terminal keys",
|
||||||
description: "Send literal text or special key tokens to a terminal session.",
|
description: "Send literal text or special key tokens to a terminal session.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
terminalId: z.string(),
|
terminalId: z.string(),
|
||||||
@@ -1151,7 +1192,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"create_schedule",
|
"create_schedule",
|
||||||
{
|
{
|
||||||
title: "Create Schedule",
|
title: "Create schedule",
|
||||||
description: "Create a recurring schedule that runs on an agent or a new agent.",
|
description: "Create a recurring schedule that runs on an agent or a new agent.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
prompt: z.string().trim().min(1, "prompt is required"),
|
prompt: z.string().trim().min(1, "prompt is required"),
|
||||||
@@ -1207,7 +1248,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"list_schedules",
|
"list_schedules",
|
||||||
{
|
{
|
||||||
title: "List Schedules",
|
title: "List schedules",
|
||||||
description: "List all schedules managed by the daemon.",
|
description: "List all schedules managed by the daemon.",
|
||||||
inputSchema: {},
|
inputSchema: {},
|
||||||
outputSchema: {
|
outputSchema: {
|
||||||
@@ -1230,7 +1271,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"inspect_schedule",
|
"inspect_schedule",
|
||||||
{
|
{
|
||||||
title: "Inspect Schedule",
|
title: "Inspect schedule",
|
||||||
description: "Inspect a schedule and its run history.",
|
description: "Inspect a schedule and its run history.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
@@ -1253,7 +1294,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"pause_schedule",
|
"pause_schedule",
|
||||||
{
|
{
|
||||||
title: "Pause Schedule",
|
title: "Pause schedule",
|
||||||
description: "Pause an active schedule.",
|
description: "Pause an active schedule.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
@@ -1278,7 +1319,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"resume_schedule",
|
"resume_schedule",
|
||||||
{
|
{
|
||||||
title: "Resume Schedule",
|
title: "Resume schedule",
|
||||||
description: "Resume a paused schedule.",
|
description: "Resume a paused schedule.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
@@ -1303,7 +1344,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"delete_schedule",
|
"delete_schedule",
|
||||||
{
|
{
|
||||||
title: "Delete Schedule",
|
title: "Delete schedule",
|
||||||
description: "Delete a schedule permanently.",
|
description: "Delete a schedule permanently.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
@@ -1328,7 +1369,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"list_providers",
|
"list_providers",
|
||||||
{
|
{
|
||||||
title: "List Providers",
|
title: "List providers",
|
||||||
description: "List available agent providers and their modes.",
|
description: "List available agent providers and their modes.",
|
||||||
inputSchema: {},
|
inputSchema: {},
|
||||||
outputSchema: {
|
outputSchema: {
|
||||||
@@ -1354,7 +1395,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"list_models",
|
"list_models",
|
||||||
{
|
{
|
||||||
title: "List Models",
|
title: "List models",
|
||||||
description: "List models for an agent provider.",
|
description: "List models for an agent provider.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
provider: AgentProviderEnum,
|
provider: AgentProviderEnum,
|
||||||
@@ -1388,7 +1429,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"list_worktrees",
|
"list_worktrees",
|
||||||
{
|
{
|
||||||
title: "List Worktrees",
|
title: "List worktrees",
|
||||||
description: "List Paseo-managed git worktrees for a repository.",
|
description: "List Paseo-managed git worktrees for a repository.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
cwd: z
|
cwd: z
|
||||||
@@ -1417,7 +1458,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"create_worktree",
|
"create_worktree",
|
||||||
{
|
{
|
||||||
title: "Create Worktree",
|
title: "Create worktree",
|
||||||
description: "Create a Paseo-managed git worktree.",
|
description: "Create a Paseo-managed git worktree.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
cwd: z
|
cwd: z
|
||||||
@@ -1454,7 +1495,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"archive_worktree",
|
"archive_worktree",
|
||||||
{
|
{
|
||||||
title: "Archive Worktree",
|
title: "Archive worktree",
|
||||||
description: "Delete a Paseo-managed git worktree.",
|
description: "Delete a Paseo-managed git worktree.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
cwd: z
|
cwd: z
|
||||||
@@ -1486,7 +1527,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"get_agent_activity",
|
"get_agent_activity",
|
||||||
{
|
{
|
||||||
title: "Get Agent Activity",
|
title: "Get agent activity",
|
||||||
description: "Return recent agent timeline entries as a curated summary.",
|
description: "Return recent agent timeline entries as a curated summary.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
agentId: z.string(),
|
agentId: z.string(),
|
||||||
@@ -1536,7 +1577,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"set_agent_mode",
|
"set_agent_mode",
|
||||||
{
|
{
|
||||||
title: "Set Agent Session Mode",
|
title: "Set agent session mode",
|
||||||
description:
|
description:
|
||||||
"Switch the agent's session mode (plan, bypassPermissions, read-only, auto, etc.).",
|
"Switch the agent's session mode (plan, bypassPermissions, read-only, auto, etc.).",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
@@ -1560,7 +1601,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"list_pending_permissions",
|
"list_pending_permissions",
|
||||||
{
|
{
|
||||||
title: "List Pending Permissions",
|
title: "List pending permissions",
|
||||||
description:
|
description:
|
||||||
"Return all pending permission requests across all agents with the normalized payloads.",
|
"Return all pending permission requests across all agents with the normalized payloads.",
|
||||||
inputSchema: {},
|
inputSchema: {},
|
||||||
@@ -1594,7 +1635,7 @@ export async function createAgentMcpServer(options: AgentMcpServerOptions): Prom
|
|||||||
server.registerTool(
|
server.registerTool(
|
||||||
"respond_to_permission",
|
"respond_to_permission",
|
||||||
{
|
{
|
||||||
title: "Respond To Permission",
|
title: "Respond to permission",
|
||||||
description:
|
description:
|
||||||
"Approve or deny a pending permission request with an AgentManager-compatible response payload.",
|
"Approve or deny a pending permission request with an AgentManager-compatible response payload.",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
|
|||||||
Reference in New Issue
Block a user