oishir71/design-system_MCP
3.1
If you are the rightful owner of design-system_MCP and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This repository implements an MCP Server that communicates the contents of Softreef's design system to an LLM.
Tools
5
Resources
0
Prompts
0
概要
こちらのrespositoryはSoftreefのdesign-systemの内容をLLMに伝える役割を持つMCP Serverが実装されています。 S3上にデプロイされているstorybookの内容を取得し、それをLLMに伝えることでLLMがあたかもdesign-systemを把握しているように動作させています。
環境構築
ローカルのMac上で以下を実行し、repositoryをクローンします。
git clone git@github.com:oishir71/Softreef_DesignSystem_MCP_Server.git softreef-mcp-server
cd softreef-mcp-server
MCP ClientにクローンしたMCP Serverを認識させます。
その際に、proxyの設定をenvに記載する必要があります。
Claude desktopをMCP Clientとして利用する場合はclande_desktop_config.jsonに以下を記載します。
{
"mcpServers": {
"softreef": {
"command": "/Users/oishir71/.local/bin/uv",
"args": [
"--directory",
"/Users/yourname/path/to/respository/design_system_mcp_server",
"run",
"storybook_server.py"
],
"env": {
"https_proxy": "http://10.35.227.1:8080",
"http_proxy": "http://10.35.227.1:8080",
"all_proxy": "http://10.35.227.1:8080",
"no_proxy": "127.0.*,192.168.*,localhost,10.144.42.153",
"ALL_PROXY": "http://10.35.227.1:8080",
"HTTPS_PROXY": "http://10.35.227.1:8080",
"HTTP_PROXY": "http://10.35.227.1:8080"
}
}
}
}
VS CodeをMCP Clientとして利用する場合はsettings.jsonに上記と同様の設定を行う必要があります。
...
"mcp": {
"inputs": [],
"servers": {
"softreef": {
"command": "/Users/oishir71/.local/bin/uv",
"args": [
"--directory",
"/Users/oishir71/Desktop/SoftBank/R_D/MCP/softreef",
"run",
"storybook_server.py"
],
"env": {
"https_proxy": "http://10.35.227.1:8080",
"http_proxy": "http://10.35.227.1:8080",
"all_proxy": "http://10.35.227.1:8080",
"no_proxy": "127.0.*,192.168.*,localhost,10.144.42.153",
"ALL_PROXY": "http://10.35.227.1:8080",
"HTTPS_PROXY": "http://10.35.227.1:8080",
"HTTP_PROXY": "http://10.35.227.1:8080"
}
},
}
}
...
API
Resource
markdown://softreef/design-system/{category}categoryにはoverview,environment,resourceのいずれか- design-systemの基本的な説明
markdown://softreef/design-system/component/{component}componentにはdesign-systemで提供されているcomponent名が入る- design-systemのocmponentの基本的な説明
markdown://softreef/design-system/design-pattern/{pattern}patternにはdesign-patternで提供されているpattern名が入る- design-patterの基本的な説明
Tool
get_overview_descriptionmarkdown://softreef/design-system/{category}の説明を取得する
get_component_listmarkdown://softreef/design-system/component/{component}resourceで取得できる説明の一覧を取得する
ge_component_descriptionmarkdown://softreef/design-system/component/{component}の説明を取得する
get_design_pattern_listmarkdown://softreef/design-system/design-pattern/{pattern}resourceで取得できる説明の一覧を取得する
get_design_pattern_descriptionmarkdown://softreef/design-system/design-pattern/{pattern}の説明を取得する
Prompt
softreef_overviewmarkdown://softreef/design-system/{category}resourceをpromptに埋め込むことができる。categoryは必須で与える必要がある
softreef_componentmarkdown://softreef/design-system/component/{component}resourceをpromptに埋め込むことができる。componentは必須で与える必要がある
softreef_design_patternmarkdown://softreef/design-system/design-pattern/{pattern}resourceをpromptに埋め込むことができる。patternは必須で与える必要がある
Tips
エラーに遭遇したら/Users/yourname/Library/Logs/Claude配下のログファイルを確認する。