docs: 交付文档、维护指引与端到端回归
补齐 README、开发计划、维护交接与 E2E 用例,执行最终验收。
This commit is contained in:
1 parent
5be5ca3376
commit
308332eb94
216 files changed
+37038
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import type { ApiClient } from './client'
|
||||
|
||||
export interface McpConnector {
|
||||
id: number
|
||||
name: string
|
||||
url: string | null
|
||||
headers: Record<string, string> | null
|
||||
}
|
||||
|
||||
/** Adds a streamable-HTTP MCP server to the org's connectors. */
|
||||
export async function createMcpConnector(api: ApiClient, connector: { name: string; url: string; headers?: Record<string, string> }): Promise<McpConnector> {
|
||||
return api.post<McpConnector>('/mcp-tools', { data: { transport_type: 'http', enabled: true, timeout: 10, ...connector } })
|
||||
}
|
||||
|
||||
/** Gives an agent the connector's tools. */
|
||||
export async function attachMcpConnector(api: ApiClient, connectorId: number, agentId: string): Promise<void> {
|
||||
await api.post('/mcp-tools/agent-association', { data: { mcp_tool_id: connectorId, agent_id: agentId } })
|
||||
}
|
||||
Reference in new issue
Block a user