Add per-agent MCP toolset configuration to agent setup (#279)

This commit is contained in:
Will Pfleger
2026-04-10 13:42:04 -04:00
committed by GitHub
parent 41d343bb35
commit d0970d64e6
9 changed files with 61 additions and 2 deletions
+3
View File
@@ -240,6 +240,7 @@ export type RawManagedAgent = {
parallelism: number;
system_prompt: string | null;
model: string | null;
mcp_toolsets: string | null;
has_api_token: boolean;
status: ManagedAgent["status"];
pid: number | null;
@@ -831,6 +832,7 @@ export function fromRawManagedAgent(agent: RawManagedAgent): ManagedAgent {
parallelism: agent.parallelism,
systemPrompt: agent.system_prompt,
model: agent.model,
mcpToolsets: agent.mcp_toolsets,
hasApiToken: agent.has_api_token,
status: agent.status,
pid: agent.pid,
@@ -927,6 +929,7 @@ export async function createManagedAgent(input: CreateManagedAgentInput) {
agentCommand: input.agentCommand,
agentArgs: input.agentArgs,
mcpCommand: input.mcpCommand,
mcpToolsets: input.mcpToolsets,
turnTimeoutSeconds: input.turnTimeoutSeconds,
idleTimeoutSeconds: input.idleTimeoutSeconds,
maxTurnDurationSeconds: input.maxTurnDurationSeconds,
+3
View File
@@ -294,6 +294,7 @@ export type ManagedAgent = {
parallelism: number;
systemPrompt: string | null;
model: string | null;
mcpToolsets: string | null;
hasApiToken: boolean;
status: "running" | "stopped" | "deployed" | "not_deployed";
pid: number | null;
@@ -337,6 +338,7 @@ export type CreateManagedAgentInput = {
systemPrompt?: string;
avatarUrl?: string;
model?: string;
mcpToolsets?: string;
mintToken?: boolean;
tokenScopes?: TokenScope[];
tokenName?: string;
@@ -407,6 +409,7 @@ export type UpdateManagedAgentInput = {
name?: string;
model?: string | null;
systemPrompt?: string | null;
mcpToolsets?: string | null;
};
export type AgentPersona = {
id: string;