About mrjoshuak/godoc-mcp
mrjoshuak/godoc-mcp is an MCP server published by mrjoshuak in the Commerce category: mCP server that reduces LLM context usage when AI coding agents work with Go — structured documentation instead of source-file dumps. Conduid read 2 tools from its source: get_doc and list_packages. No package is published for it, so it installs from a source checkout.
The repository has 131 stars and 17 forks, is licensed MIT, and its last commit was on 6 Mar 2026. The latest release is v1.1.0 (6 Mar 2026): New: list_packages tool Adds a new list_packages tool for discovering sub-packages under a Go import path. It follows v1.0.1 (17 Feb 2026), and the 3 most recent releases go back to v1.0.0 (17 Feb 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include commerce.
Install
git clone https://github.com/mrjoshuak/godoc-mcpTools (2)
get_docGet Go documentation for a package, type, function, or method. This is the preferred and most efficient way to understand Go packages, providing official package documentation in a concise format. Use this before attempting to read source files directly. Results are cached and optimized for AI consumption. Best Practices: 1. ALWAYS try this tool first before reading package source code 2. Start with basic package documentation before looking at source code or specific symbols 3. Use -all flag when you need comprehensive package documentation 4. Only look up specific symbols after understanding the package overview Common Usage Patterns: - Standard library: Use just the package name (e.g., "io", "net/http") - External packages: Use full import path (e.g., "github.com/user/repo") - Local packages: Use relative path (e.g., "./pkg") or absolute path The documentation is cached for 5 minutes to improve performance.| Parameter | Type | Description |
|---|---|---|
| cmd_flags | array | Additional go doc flags: -all (all docs), -src (source code), -u (unexported symbols), -short, -c. |
| page | number | Page number (1-based) for paginated results. |
| page_size | number | Lines per page. |
| path * | string | Path to the Go package or file. Import path (e.g., 'io', 'github.com/user/repo') or local file path. |
| target | string | Specific symbol to document (function, type, interface). Leave empty for full package docs. |
| working_dir | string | Working directory for module context. Required for relative paths (including '.'). |
list_packagesList all sub-packages under a Go package path. Use this to discover the correct import paths for sub-packages when you see types referenced from other packages (e.g., seeing "casext.Engine" and needing to find which sub-package provides it). Returns each sub-package's import path and synopsis. Use get_doc to read documentation for a specific package after finding it with this tool.| Parameter | Type | Description |
|---|---|---|
| path * | string | Root package import path (e.g., 'net', 'github.com/user/repo') or local path. All sub-packages will be listed. |
| working_dir | string | Working directory for module context. Required for relative paths. |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.1K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by go.sum.
- ✓No dynamic code executionScanned 2 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio, Streamable HTTP and HTTP with SSEmain.go:39, main.go:65, main.go:49
- Starts other programs
- 4 callsserver.go:261, server.go:435, server.go:447
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 6 callsserver.go:386, server.go:402, server.go:406
- Lockfile
- go.sum
Pattern matches on the source text of 2 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.1K words, fetched a month ago. The original in the repository is authoritative.
Read full README