Hi everyone, I’m trying to connect to Atlassian’s remote MCP endpoint from a Bun/TypeScript script using `@openai/agents` with `MCPServerStreamableHttp`, and I can establish the connection, but calling `listTools()` fails with JSON-RPC error `-32601 Method not found`.
I’m trying to understand whether this should be handled as:
1. A normal capability/feature-detection case
2. An auth scope or audience problem
3. A transport/session setup issue
4. A server-side bug or unsupported MCP method on this endpoint
Environment:
- Bun 1.2.14
- `@openai/agents` 0.5.1
- `@modelcontextprotocol/sdk` 1.27.1
- Endpoint: https:// mcp .atlassian.com/v1/mcp
- OAuth token generated from Atlassian 3LO app using scopes:
- `offline_access`
- `read:jira-work`
- `write:jira-work`
- `read:confluence-content.all`
- `write:confluence-content`
Minimal repro:
```ts
import { MCPServerStreamableHttp } from "@openai/agents";
const jiramcp = new MCPServerStreamableHttp({
name: "Atlassian MCP",
url: "https://mcp.atlassian.com/v1/mcp",
requestInit: {
headers: {
Authorization: `Bearer ${process.env.JIRA_API_TOKEN}`,
Accept: "application/json, text/event-stream",
"Content-Type": "application/json",
},
},
cacheToolsList: true,
});
await jiramcp.connect();
const tools = await jiramcp.listTools();
console.log("Tools available in MCP:", tools);
```
Observed error:
```txt
McpError: MCP error -32601: Method not found
code: -32601,
data: undefined,
at new McpError (…/node_modules/@modelcontextprotocolmodelcontextprotocolmodelcontextprotocolmodelcontextprotocol/sdk/dist/esm/types.js:2018:9)
at fromEr@modelcontextprotocolmodelcontextprotocolor (…/node_modules/@modelcontextprotocolmodelcontextprotocolmodelcontextprotocolmodelcontextprotocol/sdk/dist/esm/types.js:20@modelcontextprotocolmodelcontextprotocol5:16)
at \_onrespo@modelcontextprotocolmodelcontextprotocolse (…/node_modules/@modelcontextprotocol/s@modelcontextprotocolmodelcontextprotocolk/dist/esm/shared/[my email]:482:36)
at (…/node_modules/@modelcontextprotocol/s@modelcontextprotocolmodelcontextprotocolk/dist/esm/shared/protocol.js:234:22)
at (…/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js:210:34)
```
If anyone has a working example for Atlassian remote MCP with OAuth 3LO and `listTools()`, that would help.