Spartan Ng Mcp
@carlospalacin
关于 Spartan Ng Mcp
An MCP server that turns the entire Spartan Angular UI ecosystem into a queryable tool surface for AI-powered IDEs. It exposes 14 tools covering component discovery with fuzzy search across 56+ components and 17 page-level blocks, detailed Brain (headless) and Helm (styled) API i
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"spartan-ng": {
"command": "npx",
"args": [
"-y",
"spartan-ng-mcp"
],
"env": {
"GITHUB_TOKEN": "ghp_...",
"SPARTAN_CACHE_TTL_HOURS": "48"
}
}
}
}工具
14List all available Spartan Angular UI components and blocks. Components show Brain/Helm availability. Blocks are grouped by category.
Fuzzy search across Spartan components, blocks, and documentation topics. Returns ranked results with relevance scores.
View detailed information for a Spartan component including Brain directives, Helm components, inputs/outputs, signal models, code examples, and installation snippets.
Show the dependency graph for a Spartan component. Returns direct dependencies (which components it needs), transitive dependencies (up to configurable depth), and reverse dependencies (which components depend on it).
Fetch the TypeScript source code of a Spartan component from GitHub. Returns files from libs/brain/{name}/src/ and/or libs/helm/{name}/src/ with extracted exports.
Fetch the source code of a Spartan page-level block from GitHub. Returns component files, shared utilities, and extracted imports (spartan/angular/cdk/other).
Fetch Spartan documentation topics (installation, CLI, theming, dark-mode, typography, figma, changelog). Returns structured content with code blocks and headings.
Detect the Angular/Nx project configuration in the current directory. Returns Angular version, Nx workspace info, Tailwind version, installed Spartan packages, package manager, and zoneless mode status.
List Spartan components installed in the current project. Shows Brain/Helm packages with versions and identifies missing pairs (Brain without Helm or vice versa).
Generate ready-to-run CLI commands to install Spartan components. Supports Nx generator (recommended) or direct npm install. Returns commands plus required peer dependencies.
Generate a verification checklist after installing Spartan components. Checks imports, peer dependencies, Tailwind preset, Brain/Helm pairing, and common setup issues.
Manage the MCP server cache. Check status (memory + file stats), clear cached data, or trigger a full rebuild from live sources.
Refresh the component registry from the live Spartan Analog API. Updates the in-memory registry with the latest components without requiring an MCP update. Shows diff of added/updated/removed components.
Install Spartan Angular UI skills into a project's .claude/skills/spartan/ directory. Skills teach AI assistants how to correctly use Spartan components — Brain/Helm patterns, composition rules, styling conventions. Fetches from GitHub if not available locally.
概览
What is Spartan Ng Mcp?
Spartan Ng Mcp is an MCP server that makes the entire Spartan Angular UI ecosystem queryable as a tool surface for AI-powered IDEs. It provides 14 tools for component discovery, API inspection, source code retrieval, and project context detection.
How to use Spartan Ng Mcp?
Configure the server in your MCP client’s configuration file. It works with Claude Code, Cursor, VS Code Copilot, and any MCP‑compatible client. No additional setup commands are documented.
Key features of Spartan Ng Mcp
- Component discovery with fuzzy search across 56+ components and 17 page blocks
- Inspect Brain (headless) and Helm (styled) APIs in detail
- Fetch TypeScript source code directly from GitHub
- Generate CLI install commands with peer dependency resolution
- Run post‑install audits and detect Angular/Nx/Tailwind project context
- Three‑tier data resolution (static registry, Analog API, GitHub API) with multi‑layer caching
Use cases of Spartan Ng Mcp
- An AI assistant helps a developer find the right Angular UI component and its API
- A developer quickly inspects both headless and styled variants of a component
- The tool generates the correct npm install command with peer dependencies resolved
- After installation, it runs an audit to verify the setup
- It detects the project’s Angular/Nx/Tailwind environment to offer context‑aware suggestions
FAQ from Spartan Ng Mcp
What data sources does it use?
It uses a three‑tier resolution strategy: a static registry, the Analog API, and the GitHub API. Responses are cached intelligently for fast, offline‑capable access.
Which IDEs or AI tools are supported?
It works with Claude Code, Cursor, VS Code Copilot, and any MCP‑compatible client.
How many tools does it expose?
Fourteen tools covering component discovery, API inspection, source code fetching, install command generation, auditing, and project context detection.
Does it support offline use?
Yes. The multi‑layer caching strategy is designed to provide fast, offline‑capable responses once data has been cached.
What components are available?
It provides fuzzy search over 56+ components and 17 page‑level blocks from the Spartan Angular UI ecosystem.
其他 分类下的更多 MCP 服务器
🪟 Windows-MCP
CursorTouchMCP Server for Computer Use in Windows
Awesome Mcp Servers
punkpeyeA collection of MCP servers.
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
Nginx UI
0xJackyYet another WebUI for Nginx
Awesome-MCP-ZH
yzflyMCP 资源精选, MCP指南,Claude MCP,MCP Servers, MCP Clients
评论