Skip to content

Commit d52ce87

Browse files
authored
chore: update remote-mcp-server to match config of other demos (#21)
1 parent b916648 commit d52ce87

File tree

6 files changed

+6446
-57
lines changed

6 files changed

+6446
-57
lines changed

demos/remote-mcp-server/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ Let's get a remote MCP server up-and-running on Cloudflare Workers complete with
88
# clone the repository
99
git clone [email protected]:cloudflare/ai.git
1010

11-
# navigate to this example
12-
cd ai/demos/remote-mcp-server
13-
1411
# install dependencies
12+
cd ai
1513
npm install
1614

1715
# run locally
18-
npm run dev
16+
npx nx dev remote-mcp-server
1917
```
2018

2119
You should be able to open [`http://localhost:8787/`](http://localhost:8787/) in your browser
@@ -39,7 +37,7 @@ To explore your new MCP api, you can use the [MCP Inspector](https://modelcontex
3937

4038
## Connect Claude Desktop to your local MCP server
4139

42-
The MCP inspector is great, but we really want to connect this to Claude! Follow [Anthropic's Quickstart](<https://modelcontextprotocol.io/quickstart/user) and within Claude Desktop go to Settings > Developer > Edit Config to find your configuration file.
40+
The MCP inspector is great, but we really want to connect this to Claude! Follow [Anthropic's Quickstart](https://modelcontextprotocol.io/quickstart/user) and within Claude Desktop go to Settings > Developer > Edit Config to find your configuration file.
4341

4442
Open the file in your text editor and replace it with this configuration:
4543

demos/remote-mcp-server/biome.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.6.2/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"files": {
7+
"ignore": ["node_modules/**/*", ".wrangler/**/*"]
8+
},
9+
"linter": {
10+
"enabled": true,
11+
"rules": {
12+
"recommended": true,
13+
"suspicious": {
14+
"noExplicitAny": "off",
15+
"noDebugger": "off",
16+
"noConsoleLog": "off",
17+
"noConfusingVoidType": "off"
18+
},
19+
"style": {
20+
"noNonNullAssertion": "off"
21+
}
22+
}
23+
},
24+
"formatter": {
25+
"enabled": true,
26+
"indentStyle": "tab",
27+
"indentWidth": 4,
28+
"lineWidth": 140
29+
}
30+
}

demos/remote-mcp-server/package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@
99
"cf-typegen": "wrangler types"
1010
},
1111
"devDependencies": {
12-
"@cloudflare/workers-types": "^4.20250310.0",
1312
"@modelcontextprotocol/sdk": "^1.7.0",
1413
"hono": "^4.7.4",
15-
"husky": "^9.1.7",
1614
"marked": "^15.0.7",
17-
"prettier": "^3.5.3",
1815
"typescript": "^5.5.2",
1916
"workers-mcp": "^0.1.0-3",
20-
"wrangler": "^3.112.0",
21-
"zod": "^3.24.2"
22-
}
17+
"wrangler": "^4.2.0"
18+
},
19+
"dependencies": {
20+
"zod": "^3.24.2"
21+
}
2322
}
Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,19 @@
11
{
2-
"include": ["src/**/*", "worker-configuration.d.ts"],
32
"compilerOptions": {
4-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
5-
6-
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
73
"target": "es2021",
8-
/* Specify a set of bundled library declaration files that describe the target runtime environment. */
94
"lib": ["es2021"],
10-
/* Specify what JSX code is generated. */
115
"jsx": "react-jsx",
12-
13-
/* Specify what module code is generated. */
146
"module": "es2022",
15-
/* Specify how TypeScript looks up a file from a given module specifier. */
16-
"moduleResolution": "node",
17-
/* Specify type package names to be included without being referenced in a source file. */
18-
"types": ["@cloudflare/workers-types/2023-07-01"],
19-
/* Enable importing .json files */
7+
"moduleResolution": "Bundler",
208
"resolveJsonModule": true,
21-
22-
/* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */
239
"allowJs": true,
24-
/* Enable error reporting in type-checked JavaScript files. */
2510
"checkJs": false,
26-
27-
/* Disable emitting files from a compilation. */
2811
"noEmit": true,
29-
30-
/* Ensure that each file can be safely transpiled without relying on other imports. */
3112
"isolatedModules": true,
32-
/* Allow 'import x from y' when a module doesn't have a default export. */
3313
"allowSyntheticDefaultImports": true,
34-
/* Ensure that casing is correct in imports. */
3514
"forceConsistentCasingInFileNames": true,
36-
37-
/* Enable all strict type-checking options. */
3815
"strict": true,
39-
40-
/* Skip type checking all .d.ts files. */
4116
"skipLibCheck": true
42-
}
17+
},
18+
"include": ["worker-configuration.d.ts", "src/**/*.ts"]
4319
}

0 commit comments

Comments
 (0)