Thank you for your interest in contributing to the Glean MCP Server! This document provides guidelines and instructions for development.
- Clone the repository:
git clone https://github.com/gleanwork/mcp-server.git
cd mcp-server- Ensure
nodeandpnpmare installed. This project has a built-in mise config file that you can use if you'd like (though it is not required):
mise trust
mise install
- Install dependencies:
pnpm install- Build the project:
pnpm run build- Run tests:
pnpm testThe repository is structured as a monorepo with the following packages:
@gleanwork/configure-mcp-servera tool for configuring popular MCP clients to use Glean.@gleanwork/local-mcp-serverthe stdio MCP server that exposes Glean APIs to local assistants.@gleanwork/mcp-server-utilsa collection of utilities used by both the configure tool and local mcp server.
The server communicates via stdio, making it ideal for integration with AI models and other tools:
node packages/local-server/build/index.jsInput and output follow the JSON-RPC 2.0 protocol, with each message on a new line.
# Install dependencies
pnpm install
# Start development server
pnpm docs:dev- Fork the repository
- Create your feature branch:
git checkout -b feature/my-feature - Commit your changes:
git commit -am 'Add new feature' - Push to the branch:
git push origin feature/my-feature - Submit a pull request
- Use TypeScript for all new code
- Follow the existing code style (enforced by ESLint and Prettier)
- Include JSDoc comments for public APIs
- Write tests for new functionality
- Add unit tests for new features
- Ensure all tests pass before submitting a pull request
- Use the provided test utilities and fixtures
- Update documentation for any changed functionality
- Include examples for new features
- Keep the README.md and API documentation up to date
- Documentation: docs.glean.com
- Issues: GitHub Issues
- Email: support@glean.com