fix: MCP service name

This commit is contained in:
Dallin Romney 2025-08-14 20:19:16 -07:00
parent 60b5491e1b
commit 136f9ddb3e

View file

@ -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);