github / github/github-mcp-server

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

オープン
#1,246 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug stale
主要言語
Go
スター
33k
フォーク
5k
平均マージ
2日 1時間
マージ済み PR(30日)
52

説明

### 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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。