MCP Server
DriftGrid includes a Model Context Protocol (MCP) server that lets AI agents interact with the grid programmatically.
Starting the Server
npm run mcpThe MCP server connects to http://localhost:3000 by default. Set DRIFTGRID_URL to override.
Available Tools
| Tool | Purpose |
|---|---|
get_current_view | What the designer is currently viewing (client, project, concept, version) |
get_manifest | Full project manifest (concepts, versions, rounds) |
create_version | Drift up — create a new version slot |
branch_concept | Drift right — create a new concept column |
create_project | Scaffold a new project |
get_feedback | Read prompts/annotations on a version |
add_feedback | Reply to a prompt (threaded conversation) |
close_round | Finalize a round with selected versions |
create_round | Start a new round from selections |
get_round_baseline | Read approved versions from a closed round |
Connecting to Claude Code
The MCP server is designed to work with Claude Code’s MCP protocol. When running, Claude can:
- See what you’re viewing in the grid
- Create new versions and concepts
- Read and reply to your prompts
- Manage rounds
Without MCP
DriftGrid works fully without MCP. You can:
- Copy prompts to clipboard and paste them into your agent
- Have your agent write HTML files directly
- Use Claude Code’s built-in file editing (it reads CLAUDE.md for conventions)
MCP adds real-time awareness — the agent knows what you’re looking at and can respond to prompts automatically.
Last updated on