Fix documentation discrepancies in CONTRIBUTING.md and README.md#1175
Merged
Fix documentation discrepancies in CONTRIBUTING.md and README.md#1175
Conversation
- Fix Docker container section to reference run_containerized.sh (not run.sh) - Update docker run example to include -i flag and required environment variables - Fix DOCKER_API_VERSION description (falls back to 1.44 for all architectures) - Add args field documentation to README.md Server Configuration Fields - Update Dependencies section with all direct dependencies from go.mod Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR reconciles documentation with actual implementation after a nightly documentation checker identified 4 discrepancies. The changes correct critical errors in the Docker container usage instructions and add missing documentation for configuration fields and dependencies.
Changes:
- Fixed CONTRIBUTING.md Docker container section to reference correct entrypoint (
run_containerized.shinstead ofrun.sh) and document required-iflag and environment variables - Corrected DOCKER_API_VERSION fallback documentation (1.44 for all architectures, not 1.43 for arm64)
- Added missing
argsfield documentation to README.md Server Configuration Fields section - Added missing direct dependencies to CONTRIBUTING.md Dependencies section
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| README.md | Added documentation for the args field in Server Configuration Fields, enabling users to discover advanced Docker runtime argument configuration |
| CONTRIBUTING.md | Fixed Docker container section with correct entrypoint, flags, and env vars; corrected DOCKER_API_VERSION fallback value; added missing dependencies (go-sdk, gojq, jsonschema, testify, term) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reconciles documentation with actual implementation after nightly documentation checker identified 4 discrepancies between docs and code.
Critical Fixes
Docker container section - Updated CONTRIBUTING.md to reflect actual entrypoint and requirements:
run.sh→run_containerized.sh(actual entrypoint in Dockerfile:41)-iflag requirement for stdin configurationMCP_GATEWAY_PORT,MCP_GATEWAY_DOMAIN,MCP_GATEWAY_API_KEYBefore:
docker run --rm -v $(pwd)/.env:/app/.env \ -v /var/run/docker.sock:/var/run/docker.sock \ -p 8000:8000 \ awmgAfter:
docker run --rm -i \ -e MCP_GATEWAY_PORT=8000 \ -e MCP_GATEWAY_DOMAIN=localhost \ -e MCP_GATEWAY_API_KEY=your-secret-key \ -v /var/run/docker.sock:/var/run/docker.sock \ -p 8000:8000 \ awmg < config.jsonDOCKER_API_VERSION fallback - Corrected "1.43 for arm64, 1.44 for amd64" → "1.44 for all architectures" (matches run.sh:105-112, run_containerized.sh:240-247)
Minor Fixes
Missing
argsfield - Added to README.md Server Configuration Fields:StdinServerConfig.Args(config_stdin.go:50-51)["--network", "host"]Incomplete dependencies - Added missing direct deps to CONTRIBUTING.md:
github.com/modelcontextprotocol/go-sdk- MCP protocolgithub.com/itchyny/gojq- JQ processinggithub.com/santhosh-tekuri/jsonschema/v5- validationgithub.com/stretchr/testify- test assertionsgolang.org/x/term- terminal detectionOriginal prompt
This section details on the original issue you should resolve
<issue_title>📚 Documentation Reconciliation Report - 2026-02-20</issue_title>
<issue_description>## Summary
Found 4 discrepancies between documentation and implementation during nightly reconciliation check.
Critical Issues 🔴
Issues that would cause user confusion or broken workflows if followed:
1. CONTRIBUTING.md Docker container section describes wrong entrypoint
Location:
CONTRIBUTING.md, lines 463–469 (Docker Development → Run Container section)Problem: The documentation states:
Actual Behavior: The
Dockerfileusesrun_containerized.shas the entrypoint (notrun.sh):run_containerized.shrequires:-iflag)MCP_GATEWAY_PORT,MCP_GATEWAY_DOMAIN,MCP_GATEWAY_API_KEYImpact: Users following the documented
docker runcommand will get an immediate error because:-iflag is missingCode Reference:
Dockerfile:41,run_containerized.sh:109–136,run_containerized.sh:165–183Suggested Fix:
Update the Docker development section to reflect the actual entrypoint and requirements:
Update the
docker runexample to:docker run --rm -i \ -e MCP_GATEWAY_PORT=8000 \ -e MCP_GATEWAY_DOMAIN=localhost \ -e MCP_GATEWAY_API_KEY=your-secret-key \ -v /var/run/docker.sock:/var/run/docker.sock \ -p 8000:8000 \ awmg < config.jsonImportant Issues 🟡
Issues that are misleading but have workarounds:
2. CONTRIBUTING.md DOCKER_API_VERSION fallback value is incorrect
Location:
CONTRIBUTING.md, lines 465–468 (Docker Development section)Problem: Documentation says DOCKER_API_VERSION is set to "1.43 for arm64, 1.44 for amd64"
Actual Behavior: Both
run.shandrun_containerized.shset the fallback to1.44for all architectures:Note: The primary path queries the live Docker daemon API version, so the fallback only matters when Docker inspection fails.
Impact: Users expecting 1.43 on arm64 (for compatibility with older Docker) may be confused.
Code Reference:
run.sh:105–112,run_containerized.sh:240–247Suggested Fix: Update the description to say "1.44 for all architectures (fallback)" or simply "queries Docker daemon; falls back to 1.44."
Minor Issues 🔵
Small inconsistencies or missing details:
3. README.md missing
argsfield documentation for JSON stdin server configLocation:
README.md, "Server Configuration Fields" sectionProblem: The
StdinServerConfigstruct has an undocumentedargsfield:Impact: Users cannot discover this advanced feature from the documentation alone.
Code Reference:
internal/config/config_stdin.go:51–53Suggested Fix: Add to the Server Configuration Fields section:
4. CONTRIBUTING.md dependencies list is incomplete
Location:
CONTRIBUTING.md, lines 372–378 (Dependencies section)Problem: The listed dependencies are:
github.com/spf13/cobragithub.com/BurntSushi/tomlActual dependencies (from
go.mod):github.com/spf13/cobra✅github.com/BurntSushi/toml✅github.com/modelcontextprotocol/go-sdk— MCP protocol implementation (missing)github.com/itchyny/gojq— JQ schema processing (missing)github.com/santhosh-tekuri/jsonschema/v5— JSON schema validation (missing)github.com/stretchr/testify— Test assertions (missing)golang.org/x/term—...