Repository navigation
Compatibility
Home · Installation · Compatibility · Compatibility · Tools Reference · Architecture · Providers · Configuration · Reliability · Security · Self-Hosting · Monitor · Testing · Troubleshooting · Project Tracker
The server speaks MCP over stdio by default and Streamable HTTP on request. That covers every mainstream client. The schemas are additionally written to pass the strictest consumer's validation, because a schema one client rejects can fail an entire request.
What is verified, and what is not. No vendor client has been connected to this server — connecting one needs an OpenAI or Anthropic account, which is not available here. So the table below states documented compatibility, derived from each vendor's published rules, rather than an observed round trip. What is verified locally is the part that can be: every advertised schema is linted by
SchemaCompatibilityTestsagainst the strict-mode rules, the HTTP transport is exercised over a real socket (session id, SSE framing, origin, session-less and body-limit refusals) byHTTPTransportTestsandmcp_smoke.py --http, and stdio is driven end-to-end through the real executable. See the Testing.
| Client / API | Transport | Status |
|---|---|---|
| Claude Desktop | stdio | Works |
| Claude Code | stdio | Works |
| Cursor, VS Code, Codex, other local MCP clients | stdio | Works |
| Any client that converts MCP tools to OpenAI function tools | stdio | Works |
| OpenAI Responses API remote MCP | Streamable HTTP | Works, needs a reachable URL |
| Anthropic Messages API MCP connector | Streamable HTTP | Works, needs a public HTTPS URL |
| Open Responses-compatible clients | via function tools | No server changes required |
| Limit | Value | Source |
|---|---|---|
| Tool result size, claude.ai / Desktop | ~150 000 characters | Anthropic |
| Tool result size, Claude Code | warns >10 000 tokens, default hard limit 25 000 tokens | Anthropic |
initialize startup timeout |
MCP_TIMEOUT, default 10 s in Claude Code |
Anthropic |
| stdio idle timeout | 30 minutes | Anthropic |
| Tool name length | 64 characters | OpenAI, Anthropic |
| Property name length | 64 characters | Anthropic |
| Schema nesting | 10 levels | OpenAI |
The server keeps results well inside these: a web_search result is a few thousand
characters and web_open is capped at max_characters (default 12 000, maximum
50 000), transmitted once rather than duplicated.
Every rule below is a verified rejection or requirement from a real client, and each is
enforced by SchemaCompatibilityTests so it cannot regress.
| Rule | Why |
|---|---|
additionalProperties: false on every object |
OpenAI requires this under strict mode. The most common "MCP server breaks OpenAI" failure is a missing one. |
Every declared property also in required
|
OpenAI strict mode requires it. |
Optionality expressed as a nullable type, ["string","null"]
|
The documented strict-mode idiom for an optional field. Clients that are not strict simply omit the argument. |
No format keyword |
OpenAI allows nine formats and rejects format: "uri" outright. |
No default keyword |
Not a supported keyword, and rejected outright by some OpenAI-compatible deployments. Defaults live in the descriptions and are applied by the parser. |
No oneOf / allOf / not
|
Unsupported. anyOf is the permitted combinator. |
Every object declares properties, even when empty |
An object schema without it is rejected. |
Every array declares items
|
Required for a well-formed schema. |
| Root is always a closed object | Non-object roots are rejected. |
No enum or const on a {"type":"null"} branch |
A known client normalizer copies enum onto the null branch and produces invalid schemas. |
Tool results always carry both a compact text block and structured content.
- The text block is what actually reaches the model. Neither OpenAI nor Anthropic
surfaces a tool's
outputSchemato the model, and OpenAI's own guidance for MCP server authors says to include the structured value in the text content array "for compatibility". This server deliberately renders that block human-readably rather than as a JSON-encoded copy ofstructuredContent: a search returns"[1] Title","URL: …"and"Sources: …", and a page returns a titled text body. The text block is what the model reads, so a raw JSON dump would spend context on syntax it does not use;StdioServerTestsasserts that raw JSON is not present. A host that wants the structured value readsstructuredContent, which is emitted alongside it. - Structured content is emitted for clients that read it, and it conforms to the
advertised
outputSchemaexactly: every declared property is present, with explicitnullfor absent values, so a closed schema validates. - Failures are returned as
isError: truewith an actionable message rather than a protocol error, because both vendors feed tool errors back to the model for self-correction.
A host converts each MCP tool into an OpenAI-style function definition, mapping our
inputSchema straight into function.parameters:
{
"type": "function",
"function": {
"name": "web_search",
"description": "Search the public web ...",
"parameters": { "type": "object", "properties": { "...": {} }, "required": ["..."], "additionalProperties": false },
"strict": true
}
}Because the published schemas satisfy every strict-mode rule above, they work with
strict: true and with the default non-strict mode.
The Responses API connects to remote MCP servers over Streamable HTTP or HTTP/SSE. It does not connect to stdio directly — a local server needs either this HTTP transport or a tunnel.
{
"model": "gpt-5",
"tools": [
{
"type": "mcp",
"server_label": "mcps-search",
"server_url": "https://search.example.com/mcp",
"require_approval": "never"
}
]
}Notes:
-
require_approvaldefaults to requiring approval for every MCP call, so set"never"for unattended use. -
allowed_toolscan filter by tool name, or byread_only, which matches the server'sreadOnlyHintannotations. All four tools are honestly annotatedreadOnlyHint: trueanddestructiveHint: false, so a read-only filter admits them. - OpenAI's own client currently negotiates MCP
2025-06-18; this server accepts that, and also2025-03-26,2025-11-25, and2024-11-05.
{
"mcpServers": {
"web-search": {
"command": "/absolute/path/to/SwiftWebSearchMCP",
"env": { "TAVILY_API_KEY": "tvly-..." }
}
}
}Use an absolute path. Diagnostics go to stderr, which is where these clients surface server logs.
The connector requires a publicly reachable HTTPS URL; stdio is explicitly not supported. Only tool calls are available through it, which is all this server exposes.
{
"model": "claude-sonnet-4-5",
"mcp_servers": [
{ "type": "url", "url": "https://search.example.com/mcp", "name": "mcps-search" }
],
"tools": [{ "type": "mcp_toolset", "mcp_server_name": "mcps-search" }],
"messages": [{ "role": "user", "content": "Search for the Swift 6.3 release notes." }]
}Requires the beta header mcp-client-2025-11-20. Tools are imported automatically from
tools/list. Note that strict tool use is not available on mcp_toolset, so the
schema discipline described above is what keeps inputs well formed.
Because the connector's tool-result content accepts only text, always emitting a text block alongside structured content is what keeps results readable there.
No server changes are required. The specification's published tool types are
function only; its MCP schemas are vendored from OpenAI but filtered out of the
generated spec, and MCP appears exactly once on the published site as a non-normative
example of an externally-hosted tool. Open Responses governs the client-to-provider
boundary and says nothing about what an MCP server must do.
In practice an Open Responses client is served by converting these tools to function
tools, exactly as for OpenAI:
{
"type": "function",
"name": "web_search",
"description": "Search the public web ...",
"parameters": { "type": "object", "properties": {} },
"strict": true
}The specification does not name a JSON Schema dialect and does not mention
additionalProperties or $schema, so the conservative OpenAI-compatible subset used
here is the safe choice.
SwiftWebSearchMCP --transport http --port 8080| Endpoint | Purpose |
|---|---|
POST /mcp |
MCP Streamable HTTP endpoint |
GET /health |
Liveness probe for a proxy or container |
Requirements and behaviour:
- The client must send
Accept: application/json, text/event-stream. A request that accepts only JSON is refused with406, as the transport specification requires. -
initializereturns the assignedMcp-Session-Id; later requests must echo it. A request without a session is refused with400. - Responses to everything except
initializeare Server-Sent Events; the server relays them as a chunked body and closes the stream once the reply has been produced. - A cross-origin request is refused, so a browser page cannot drive the server.
- The
Hostheader must match the address the server was configured for (loopback names, the bind address, the machine's own addresses for a wildcard bind); a proxy that forwards another public name declares it with--http-allowed-host. - Request bodies are capped at 1 MiB.
The server binds 127.0.0.1 unless --host says otherwise, and warns at startup when
it does. It has no authentication: put a TLS-terminating reverse proxy in front and
restrict access. See Security.
Home · Installation · Compatibility · Tools Reference · Architecture · Providers · Configuration · Reliability · Security · Testing · Troubleshooting · Project Tracker