Skip to content

Commit 62405e9

Browse files
committed
Switch container to HTTP transport on port 8000
- deploy.Dockerfile: VTK_MCP_TRANSPORT=http, EXPOSE 8000, pass --transport http - README: update Claude Code config to use type:http + url, add podman run -d command
1 parent 727baf6 commit 62405e9

2 files changed

Lines changed: 24 additions & 13 deletions

File tree

README.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,32 +115,39 @@ AST-based validation against the VTK API. Checks imports, constructors, method c
115115

116116
## Claude Code integration
117117

118-
Add to your project's `.claude/settings.json` (or `~/.claude/settings.json` for global use):
118+
### With the pre-built container (recommended)
119+
120+
Start the container once; Claude Code connects over HTTP:
121+
122+
```bash
123+
podman run -d --rm -p 8000:8000 --name vtk-mcp ghcr.io/kitware/vtk-mcp/vtk-mcp:latest
124+
```
125+
126+
Then add to `.claude/settings.json` (project) or `~/.claude/settings.json` (global):
119127

120128
```json
121129
{
122130
"mcpServers": {
123131
"vtk": {
124-
"type": "stdio",
125-
"command": "vtk-mcp",
126-
"args": ["--vtk-version", "9.6.1"]
132+
"type": "http",
133+
"url": "http://localhost:8000/mcp/"
127134
}
128135
}
129136
}
130137
```
131138

132-
Or use the pre-built container image (no local install required):
139+
### With a local install
140+
141+
```bash
142+
vtk-mcp --transport http --port 8000 --vtk-version 9.6.1 &
143+
```
133144

134145
```json
135146
{
136147
"mcpServers": {
137148
"vtk": {
138-
"type": "stdio",
139-
"command": "podman",
140-
"args": [
141-
"run", "--rm", "-i",
142-
"ghcr.io/kitware/vtk-mcp/vtk-mcp:latest"
143-
]
149+
"type": "http",
150+
"url": "http://localhost:8000/mcp/"
144151
}
145152
}
146153
}

deploy.Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@ RUN uv pip install --system -e ".[retrieval]"
3737
COPY scripts/prefetch_artifacts.py /tmp/prefetch_artifacts.py
3838
RUN python /tmp/prefetch_artifacts.py
3939

40-
ENV VTK_MCP_TRANSPORT=stdio
40+
ENV VTK_MCP_TRANSPORT=http
41+
ENV VTK_MCP_HTTP_HOST=0.0.0.0
42+
ENV VTK_MCP_HTTP_PORT=8000
4143
ENV VTK_MCP_ENABLE_VALIDATION=true
4244
ENV VTK_MCP_ENABLE_RETRIEVAL=true
4345

44-
ENTRYPOINT ["python", "-m", "vtk_mcp"]
46+
EXPOSE 8000
47+
48+
ENTRYPOINT ["python", "-m", "vtk_mcp", "--transport", "http"]

0 commit comments

Comments
 (0)