loading…
Search for a command to run...
loading…
MCP server that enables deployment and management of MCP servers through a simple configuration-based interface.
MCP server that enables deployment and management of MCP servers through a simple configuration-based interface.
A demonstration MCP (Model Context Protocol) server showcasing Tools, Resources, and Prompts with integrated security scanning.
add - Add two numbersreverse_text - Reverse a stringformat_json - Pretty-print JSONcalculate - Evaluate mathematical expressionsscan_mcp_server - Scan MCP servers for vulnerabilitiescheck_scanner_status - Check scanner configurationdemo://info - Server metadatademo://timestamp - Current time and uptimedemo://examples - Usage examplesdemo://file/data - Read sample datacode_review - Code review templatesummarize - Text summarization templatedebug_helper - Debugging assistance template# Clone the repository
git clone https://github.com/manutri1986/mcpdeployment.git
cd mcpdeployment
# Install dependencies (automatic with uv)
uv sync
Local Development (stdio transport):
# Start MCP server for IDE integration
uv run mcp-server
The server communicates via stdio and will wait for MCP protocol connections.
Remote Deployment (HTTP transport):
# Start HTTP server for remote access
MCP_REMOTE_HOST=127.0.0.1 MCP_REMOTE_PORT=8000 uv run mcp-server-remote
# Or use the test script
./scripts/test_http_local.sh
📖 Full HTTP deployment guide: docs/HTTP_DEPLOYMENT.md
# Run security scan (YARA analyzer - fast, no API key needed)
uv run python scripts/scanners/yara_scanner.py
# Quick scan (sample components only)
uv run python scripts/scanners/yara_scanner.py --quick
# Advanced scanners (require API keys)
uv run python scripts/scanners/llm_api_scanner.py # OpenAI LLM analysis
uv run python scripts/scanners/cisco_api_scanner.py # Cisco AI Defense
Scanner Coverage:
For deeper analysis with LLM and API analyzers:
# Run setup script
./scripts/setup_scanner.sh
# Or set environment variables manually
export MCP_SCANNER_API_KEY="your_api_key"
export MCP_SCANNER_ENDPOINT="https://us.api.inspect.aidefense.security.cisco.com/api/v1"
Get your API key: Cisco AI Defense
📖 Full documentation: docs/SCANNER_SETUP.md
Configuration included at .cursor/mcp.json. After setup:
Add to your MCP client configuration:
{
"mcpServers": {
"mcpdeployment": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/manutri1986/mcpdeployment.git",
"mcp-server"
]
}
}
}
Configuration file locations:
| Client | Config Path |
|---|---|
| Claude Desktop (macOS) | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Claude Desktop (Windows) | %APPDATA%\Claude\claude_desktop_config.json |
| Cursor | .cursor/mcp.json (project) or ~/.cursor/mcp.json (global) |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
| VS Code | .vscode/mcp.json or User settings |
| Claude Code | .claude/mcp.json (project) or ~/.claude/mcp.json (global) |
mcpdeployment/
├── src/mcpserver/ # MCP server implementation
│ ├── __init__.py
│ ├── __main__.py # Entry point (stdio transport)
│ ├── __main_remote__.py # Entry point (HTTP transport)
│ └── server.py # Tools, resources, prompts
├── scripts/ # Utility scripts
│ ├── scanners/ # Security scanner implementations
│ │ ├── yara_scanner.py
│ │ ├── llm_api_scanner.py
│ │ └── cisco_api_scanner.py
│ ├── setup_scanner.sh # Scanner configuration
│ └── test_http_local.sh # Local HTTP testing
├── tests/ # Test files
│ └── test_scanner.py # Test scanner setup
├── reports/ # Generated scan reports (gitignored)
├── docs/ # Documentation
│ ├── methodology/ # Scanner methodology docs
│ ├── SCANNER_SETUP.md
│ ├── SCANNER_LIMITATIONS.md
│ └── HTTP_DEPLOYMENT.md # Remote deployment guide
├── data/ # Sample data
│ └── sample_data.json
├── STRUCTURE.md # Detailed structure guide
├── CLAUDE.md # AI assistant guidance
├── README.md # This file
└── pyproject.toml # Project configuration
📖 See STRUCTURE.md for detailed directory structure and purpose.
Built with FastMCP, a Python framework for MCP servers.
Key Pattern:
from mcp.server.fastmcp import FastMCP
mcp = FastMCP("Demo")
@mcp.tool()
def your_tool(arg: type) -> type:
"""Tool description"""
return result
@mcp.resource("uri://path")
def your_resource() -> str:
"""Resource description"""
return json.dumps(data)
@mcp.prompt()
def your_prompt(arg: type) -> str:
"""Prompt description"""
return f"Prompt text with {arg}"
See CLAUDE.md for detailed architecture notes.
# Verify scanner is configured
uv run python tests/test_scanner.py
Edit src/mcpserver/server.py:
@mcp.tool(), @mcp.resource(), @mcp.prompt())scripts/scanners/ to include new tools/prompts in scan listsuv run python scripts/scanners/yara_scanner.pyuv run python --version (needs 3.11+)uv syncuv pip list | grep cisco-ai-mcp-scanneruv run python tests/test_scanner.pyMIT
Выполни в терминале:
claude mcp add mcpdeployment -- npx Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development