Skip to content

Commit 4398489

Browse files
authored
PCX edits
1 parent 13b91cc commit 4398489

File tree

1 file changed

+13
-7
lines changed
  • src/content/docs/cloudflare-one/applications/configure-apps/mcp-servers

1 file changed

+13
-7
lines changed

src/content/docs/cloudflare-one/applications/configure-apps/mcp-servers/mcp-portals.mdx

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,28 +129,34 @@ To test in Workers AI Playground:
129129

130130
Workers AI Playground will show a **Connected** status and list the available tools. You can now ask the AI model to complete a task using an available tool. Requests made to an MCP server will appear in your [portal logs](#view-portal-logs).
131131

132-
For MCP clients with server configuration files, we recommend the following configuration:
132+
For MCP clients with server configuration files, we recommend using the `npx` command with the `mcp-remote@latest` argument:
133133

134-
``` json title= "MCP Portal configuration for MCP clients"
134+
``` json title= "MCP client configuration for MCP portals"
135135
{
136136
"mcpServers": {
137-
"mcp-demo-connect": {
137+
"example-mcp-server": {
138138
"command": "npx",
139139
"args": [
140140
"-y",
141141
"mcp-remote@latest",
142-
"https://mcp-dry-run.kennyatx.com/mcp"
142+
"https://<subdomain>.<domain>.com/mcp"
143143
]
144144
}
145145
}
146146
}
147147
```
148148

149-
It is recommended that "mcp-remote@latest" is used. Using "serverURL" may cause issues with the portal session creation and management.
149+
We do not recommend using the `serverURL` parameter since it may cause issues with portal session creation and management.
150150

151-
If you want to force your MCP Client to reauthenticate, most MCP clients will refresh a session after removing the existing MCP OAuth sessions. Recommended command (note: this will trigger all MCP servers using mcp-remote@latest to force reauthenticate, not just Portals):
151+
If you want to force your MCP client to reauthenticate, most MCP clients will refresh a session after removing the existing MCP OAuth sessions. To clear authentication credentials used by your MCP client, open a terminal and run the following command:
152152

153-
`rm -rf ~/.mcp-auth`
153+
:::note
154+
This command will trigger all MCP servers using `mcp-remote@latest` to force reauthenticate, not just MCP portals.
155+
:::
156+
157+
```sh
158+
rm -rf ~/.mcp-auth
159+
```
154160

155161
## View portal logs
156162

0 commit comments

Comments
 (0)