You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(graphql): handle error responses and deprecate dedicated server (#430)
* fix: handle path-less GraphQL errors (#402)
* fix: address PR #430 review feedback
- mock GraphQL API requests with the shared MSW server
- fail on unhandled outbound requests and assert request details
* chore(graphql): deprecate dedicated MCP server
- direct users to the Cloudflare API MCP server
- remove the GraphQL server from public listings
- tighten GraphQL response diagnostics against the specification
---------
Co-authored-by: agent-think[bot] <agent-think[bot]@users.noreply.github.com>
Co-authored-by: Matt Carey <mcarey@cloudflare.com>
Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com>
Deprecate the dedicated GraphQL MCP server in favor of the Cloudflare API MCP server at https://mcp.cloudflare.com/mcp. The replacement supports GraphQL queries, variables, and schema introspection through Code Mode.
6
+
7
+
The existing tools continue to work for now. The server exposes the migration notice through MCP instructions and is no longer advertised in the root server list or `server.json`.
Surface GraphQL API errors with optional paths and extensions instead of throwing Zod validation errors, and pass through unrecognized upstream response shapes.
Copy file name to clipboardExpand all lines: README.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,6 @@ The following servers are included in this repository:
24
24
|[**Digital Experience Monitoring server**](/apps/dex-analysis)| Get quick insight on critical applications for your organization |`https://dex.mcp.cloudflare.com/mcp`|
25
25
|[**Cloudflare One CASB server**](/apps/cloudflare-one-casb)| Quickly identify any security misconfigurations for SaaS applications to safeguard users & data |`https://casb.mcp.cloudflare.com/mcp`|
26
26
|[**Radar server**](/apps/radar)| Explore Cloudflare Radar internet insights |`https://radar.mcp.cloudflare.com/mcp`|
27
-
|[**GraphQL server**](/apps/graphql)| Get analytics data using Cloudflare’s GraphQL API |`https://graphql.mcp.cloudflare.com/mcp`|
28
27
|[**Cloudflare Blog server**](/apps/cloudflare-blog)| Search and read posts from the Cloudflare Blog |`https://blog.mcp.cloudflare.com/mcp`|
29
28
|[**Demo Day server**](/apps/demo-day)| Demonstrate a minimal Cloudflare MCP server |`https://demo-day.mcp.cloudflare.com/mcp`|
> This server is deprecated. See [`README.md`](./README.md) for the migration path to [`mcp.cloudflare.com/mcp`](https://mcp.cloudflare.com/mcp). Bug fixes are welcome, but new features should be proposed in the unified [`cloudflare/mcp`](https://github.com/cloudflare/mcp) repository.
4
+
5
+
You can run the server locally when maintaining existing behavior.
This is a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) server that supports remote MCP
4
-
connections, with Cloudflare OAuth built-in. It integrates tools powered by the [Cloudflare GraphQL API](https://developers.cloudflare.com/analytics/graphql-api/) to provide insights and utilities for your Cloudflare account.
3
+
## Deprecated
5
4
6
-
The `/mcp` and `/sse` URLs use the same stateless SDK v2 handler and create a fresh server with request-scoped auth/account context for every request. `/sse` is not the deprecated HTTP+SSE transport. OAuth remains durable security state; no MCP protocol session or protocol Durable Object is retained.
5
+
This dedicated MCP server is deprecated. Use the Cloudflare API MCP server at [`mcp.cloudflare.com/mcp`](https://mcp.cloudflare.com/mcp) instead. It supports the Cloudflare GraphQL Analytics API, including queries, variables, and schema introspection.
7
6
8
-
## Available Tools
7
+
The GraphQL Analytics API itself is not deprecated. Only this dedicated MCP server is being retired.
9
8
10
-
Currently available tools:
9
+
Configure the replacement server in your MCP client:
10
+
11
+
```json
12
+
{
13
+
"mcpServers": {
14
+
"cloudflare-api": {
15
+
"url": "https://mcp.cloudflare.com/mcp"
16
+
}
17
+
}
18
+
}
19
+
```
20
+
21
+
The replacement uses [Code Mode](https://blog.cloudflare.com/code-mode-mcp/). Its `search` and `execute` tools cover the full Cloudflare API, including `POST /client/v4/graphql`. See the [GraphQL Analytics API example](https://github.com/cloudflare/mcp#graphql-analytics-api) in [`cloudflare/mcp`](https://github.com/cloudflare/mcp).
22
+
23
+
The tools below still work for now, but no new features will be added. Please migrate to the Cloudflare API MCP server.
24
+
25
+
---
26
+
27
+
This is a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) server that supports remote MCP connections, with Cloudflare OAuth built in. It integrates tools powered by the [Cloudflare GraphQL Analytics API](https://developers.cloudflare.com/analytics/graphql-api/) to provide insights and utilities for your Cloudflare account.
28
+
29
+
Until retirement, the `/mcp` and `/sse` URLs use the same stateless SDK v2 handler and create a fresh server with request-scoped auth and account context for every request. `/sse` is not the deprecated HTTP+SSE transport. OAuth remains durable security state; the server retains no MCP protocol session or protocol Durable Object.
|**GraphQL Query Execution**|`graphql_query`| Execute a GraphQL query against the Cloudflare API |
19
40
|**GraphQL API Explorer**|`graphql_api_explorer`| Generate a Cloudflare [GraphQL API Explorer](https://graphql.cloudflare.com/explorer) link |
20
41
21
-
### Prompt Examples
42
+
### Prompt examples
22
43
23
44
-`Show me HTTP traffic for the last 7 days for example.com`
24
45
-`Show me which GraphQL datatype I need to use to query firewall events`
@@ -27,4 +48,8 @@ Currently available tools:
27
48
28
49
## Connect to the MCP server
29
50
51
+
> This connection information is retained for existing users. New users should configure [`mcp.cloudflare.com/mcp`](https://mcp.cloudflare.com/mcp) as shown above.
52
+
30
53
Connect your MCP client directly to `https://graphql.mcp.cloudflare.com/mcp`. If prompted, complete the Cloudflare OAuth flow in your browser. The tools become available after authorization.
54
+
55
+
Bug fixes are still accepted. See [CONTRIBUTING.md](CONTRIBUTING.md) for local setup. New features should be proposed in the unified [`cloudflare/mcp`](https://github.com/cloudflare/mcp) repository.
0 commit comments