Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

32600 error code when trying to connect to mcp with openai responses API

未关闭
#1,246 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
活跃
技术栈
go, javascript

调研方向

未指定任何仓库文件或测试。使用列出的工具,针对 https://api.githubcopilot.com/mcp/ 重现所示的 OpenAI Responses API 请求,然后跟踪产生代码 32600 的 MCP 会话终止。完成的标准是确定兼容性或请求问题,并验证相同的请求不再终止会话。

由索引模型根据 Issue 内容生成。

描述

bug stale
Describe the bug

I have been trying to use the githup-mcp as tool in the openai responses API and I seem to be connecting but keep getting

"error": { "type": "mcp_protocol_error", "code": 32600, "message": "Session terminated" },

even with simple calls such as return 5 most recent issue from a particular repo

Current code running
    const resp = await client.responses.create({
      model: session.model,
      temperature: 0,
      parallel_tool_calls: false,
      input: [
        { role: "system", content: [{ type: "input_text", text: "Exactly one MCP tool call; no optional fields." }] },
        { role: "user", content: [{ type: "input_text", text:
          'Call "list_issues" and return the 5 most recent issues with exactly: {"query":"repo:github/github-mcp-server"}'  
        }] },
      ],
      tools: [
        {
          type: "mcp",
          server_label: "github",
          server_url: "https://api.githubcopilot.com/mcp/",
          headers: {
            Authorization: `Bearer ${process.env.GITHUB_READ_ONLY_API_KEY}`,
          },
          require_approval: "never",
          allowed_tools: [
            "search_repositories",
            "search_issues",
            "get_issue",
            "list_issues",
          ],
        }
      ],
      max_output_tokens: 200,
    });

Any tips or help would be greatly appreciated have been trying all kinds of types of inputs and nothing is working. Thanks.

主要语言
Go
星标
33.1k
派生
5k
平均合并
2 天 1 小时
30 天内合并 PR
25

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/github-mcp-server 的其他 Issue

查看 github/github-mcp-server 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。