Skip to content

Commit 8f82730

Browse files
committed
descriptions to use local version of mcp-remote for claude desktop
1 parent a4719e5 commit 8f82730

File tree

5 files changed

+45
-16
lines changed

5 files changed

+45
-16
lines changed

MyMCPServer.Sse/VibeTool.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ public IEnumerable<ContentBlock> GetVibe(string location)
3737
return
3838
[
3939
new TextContentBlock { Text = $"Curious vibes for {name} in {location}." },
40-
new EmbeddedResourceBlock
41-
{
42-
Resource = new BlobResourceContents
43-
{
44-
MimeType = "image/jpeg",
45-
Uri = "https://images.pexels.com/photos/3779448/pexels-photo-3779448.jpeg",
46-
},
47-
Meta = new JsonObject
48-
{
49-
["altText"] = $"A man listening.",
50-
},
51-
},
40+
// new EmbeddedResourceBlock //seems to break Claude Desktop
41+
// {
42+
// Resource = new BlobResourceContents
43+
// {
44+
// MimeType = "image/jpeg",
45+
// Uri = "https://images.pexels.com/photos/3779448/pexels-photo-3779448.jpeg",
46+
// },
47+
// Meta = new JsonObject
48+
// {
49+
// ["altText"] = $"A man listening.",
50+
// },
51+
// },
5252
];
5353
}
5454
}

MyMCPServer.Sse/claude_desktop.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
set NODE_OPTIONS=--use-system-ca
1+
set NODE_TLS_REJECT_UNAUTHORIZED=0
22
npx mcp-remote http://localhost:5253/bot 63113 --static-oauth-client-info "{\"client_id\":\"mcp-remote\"}"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
cd C:\Users\Manuel.Naujoks\AppData\Roaming\fnm\node-versions\v22.14.0\installation
22
$Env:NODE_TLS_REJECT_UNAUTHORIZED=0
33
set NODE_TLS_REJECT_UNAUTHORIZED=0
4-
npx mcp-remote@0.1.18 http://localhost:5253 --transport http-only
4+
npx mcp-remote 'http://localhost:5253/bot' 63113 --static-oauth-client-info '{\"client_id\":\"mcp-remote\"}'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"client_id": "mcp-remote"
3+
}

README.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,16 @@ set NODE_OPTIONS=--use-system-ca
105105
npx mcp-remote http://localhost:5253/bot 63113 --static-oauth-client-info "{\"client_id\":\"mcp-remote\"}"
106106
```
107107

108+
If `set NODE_OPTIONS=--use-system-ca` does not work anymore (`--use-system-ca is not allowed in NODE_OPTIONS`), consider `$env:NODE_TLS_REJECT_UNAUTHORIZED = "0"`.
109+
110+
Powershell does have an escaping problem, so we best put the oauth data in a separate json file and reference it like this:
111+
112+
```powershell
113+
npx mcp-remote 'http://localhost:5253/bot' 63113 --static-oauth-client-info "@D:\McpExperiments\MyMCPServer.Sse\mcp-remote-oauth-client-info.json"
114+
```
115+
116+
In the `claude_desktop_config.json` it looks like this:
117+
108118
```json
109119
{
110120
"mcpServers": {
@@ -115,13 +125,14 @@ npx mcp-remote http://localhost:5253/bot 63113 --static-oauth-client-info "{\"cl
115125
"http://localhost:5253/bot",
116126
"63113",
117127
"--static-oauth-client-info",
118-
"{\"client_id\":\"mcp-remote\"}"
128+
"@D:\\McpExperiments\\MyMCPServer.Sse\\mcp-remote-oauth-client-info.json"
119129
],
120130
"env": {
121131
"NODE_OPTIONS": "--use-system-ca"
122132
}
123133
}
124-
}
134+
},
135+
"isUsingBuiltInNodeForMcp": false
125136
}
126137
```
127138

@@ -171,6 +182,21 @@ try {
171182
}
172183
```
173184

185+
I have proposed the fix with [Resource metadata is remembered throughout the entire login flow. #167](https://github.com/geelen/mcp-remote/pull/167). Until this is merged, we can to compile `mcp-remote` locally and set it up like this:
186+
187+
```bash
188+
git clone https://github.com/halllo/mcp-remote.git
189+
cd mcp-remote
190+
git checkout -b remembers_resource_metadata origin/remembers_resource_metadata
191+
pnpm install
192+
pnpm build
193+
npm link #make it available everywhere
194+
npm list -g --depth=0 #to verify its actually available
195+
npx mcp-remote #use linked version everywhere
196+
```
197+
198+
Make sure your Claude Desktop instance does not use its built-in Node.js, but instead uses your operating system's version of Node.js. Under Settings / Extensions / Advanced Settings you should see the same Node.js version that you used when you ran `npm link`.
199+
174200
## ChatGPT
175201

176202
MCP support requires ChatGPT Plus. Then users can enable "Developer mode" (which is still in BETA) and create a new connector. Custom OAuth `client_id` is not supported.

0 commit comments

Comments
 (0)