Skip to content

Commit 2a2ac31

Browse files
mcp-server-improve
Summary: - Better MCP server docs.
1 parent 9cc0cfe commit 2a2ac31

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

.vscode/launch.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,15 @@
188188
],
189189
"default": "show providers;"
190190
},
191+
{
192+
"type": "pickString",
193+
"id": "mcpSrvCfgStr",
194+
"description": "MCP Server Configuration",
195+
"options": [
196+
"{\"server\": {\"transport\": \"http\", \"address\": \"127.0.0.1:9992\"} }"
197+
],
198+
"default": "{\"server\": {\"transport\": \"http\", \"address\": \"127.0.0.1:9992\"} }"
199+
},
191200
{
192201
"type": "pickString",
193202
"id": "registryString",
@@ -385,7 +394,7 @@
385394
"type": "pickString",
386395
"id": "mcpServerType",
387396
"description": "MCP server type",
388-
"default": "stdio",
397+
"default": "http",
389398
"options": [
390399
"http",
391400
"stdio"
@@ -464,6 +473,8 @@
464473
"program": "${workspaceFolder}/stackql",
465474
"args": [
466475
"mcp",
476+
"--mcp.server.type=${input:mcpServerType}",
477+
"--mcp.config=${input:mcpSrvCfgStr}",
467478
"--pgsrv.port=6555",
468479
"--tls.allowInsecure",
469480
"--auth=${input:authString}",
@@ -475,7 +486,6 @@
475486
"--dbInternal=${input:dbInternalString}",
476487
"--export.alias=${input:exportAliasString}",
477488
"--pgsrv.debug.enable=${input:serverDebugPublish}",
478-
"--mcp.server.type=${input:mcpServerType}",
479489
],
480490
},
481491
{

docs/mcp.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
## Running the MCP server
3+
4+
5+
```bash
6+
7+
8+
9+
10+
```
11+
12+
13+
## Using the MCP Client
14+
15+
This is very much a development tool, not currently recommended for production.
16+
17+
Build:
18+
19+
```bash
20+
python cicd/python/build.py --build-mcp-client
21+
```
22+
23+
Then, assuming you have a `stackql` MCP server serving streamable HTTP on port `9992`:
24+
25+
26+
```bash
27+
28+
./build/stackql_mcp_client exec --client-type=http --url=http://127.0.0.1:9992 --exec.action list_services --exec.args '{"provider": "google"}'
29+
30+
```

0 commit comments

Comments
 (0)