loading…
Search for a command to run...
loading…
An MCP server that integrates CST Studio Suite with the Model Context Protocol to enable automated electromagnetic simulation workflows. It provides specialized
An MCP server that integrates CST Studio Suite with the Model Context Protocol to enable automated electromagnetic simulation workflows. It provides specialized tools for material definition management and direct interaction with the CST Studio Suite environment.
This project is a Python package that integrates with CST Studio Suite and MCP (Model Center Platform). 本项目是一个集成了 CST Studio Suite 和 MCP (Model Center Platform) 的 Python 包。
Materials/: Contains material definitions for CST Studio SuiteMaterials/: 包含 CST Studio Suite 的材料定义.gitignore: Git ignore file.gitignore: Git 忽略文件.python-version: Python version specification.python-version: Python 版本规范pyproject.toml: Project configuration filepyproject.toml: 项目配置文件# Install uv using pip
# 使用 pip 安装 uv
pip install uv
# Or install uv directly
# 或直接安装 uv
# For Windows:
# Windows系统:
winget install uv.uv
# For macOS:
# macOS系统:
brew install uv
# For Linux:
# Linux系统:
curl -LsSf https://astral.sh/uv/install.sh | sh
Clone the repository
克隆仓库
git clone <repository-url>
cd CST_MCP
Create and activate virtual environment using uv
使用 uv 创建并激活虚拟环境
# Create virtual environment
# 创建虚拟环境
uv venv
# Activate virtual environment
# 激活虚拟环境
# Windows:
# Windows系统:
.venv\Scripts\activate
# macOS/Linux:
# macOS/Linux系统:
source .venv/bin/activate
Install dependencies using uv
使用 uv 安装依赖
uv add .
Clone the repository
克隆仓库
git clone <repository-url>
cd CST_MCP
Create a virtual environment
创建虚拟环境
python -m venv .venv
Activate the virtual environment
激活虚拟环境
.venv\Scripts\activate
source .venv/bin/activate
Install dependencies
安装依赖
uv pip install -e .
cst-studio-suite-link: CST Studio Suite Python librariescst-studio-suite-link: CST Studio Suite Python 库mcp[cli]>=1.25.0: Model Center Platform CLImcp[cli]>=1.25.0: Model Center Platform 命令行工具Note: This MCP relies on the uv package manager for virtual environment management and startup. 注意: 此 MCP 依赖 uv 包管理器进行虚拟环境管理和启动。
{
"mcpServers": {
"cst_interface": {
"command": "uv",
"args": [
"--directory",
"...\\CST_MCP",
"run",
"advanced_mcp.py"
]
}
}
}
The JSON configuration uses uv as the command to start the MCP, which:
JSON 配置使用 uv 作为启动 MCP 的命令,它会:
--directory--directoryuv runuv runThis ensures that the MCP runs with all the necessary dependencies installed in the uv-managed virtual environment. 这确保了 MCP 在 uv 管理的虚拟环境中运行,包含所有必要的依赖项。
The project includes a comprehensive set of material definitions in the Materials/ directory, including:
项目在 Materials/ 目录中包含了一套全面的材料定义,包括:
The project is configured using pyproject.toml, which specifies:
项目使用 pyproject.toml 进行配置,其中指定了:
CST Studio Suite path not found
找不到 CST Studio Suite 路径
pyproject.toml is correctpyproject.toml 中的路径是否正确Python version compatibility
Python 版本兼容性
.python-version file for the recommended version.python-version 文件了解推荐版本Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"cst-mcp": {
"command": "npx",
"args": []
}
}
}