Devici MCP 服务器是一个用于与 Devici API 交互的模型上下文协议(MCP)服务器。该服务器通过 Devici 平台提供大语言模型(LLM)工具,用于管理用户、集合、威胁模型、组件、威胁、缓解措施、团队和仪表盘数据。
uvx git+https://github.com/geoffwhittington/devici-mcp.git
uvx devici-mcp-server
uv pip install git+https://github.com/geoffwhittington/devici-mcp.git
devici-mcp-server
uv pip install devici-mcp-server
devici-mcp-server
pip install git+https://github.com/geoffwhittington/devici-mcp.git
devici-mcp-server
pip install devici-mcp-server
devici-mcp-server
服务器需要以下三个环境变量:
DEVICI_API_BASE_URL:你的 Devici 实例 URL(例如:https://api.devici.com/v1)DEVICI_CLIENT_ID:你的 Devici 客户端 IDDEVICI_CLIENT_SECRET:你的 Devici 客户端密钥export DEVICI_API_BASE_URL="https://api.devici.com/v1"
export DEVICI_CLIENT_ID="your-client-id-here"
export DEVICI_CLIENT_SECRET="your-client-secret-here"
在工作目录中创建一个 .env 文件:
DEVICI_API_BASE_URL=https://api.devici.com/v1
DEVICI_CLIENT_ID=your-client-id-here
DEVICI_CLIENT_SECRET=your-client-secret-here
DEVICI_CLIENT_ID 和 DEVICI_CLIENT_SECRET。将以下内容添加到你的 Claude Desktop 配置文件中:
{
"mcpServers": {
"devici": {
"command": "uvx",
"args": ["git+https://github.com/geoffwhittington/devici-mcp.git"],
"env": {
"DEVICI_API_BASE_URL": "https://api.devici.com/v1",
"DEVICI_CLIENT_ID": "your-client-id-here",
"DEVICI_CLIENT_SECRET": "your-client-secret-here"
}
}
}
}
{
"mcpServers": {
"devici": {
"command": "uvx",
"args": ["devici-mcp-server"],
"env": {
"DEVICI_API_BASE_URL": "https://api.devici.com/v1",
"DEVICI_CLIENT_ID": "your-client-id-here",
"DEVICI_CLIENT_SECRET": "your-client-secret-here"
}
}
}
}
将以下内容添加到你的 Cline MCP 设置中:
{
"mcpServers": {
"devici": {
"command": "uvx",
"args": ["git+https://github.com/geoffwhittington/devici-mcp.git"],
"env": {
"DEVICI_API_BASE_URL": "https://api.devici.com/v1",
"DEVICI_CLIENT_ID": "your-client-id-here",
"DEVICI_CLIENT_SECRET": "your-client-secret-here"
}
}
}
}
将以下内容添加到你的 Continue 配置中:
{
"mcpServers": {
"devici": {
"command": "uvx",
"args": ["git+https://github.com/geoffwhittington/devici-mcp.git"],
"env": {
"DEVICI_API_BASE_URL": "https://api.devici.com/api/v1",
"DEVICI_CLIENT_ID": "your-client-id-here",
"DEVICI_CLIENT_SECRET": "your-client-secret-here"
}
}
}
}
将以下内容添加到你的 Cursor 配置文件中:
{
"mcpServers": {
"devici": {
"command": "uvx",
"args": ["git+https://github.com/geoffwhittington/devici-mcp.git"],
"env": {
"DEVICI_API_BASE_URL": "https://api.devici.com/api/v1",
"DEVICI_CLIENT_ID": "your-client-id-here",
"DEVICI_CLIENT_SECRET": "your-client-secret-here"
}
}
}
}
如果你已经在本地安装了该包:
{
"mcpServers": {
"devici": {
"command": "devici-mcp-server",
"env": {
"DEVICI_API_BASE_URL": "https://api.devici.com/api/v1",
"DEVICI_CLIENT_ID": "your-client-id-here",
"DEVICI_CLIENT_SECRET": "your-client-secret-here"
}
}
}
}
{
"mcpServers": {
"devici": {
"command": "python",
"args": ["-m", "devici_mcp_server"],
"env": {
"DEVICI_API_BASE_URL": "https://api.devici.com/api/v1",
"DEVICI_CLIENT_ID": "your-client-id-here",
"DEVICI_CLIENT_SECRET": "your-client-secret-here"
}
}
}
}
# 克隆仓库
git clone
cd devici-mcp
# 创建虚拟环境并安装依赖
uv sync
# 以开发模式运行
uv run python -m devici_mcp_server
# 运行导入测试
uv run python test_basic.py
# 使用环境变量进行测试
DEVICI_API_BASE_URL=https://api.devici.com/api/v1 DEVICI_CLIENT_ID=test DEVICI_CLIENT_SECRET=test uv run python -m devici_mcp_server
# 打包项目
uv build
# 本地安装以进行测试
uv pip install dist/*.whl
该服务器提供对以下内容的访问:
本项目采用 MIT 许可证 - 详情请参阅 LICENSE 文件。
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)如果遇到问题或有疑问:
⚠️ 重要提示
这是一个非官方的 Devici MCP 服务器。如需官方 Devici 支持,请联系 Devici 团队。