Development

Prerequisites

  • Supported OS: macOS (tested), Linux (expected), Windows (expected)

  • Node.js: 22.x or higher (LTS recommended)

  • npm: Latest version

Installation

git clone https://github.com/rickysullivan/gitbook-mcp.git
cd gitbook-mcp
npm install
npm run setup
# Add your GITBOOK_API_TOKEN to .env.local (for local development only)

Development

npm run dev

Debugging

VS Code MCP Integration (Development)

To use this MCP server in VS Code for development:

  • Use node as the command when running locally. The first argument should be the path to the compiled JavaScript output (e.g., dist/index.js).

For production or published usage, use npx instead of node:

Testing

There are currently no unit or integration tests; running npm run test only checks that the TypeScript code compiles successfully.

Contributing

  1. Fork the repository

  2. Create a feature branch

  3. Make your changes

  4. Submit a pull request