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
235
-
236
-
237
-
238
-
```bash
239
-
python local_xiyan_server.py
240
-
```
241
-
The server will be running on http://localhost:5090/
242
-
243
-
Step 4: prepare config and run xiyan_mcp_server
244
-
the config.yml should be like:
245
-
```yml
246
-
model:
247
-
name: "xiyansql-qwencoder-3b"
248
-
key: "KEY"
249
-
url: "http://127.0.0.1:5090"
250
-
```
251
-
252
-
Till now the local mode is ready.
253
231
254
232
### Database Configuration
255
233
``host``, ``port``, ``user``, ``password``, ``database`` are the connection information of the database.
@@ -284,7 +262,21 @@ database:
284
262
285
263
Note that ``dialect`` should be ``postgresql`` for postgresql.
286
264
## Launch
287
-
### Claude Desktop
265
+
266
+
### Server Launch
267
+
268
+
If you want to launch server with `sse`, you have to run the following command in a terminal:
269
+
```shell
270
+
YML=path/to/yml python -m xiyan_mcp_server
271
+
```
272
+
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)
273
+
274
+
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.
275
+
However, you can still debug with this command if needed.
276
+
277
+
### Client Setting
278
+
279
+
#### Claude Desktop
288
280
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>
289
281
```json
290
282
{
@@ -303,26 +295,59 @@ Add this in your Claude Desktop config file, ref <a href="https://github.com/XGe
303
295
}
304
296
```
305
297
**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.**
306
-
### Cline
307
-
Prepare the config like [Claude Desktop](#claude-desktop)
308
298
309
-
### Goose
310
-
Add following command in the config, ref <ahref="https://github.com/XGenerationLab/xiyan_mcp_server/blob/main/imgs/goose.jpg">Goose config example</a>
299
+
Claude Desktop currently does not support the SSE transport protocol.
311
300
312
-
```yaml
301
+
#### Cline
302
+
Prepare the config like [Claude Desktop](#claude-desktop)
303
+
304
+
#### Goose
305
+
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>
Copy file name to clipboardExpand all lines: pyproject.toml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
[project]
2
2
name = "xiyan_mcp_server"
3
-
version = "0.1.4"
3
+
version = "0.1.5.dev0"
4
4
description = "A Model Context Protocol (MCP) server that utilizes XiyanSQL with databases. This server enables AI assistants to list tables, read data, and execute natural language queries"
0 commit comments