solarbuild-mcp is an MCP server that exposes your Solar component registry as callable tools. Instead of reading static docs, agents can query your actual components at runtime — discovering their names, prop schemas, and valid values on demand.
Install
Configure
Add to your MCP config (Cursor, Claude, Windsurf, or any MCP-compatible client):--components at the directory where your Solar components live.
Tools
manifest
Returns the full component registry as JSON — all component names, prop types, required fields, enums, and defaults.
component
Returns the schema for a single component by name.
validate
Validates a props object against a component schema without mounting. Returns errors with fix instructions if props are invalid.
Agent workflow
The recommended pattern for an AI agent using Solar with MCP:- Call
manifestto discover available components and their schemas - Generate component code using the correct prop types from the manifest
- Call
validateto check props before mounting - If validation fails, read the
fixfield on each error and correct the props - Mount with confidence
How it works
solarbuild-mcp imports your component files, which self-register via registry.register() on import. It then reads from the same shared registry using registry.manifest(). The registry is a global singleton keyed by Symbol.for('solarbuild.registry'), so all Solar instances in the same process share one source of truth.