Skip to content

Simplify register_name assignment based on server count#756

Open
xu-song wants to merge 1 commit intoQwenLM:mainfrom
xu-song:patch-3
Open

Simplify register_name assignment based on server count#756
xu-song wants to merge 1 commit intoQwenLM:mainfrom
xu-song:patch-3

Conversation

@xu-song
Copy link

@xu-song xu-song commented Dec 20, 2025

只有 1 个mcp_server的时候,不需要添加 server_name

                if len(mcp_servers) > 1:
                    register_name = server_name + '-' + tool.name
                else:
                    register_name = tool.name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant