
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@cooperco/cooper-mcp-server
Advanced tools
MCP server for the Cooper Component Library. Provides component documentation, prop inspection, color palette info, and scaffolding tools for AI assistants.
MCP (Model Context Protocol) server for the Cooper Component Library. Gives AI assistants like Claude Code access to component documentation, prop types, color palettes, passthrough configs, and scaffolding tools.
npm install -g @cooperco/cooper-mcp-server
# or use npx (no install needed)
Add to your project's .claude/settings.json:
{
"mcpServers": {
"cooper-components": {
"command": "npx",
"args": ["-y", "@cooperco/cooper-mcp-server"]
}
}
}
The server auto-detects the project root by walking up from the working directory looking for src/components/components.ts.
If auto-detection doesn't work (e.g., you're in a monorepo), pass the path explicitly:
{
"mcpServers": {
"cooper-components": {
"command": "npx",
"args": ["-y", "@cooperco/cooper-mcp-server", "/path/to/Cordblood-Component-Library"]
}
}
}
Or use an environment variable:
{
"mcpServers": {
"cooper-components": {
"command": "npx",
"args": ["-y", "@cooperco/cooper-mcp-server"],
"env": {
"COOPER_PROJECT_ROOT": "/path/to/Cordblood-Component-Library"
}
}
}
}
When working in the component library repo itself, use the local build:
{
"mcpServers": {
"cooper-components": {
"command": "node",
"args": ["mcp/dist/index.js"]
}
}
}
| Tool | Description |
|---|---|
list-components | List all components with categories, variants, and descriptions |
get-component | Full docs for a component: props, events, slots, passthrough, and source code |
get-component-props | Focused prop table with types, defaults, and required status |
get-color-palettes | Color palette system: available palettes, structure, and usage |
get-passthrough-config | Passthrough keys and default Tailwind classes for a component |
search-components | Search components by name, category, or prop names |
scaffold-component | Generate a new component with .vue, .ts, and .stories.ts files |
Once configured, Claude Code can use the tools automatically:
list-componentsget-componentget-color-palettesscaffold-componentThe server reads your component library source files at runtime:
ComponentName.ts files using the TypeScript Compiler APIwithDefaults, defineEmits, and <slot> usage from .vue filessrc/config/defaultPassthrough/index.tssrc/config/colorPalettes.tssrc/components/components.ts barrel exportsResults are cached in memory and invalidated when source files change, so documentation is always current.
FAQs
MCP server for the Cooper Component Library. Provides component documentation, prop inspection, color palette info, and scaffolding tools for AI assistants.
We found that @cooperco/cooper-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.