Skip to content

Commit c0a5c0a

Browse files
committed
Merge branch 'main' of https://github.com/cloudflare/mcp-server-cloudflare into thomas/prompts
2 parents e83a8a6 + 895162f commit c0a5c0a

File tree

119 files changed

+28325
-2181
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+28325
-2181
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/node_modules/
2+
**/.gitignore
3+
**/README.md
4+
**/.vscode/
5+
**/Dockerfile
6+
**/out/

.github/workflows/evals.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44

55
jobs:
6-
test:
6+
eval:
77
runs-on: ubuntu-24.04
88
strategy:
99
matrix:
@@ -22,7 +22,10 @@ jobs:
2222
- name: Create .dev.vars file
2323
run: |
2424
echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" > ./apps/sandbox-container/.dev.vars
25+
- name: Verify .dev.vars file
26+
run: |
27+
du -h ./apps/sandbox-container/.dev.vars
2528
- name: Install dependencies
2629
run: pnpm install
2730
- name: Run evals
28-
run: pnpm eval
31+
run: pnpm eval:ci

.github/workflows/test-and-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
cache: 'pnpm'
2222
- name: Install dependencies
2323
run: pnpm install
24+
- name: Syncpack lint
25+
run: pnpm syncpack lint
2426
- name: Run linter
2527
run: pnpm check:turbo
2628
- name: Run linter (formatting)

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,6 @@ yarn-error.log*
4848
.sentryclirc.lock/
4949
tmp.json
5050
tmp.ts
51+
.idea
52+
53+
apps/sandbox-container/workdir

.syncpackrc.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ const config = {
1414
{
1515
label: 'Sentry types that are compatible with toucan-js',
1616
dependencies: ['@sentry/types', '@sentry/tracing'],
17-
pinVersion: '7.76.0',
17+
pinVersion: '8.9.2',
1818
},
1919
{
2020
label: 'toucan-js that is compatible with pinned sentry types',
2121
dependencies: ['toucan-js'],
22-
pinVersion: '3.3.1',
22+
pinVersion: '4.1.1',
2323
},
2424
{
2525
label: 'pin vitest compatible with @cloudflare/vitest-pool-workers',

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Wrangler",
5+
"type": "node",
6+
"request": "attach",
7+
"port": 9229,
8+
"cwd": "/",
9+
"resolveSourceMapLocations": null,
10+
"attachExistingChildren": false,
11+
"autoAttachChildProcesses": false,
12+
"sourceMaps": true // works with or without this line
13+
}
14+
]
15+
}

README.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,14 @@ Open Claude Desktop and navigate to Settings -> Developer -> Edit Config. This o
1313

1414
Replace the content with the following configuration. Once you restart Claude Desktop, a browser window will open showing your OAuth login page. Complete the authentication flow to grant Claude access to your MCP server. After you grant access, the tools will become available for you to use.
1515

16-
```
16+
```json
1717
{
18-
"mcpServers": {
19-
"cloudflare": {
20-
"command": "npx",
21-
"args": [
22-
"mcp-remote",
23-
"https://observability.mcp.cloudflare.com/sse"
24-
]
25-
}
26-
}
18+
"mcpServers": {
19+
"cloudflare": {
20+
"command": "npx",
21+
"args": ["mcp-remote", "https://observability.mcp.cloudflare.com/sse"]
22+
}
23+
}
2724
}
2825
```
2926

@@ -54,7 +51,8 @@ Some features may require a paid Cloudflare Workers plan. Ensure your Cloudflare
5451

5552
### Apps
5653

57-
- [workers-observability](apps/workers-observability/): The Workers Observability MCP server
54+
- [workers-observability](apps/workers-observability): The Workers Observability MCP server
55+
- [radar](apps/radar): The Cloudflare Radar MCP server
5856

5957
### Packages
6058

apps/docs-autorag/.dev.vars.example

Whitespace-only changes.

apps/docs-autorag/.eslintrc.cjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/** @type {import("eslint").Linter.Config} */
2+
module.exports = {
3+
root: true,
4+
extends: ['@repo/eslint-config/default.cjs'],
5+
}

apps/docs-autorag/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Model Context Protocol (MCP) Server + Cloudflare Documentation (via Autorag)
2+
3+
This is a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) server that supports remote MCP connections. It connects to an autorag instance (in this case, Cloudflare docs)
4+
5+
To run this server, you'll need access to an autorag instance which has indexed the contents of cloudflare-docs: https://github.com/cloudflare/cloudflare-docs/
6+
7+
The Cloudflare account this worker is deployed on already has this Autorag instance setup and indexed.
8+
9+
## Running locally
10+
11+
```
12+
pnpm run start
13+
```
14+
15+
Then connect to the server via remote MCP at `http://localhost:8976/sse`
16+
17+
## Deploying
18+
19+
```
20+
pnpm run deploy --env [ENVIRONMENT]
21+
```

0 commit comments

Comments
 (0)