Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit dbbd28d

Browse files
committed
Add local go module support
1 parent bebb0cd commit dbbd28d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/toolhive/how-to/run-mcp-servers.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,20 @@ suffix is **required**.
282282
thv run --name grafana go://github.com/grafana/mcp-grafana/cmd/mcp-grafana@latest
283283
```
284284

285+
You can also run a local Go module by specifying the path to the module:
286+
287+
```bash
288+
# Run from a relative path
289+
thv run go://./cmd/my-mcp-server
290+
291+
# Run from the current directory
292+
cd my-go-mcp-project
293+
thv run go://.
294+
295+
# Run from an absolute path
296+
thv run go:///path/to/my-go-project
297+
```
298+
285299
</TabItem>
286300
</Tabs>
287301

0 commit comments

Comments
 (0)