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

Đang mở
#1,246 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
go, javascript
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Không có tệp repository hoặc test nào được nêu tên. Hãy tái hiện request OpenAI Responses API được hiển thị tới https://api.githubcopilot.com/mcp/ bằng các tool đã liệt kê, sau đó truy vết việc kết thúc MCP session tạo ra mã 32600. Hoàn tất khi xác định được vấn đề về tính tương thích hoặc request và xác minh rằng cùng request đó không còn kết thúc session nữa.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
33.1k
Fork
5k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
27

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/github-mcp-server

Tất cả issue của github/github-mcp-server

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.