MCP server name cannot have space

未關閉
#378 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
swift
領域
tooling

研究方向

首先,在 Copilot for Xcode 0.38.0 中使用名為 "Azure MCP Server" 的 MCP 伺服器重現問題,然後檢查 MCP 用戶端記錄以取得產生的函式名稱。當設定的伺服器名稱包含空格時,MCP 工具名稱仍保持有效即表示完成。

由索引模型根據 Issue 內容生成。

描述

Describe the bug
GitHub Copilot client composes invalid tool names from MCP servers whose name contains space

Versions

  • Copilot for Xcode: 0.38.0
  • Xcode: 16.2
  • macOS: 14.7.6

Steps to reproduce

  1. Configure a mcp server with the name having space in it, for example "Azure MCP Server".
  2. Submit "Hi" and look at the log.

Screenshots

Logs
This in the log indicates that GitHub Copilot MCP client composed a tool name that is not valid.

"type": "function",
            "function": {
                "name": "Azure MCP Server_azmcp_aks_cluster_list",

Additional context

主要語言
Swift
星號
6.3k
分支
2k
平均合併
3 天 21 小時
30 天內合併 PR
2

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/CopilotForXcode 的其他 Issue

查看 github/CopilotForXcode 的全部 Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。