这是一个用于与Devici API交互的Model Context Protocol (MCP)服务器。该服务器通过Devici平台提供了管理用户、集合、威胁模型、组件、威胁、缓解措施、团队以及仪表板数据的LLM工具。
Devici MCP Server 提供了以下工具:
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-m
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 <repository-url>
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团队。