Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
fix: replace dots with underscores in MCP tool names
wizardchen1dd76df26194
diff --git a/internal/agent/tools/mcp_tool.go b/internal/agent/tools/mcp_tool.goindex a2faab9df..033c2d7f7 100644--- a/internal/agent/tools/mcp_tool.go+++ b/internal/agent/tools/mcp_tool.go@@ -31,12 +31,13 @@ func NewMCPTool(service *types.MCPService, mcpTool *types.MCPTool, mcpManager *m}// Name returns the unique name for this tool-// Format: mcp.{service_name}.{tool_name}+// Format: mcp_{service_name}_{tool_name}+// Note: OpenAI API requires tool names to match ^[a-zA-Z0-9_-]+$func (t *MCPTool) Name() string {// Sanitize service name and tool name to create a valid identifierserviceName := sanitizeName(t.service.Name)toolName := sanitizeName(t.mcpTool.Name)- return fmt.Sprintf("mcp.%s.%s", serviceName, toolName)+ return fmt.Sprintf("mcp_%s_%s", serviceName, toolName)}// Description returns the tool description