npx.
Setup
Get your API key from the dashboard.Claude Code
--scope user to make it available across all projects:
Claude Desktop
Add to yourclaude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Cursor
Add to~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
VS Code
Add to.vscode/mcp.json:
Windsurf
Add to~/.codeium/windsurf/mcp_config.json:
Project-Level (.mcp.json)
Add to your project root to share with your team:Verify Installation
For Claude Code, check the server is running:raysurfer listed. Then ask Claude:
Search the Raysurfer cache for code that generates a quarterly report.Claude will call
raysurfer_search and show you the results.
Tools
The server exposes 4 tools that Claude can call directly:raysurfer_search
Search for cached code matching a task description.| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
task | string | Yes | — | Natural language task description |
top_k | number | No | 5 | Maximum results (1-100) |
min_score | number | No | 0.3 | Minimum verdict score (0-1) |
public_snips | boolean | No | false | Include community public snippets in results |
raysurfer_upload
Upload code from a successful execution.| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
task | string | Yes | — | What the code accomplishes |
file | object | Yes | — | File with path and content keys |
succeeded | boolean | No | true | Whether the execution succeeded |
raysurfer_vote
Vote on cached code usefulness.| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
code_block_id | string | Yes | — | ID of the code block |
up | boolean | No | true | Upvote (true) or downvote (false) |
task | string | No | — | Original task for context |
raysurfer_patterns
Get proven task-to-code mappings.| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
task | string | No | — | Filter patterns by task |
top_k | number | No | 10 | Maximum results |
Resources
| URI | Description |
|---|---|
raysurfer://help | Help text about tools and recommended workflow |
raysurfer://status | Connection status and API reachability |
