fix: MCP service name
This commit is contained in:
parent
60b5491e1b
commit
136f9ddb3e
1 changed files with 1 additions and 3 deletions
|
|
@ -127,9 +127,7 @@ export async function getAllTools() {
|
|||
|
||||
let mcpTools: MCPTool[] = [];
|
||||
let mcpToolNames: string[] = [];
|
||||
const mcpServiceResult = getServiceSync<MCPServiceState>(
|
||||
SERVICE_NAMES.TOOL_PERMISSIONS,
|
||||
);
|
||||
const mcpServiceResult = getServiceSync<MCPServiceState>(SERVICE_NAMES.MCP);
|
||||
if (mcpServiceResult.state === "ready") {
|
||||
mcpTools = mcpServiceResult?.value?.tools ?? [];
|
||||
mcpToolNames = mcpTools.map((t) => t.name);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue