add tab to modify mcp_config.json in front end
This commit is contained in:
@@ -4,6 +4,9 @@ import type {
|
||||
GraphConfigReadResponse,
|
||||
GraphConfigUpsertRequest,
|
||||
GraphConfigUpsertResponse,
|
||||
McpToolConfigResponse,
|
||||
McpToolConfigUpdateRequest,
|
||||
McpToolConfigUpdateResponse,
|
||||
PipelineCreateRequest,
|
||||
PipelineCreateResponse,
|
||||
PipelineListResponse,
|
||||
@@ -85,6 +88,19 @@ export function deleteGraphConfig(
|
||||
});
|
||||
}
|
||||
|
||||
export function getMcpToolConfig(): Promise<McpToolConfigResponse> {
|
||||
return fetchJson("/v1/tool-configs/mcp");
|
||||
}
|
||||
|
||||
export function updateMcpToolConfig(
|
||||
payload: McpToolConfigUpdateRequest
|
||||
): Promise<McpToolConfigUpdateResponse> {
|
||||
return fetchJson("/v1/tool-configs/mcp", {
|
||||
method: "PUT",
|
||||
body: JSON.stringify(payload),
|
||||
});
|
||||
}
|
||||
|
||||
export function createPipeline(
|
||||
payload: PipelineCreateRequest
|
||||
): Promise<PipelineCreateResponse> {
|
||||
|
||||
Reference in New Issue
Block a user