- Set up your API key:
export GEMINI_API_KEY='your-api-key-here'- Build the project:
yarn install
yarn build- Configure Claude Desktop:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or the equivalent on your OS:
{
"mcpServers": {
"moonverse": {
"command": "node",
"args": ["/absolute/path/to/moonverse.ts/dist/index.js"],
"env": {
"GEMINI_API_KEY": "your-api-key-here"
}
}
}
}- Restart Claude Desktop
Once configured, you can use both tools in Claude Desktop:
Basic questions:
Use query_moonbit_docs to ask: "What is MoonBit?"
Technical questions:
Use query_moonbit_docs to ask: "How do I use the moon ide command for code navigation?"
Feature inquiries:
Use query_moonbit_docs to ask: "What are the key features of MoonBit's type system?"
API questions:
Use query_moonbit_source to ask: "What are the latest API additions in the core library?"
Implementation questions:
Use query_moonbit_source to ask: "How is pattern matching implemented?"
Pre-release features:
Use query_moonbit_source to ask: "What new features are in development?"
To add more documentation to the search:
- Place
.txtor.mdfiles in thestore/directory for documentation - Place MoonBit source files (
.mbt,.md,.json) in thesource/directory for source code queries - Restart the MCP server (restart Claude Desktop)
- The new files will be automatically uploaded and included in searches
Documentation (store/ directory):
.txt- Plain text files.md- Markdown files
Source Code (source/ directory):
.mbt- MoonBit source files.md- Markdown documentation.json- JSON configuration.txt- Plain text files
- On startup, the server prepares to read from both
store/(documentation) andsource/(code) directories - When you query docs, files from
store/are uploaded to Gemini's Interactions API - When you query source, files from
source/are uploaded to Gemini's Interactions API - Files are uploaded lazily on first query and cached in memory
- The AI provides context-aware answers based on the uploaded files
Make sure you've set the GEMINI_API_KEY in your environment or in the Claude Desktop config.
Ensure you have .txt or .md files in the store/ directory.
Restart Claude Desktop to reload the MCP server and re-upload files.
Be aware of Gemini API rate limits. The free tier has:
- 60 requests per minute
- 1,500 requests per day
For production use, consider the paid tier for higher limits.