Commit Graph

7 Commits

Author SHA1 Message Date
Copilot
5242cf0c9d
fix: Remove non-compliant characters from MCP tool names for API compatibility (#11903)
* Initial plan

* fix: address PR review feedback - remove dots/colons, add error handling and logging

Co-authored-by: DeJeune <67425183+DeJeune@users.noreply.github.com>

* refactor: improve error handling consistency and default values

Co-authored-by: DeJeune <67425183+DeJeune@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: DeJeune <67425183+DeJeune@users.noreply.github.com>
2025-12-14 00:22:08 +08:00
SuYao
0ac3a2dd72
Update src/main/utils/__tests__/mcp.test.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-04 21:00:47 +08:00
SuYao
f800ec8593
Update src/main/utils/__tests__/mcp.test.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-04 21:00:38 +08:00
suyao
59c606eac6
fix format 2025-12-04 20:51:20 +08:00
suyao
b6efe41b86
feat: add transliteration support for internationalization in tool names 2025-12-03 14:13:07 +08:00
suyao
b361d29940
fix: enhance character sanitization for internationalization support in tool names 2025-12-03 13:48:29 +08:00
Copilot
1746e8b21f
Fix MCP server confusion when multiple instances of the same server are configured (#10897)
* Initial plan

* Fix MCP server confusion by making tool IDs unique with serverId

Co-authored-by: DeJeune <67425183+DeJeune@users.noreply.github.com>

* Run yarn format to fix code formatting

Co-authored-by: DeJeune <67425183+DeJeune@users.noreply.github.com>

* Fix unit test: allow dash separator in tool names

Co-authored-by: DeJeune <67425183+DeJeune@users.noreply.github.com>

* Fix edge cases: preserve suffix on truncation, handle non-alphanumeric serverId

Co-authored-by: DeJeune <67425183+DeJeune@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: DeJeune <67425183+DeJeune@users.noreply.github.com>
2025-11-27 21:50:51 +08:00