You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Step 3: download the script and run server. src/xiyan_mcp_server/local_xiyan_server.py
233
-
234
-
235
-
236
-
```bash
237
-
python local_xiyan_server.py
238
-
```
239
-
The server will be running on http://localhost:5090/
240
-
241
-
Step 4: prepare config and run xiyan_mcp_server
242
-
the config.yml should be like:
243
-
```yml
244
-
model:
245
-
name: "xiyansql-qwencoder-3b"
246
-
key: "KEY"
247
-
url: "http://127.0.0.1:5090"
248
-
```
249
-
250
-
Till now the local mode is ready.
251
229
252
230
### Database Configuration
253
231
``host``, ``port``, ``user``, ``password``, ``database`` are the connection information of the database.
@@ -283,8 +261,19 @@ database:
283
261
Note that ``dialect`` should be ``postgresql`` for postgresql.
284
262
## Launch
285
263
286
-
### STDIO Transport
287
-
Normally, stdio transport is used with the specific mcp application as follows.
264
+
### Server Launch
265
+
266
+
If you want to launch server with `sse`, you have to run the following command in a terminal:
267
+
```shell
268
+
YML=path/to/yml python -m xiyan_mcp_server
269
+
```
270
+
Then you should see the information on http://localhost:8000/sse in your browser. (Defaultly, change if your mcp server runs on other host/port)
271
+
272
+
Otherwise, if you use `stdio` transport protocol, you usually declare the mcp server command in specific mcp application instead of launching it in a terminal.
273
+
However, you can still debug with this command if needed.
274
+
275
+
### Client Setting
276
+
288
277
#### Claude Desktop
289
278
Add this in your Claude Desktop config file, ref <a href="https://github.com/XGenerationLab/xiyan_mcp_server/blob/main/imgs/claude_desktop.jpg">Claude Desktop config example</a>
290
279
```json
@@ -304,17 +293,48 @@ Add this in your Claude Desktop config file, ref <a href="https://github.com/XGe
304
293
}
305
294
```
306
295
**Please note that the Python command here requires the complete path to the Python executable (`/xxx/python`); otherwise, the Python interpreter cannot be found. You can determine this path by using the command `which python`. The same applies to other applications as well.**
296
+
297
+
Claude Desktop currently does not support the SSE transport protocol.
298
+
307
299
#### Cline
308
300
Prepare the config like [Claude Desktop](#claude-desktop)
309
301
310
302
#### Goose
311
-
Add following command in the config, ref <ahref="https://github.com/XGenerationLab/xiyan_mcp_server/blob/main/imgs/goose.jpg">Goose config example</a>
312
-
313
-
```yaml
303
+
If you use `stdio`, add following command in the config, ref <a href="https://github.com/XGenerationLab/xiyan_mcp_server/blob/main/imgs/goose.jpg">Goose config example</a>
SSE transport server has to be started with the following command first. The server runs defaultly on port 8000. You can change it by setting the environment variable FASTMCP_PORT.
0 commit comments