mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
Merge pull request #66 from chiyuki0325/fix/mcp-tool-name
fix(mcp): replace dot with underscore in tool name to meet ai sdk's need
This commit is contained in:
@@ -192,7 +192,7 @@ func (s *Source) buildToolsAndRoutes(ctx context.Context, botID string) ([]mcpgw
|
||||
origin := strings.TrimSpace(tool.Name)
|
||||
alias := origin
|
||||
if prefix != "" {
|
||||
alias = prefix + "." + origin
|
||||
alias = prefix + "_" + origin
|
||||
}
|
||||
tool.Name = alias
|
||||
if strings.TrimSpace(tool.Description) != "" {
|
||||
|
||||
Reference in New Issue
Block a user