Skip to content

Add Docker support and expand README installation options#5

Open
mattpodwysocki wants to merge 2 commits intomainfrom
add-docker-support
Open

Add Docker support and expand README installation options#5
mattpodwysocki wants to merge 2 commits intomainfrom
add-docker-support

Conversation

@mattpodwysocki
Copy link
Contributor

Summary

  • Add Dockerfile (multi-stage build, node:22-slim, non-root user) — verified working with a live tools/list smoke test
  • Add .dockerignore
  • Fix prepare script to skip husky when HUSKY=0 or CI is set (required for Docker builds where there's no .git)
  • Fix build-helpers.cjs to gracefully handle missing git — returns 'unknown' for sha/tag/branch instead of crashing
  • Expand README with four installation methods: hosted endpoint, npx, Docker, and local from source

Test plan

  • docker build -t mapbox/mcp-docs-server . succeeds
  • echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | docker run --rm -i mapbox/mcp-docs-server returns tool list
  • npm run build still works locally (prepare script still runs husky in non-CI environments)
  • CI green

🤖 Generated with Claude Code

mattpodwysocki and others added 2 commits March 9, 2026 16:58
- Add Dockerfile (multi-stage, node:22-slim, non-root user)
- Add .dockerignore
- README: add hosted, npx, Docker, and local installation sections

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Dockerfile: set HUSKY=0 in both builder and runtime stages
- prepare script: skip husky/setup-hooks when HUSKY=0 or CI is set
- build-helpers.cjs: gracefully handle missing git (returns 'unknown')
- .dockerignore: restore .husky (needed during build), keep .git excluded

Verified: docker build succeeds and tools/list returns correct response.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mattpodwysocki mattpodwysocki requested a review from a team as a code owner March 9, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant