MCP サーバー
Claude Code、Codex、GitHub Copilot、Cursor、Windsurf から SurfaceOne のドキュメント、API、トークンに直接アクセスできるようにします。
@surface-one/angular-mcp は Model Context Protocol サーバーです。AI アシスタントは推測する代わりに、コンポーネントの正確な API、動作するサンプル、ソースとスタイル、ガイド、画面テンプレート、テーマ変数をこのサーバーに問い合わせます。すべてがパッケージに同梱されているため、オフラインでも動作し、常にお使いのバージョンと一致します。
Claude Code
claude mcp add surface-one-angular -- npx -y @surface-one/angular-mcp@latestCodex
codex mcp add surface-one-angular -- npx -y @surface-one/angular-mcp@latestまたは ~/.codex/config.toml に追加してください:
[mcp_servers.surface-one-angular]
command = "npx"
args = ["-y", "@surface-one/angular-mcp@latest"]VS Code と GitHub Copilot
プロジェクトに .vscode/mcp.json を追加してください:
{
"servers": {
"surface-one-angular": {
"command": "npx",
"args": ["-y", "@surface-one/angular-mcp@latest"]
}
}
}Cursor、Windsurf、Claude Desktop
{
"mcpServers": {
"surface-one-angular": {
"command": "npx",
"args": ["-y", "@surface-one/angular-mcp@latest"]
}
}
}ツール
list_components— すべてのコンポーネントファミリーと、そのエントリーポイントおよびセレクター。get_component_docs— 説明、インポート、動作するサンプル、完全な API。名前、スラッグ、クラス、soneBtnのようなセレクターを受け付けます。get_component_source_codeとget_component_source_styles— 実装コード。get_docs— ガイドページとリリースノート。get_theme_variables— 各スキンのライトモードとダークモードのトークン値。list_templatesとget_template— 出発点として使える完成済みの画面。
質問の例
- 「SurfaceOne で設定ページを作って。スイッチ、セレクト、保存ボタンを入れて。」
- 「SurfaceOne のダイアログの API を見せて。」
- 「Paper スキンはダークモードでどのトークンを使っている?」
サーバーはエージェントスキルと組み合わせて使ってください。スキルはアシスタントに SurfaceOne の扱い方を教え、サーバーは事実を提供します。