We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c1aa473 + 8fe6d8d commit a073ac3Copy full SHA for a073ac3
1 file changed
web/src/views/mcp/MCPClient.vue
@@ -65,7 +65,10 @@ const messages = ref('')
65
const connectionStatus = ref('Disconnected')
66
//https://github.com/modelcontextprotocol/typescript-sdk
67
// StdioClientTransport
68
-const transport = new SSEClientTransport(new URL('http://localhost:8000/sse'))
+// 如果是本地开发,需要使用 localhost 来访问宿主机的mcp服务
69
+const transport = new SSEClientTransport(
70
+ new URL('http://host.docker.internal:8000/sse')
71
+)
72
73
const client = new Client(
74
{
0 commit comments