feat(web): tools and MCP section in Agent settings, tool call IO drawer
Settings > Agent: MCP server card (endpoint, enable switch, allowed API keys, live sessions, recent calls, copyable client config without secrets) and the capability list (scope, risk, idempotency/replay, authorization state, 7-day calls and failure rate, last call, schema sheet). Agent session tool cards get a drawer with input/output schema and the redacted input/output of the call. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
653100ceb4
commit
b3cc5a8313
5 files changed
+656
No files matched your search
@@ -52,6 +52,7 @@ import { ToolResult, ToolResultOutput, type ToolResultStatus } from "~/component
|
||||
import { StatusBadge, type StatusTone } from "~/components/console/status-badge.tsx";
|
||||
import { errorMessage } from "~/lib/api.ts";
|
||||
import { cn, formatDateTime } from "~/lib/utils.ts";
|
||||
import { ToolCallIo } from "./tool-call-card-io.tsx";
|
||||
import type { AgentStreamState, StreamItem, ToolCallView } from "./use-agent-stream.ts";
|
||||
|
||||
// Agent 会话的展示层:把 use-agent-stream 折叠出的 StreamItem 映射到 agentui 组件(components/agentui/,
|
||||
@@ -230,6 +231,7 @@ export function ToolCallCard({
|
||||
</>
|
||||
) : null}
|
||||
</dl>
|
||||
<ToolCallIo call={call} />
|
||||
</ToolResult>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user