Requirements
- Node.js 18+ or Bun 1.0+
- SHARC API key from your plan
- MCP-compatible client - Claude Code, Cursor, VS Code, etc.
Installation Methods
Option 1: npx (Recommended)
The easiest way to run SHARC is via npx. No installation required:Option 2: Global Installation
Install globally for faster startup:Option 3: Local Installation
For explicit version pinning:Environment Variables
SHARC requires one environment variable:| Variable | Required | Description |
|---|---|---|
SHARC_API_KEY | Yes | Your authentication key |
Example
Verify Installation
After configuring your MCP client, verify SHARC is working:- Open your AI assistant
- Ask it to list available MCP tools
- You should see 7 SHARC tools:
index_codebasesearch_codeclear_indexget_indexing_statusstart_watchstop_watchget_watch_status
Troubleshooting
”Invalid API key” Error
Check that your API key:- Starts with
sk_ - Is correctly set in your MCP configuration
- Has not expired
MCP Tools Not Appearing
- Restart your AI assistant
- Check MCP server logs for errors
- Verify the environment variables are set correctly