This guide covers deployment, configuration, and operation of the Slash Command Manager MCP server.
- Python 3.12 or higher
- uv package manager
- Clone the repository and navigate to the project directory
- Install dependencies:
uv sync- Run tests to verify setup:
uv run pytestThe STDIO transport is ideal for local development and integration with MCP clients like Claude Desktop:
slash-man mcpOr using the development server with the MCP Inspector:
uvx fastmcp dev slash_commands/cli.py mcpThis will start the server and open the MCP Inspector in your browser, allowing you to:
- Browse available prompts, resources, and tools
- Test prompt invocations
- View server logs and metrics
For remote access or integration with web-based clients:
slash-man mcp --transport http --port 8000The server will be available at http://localhost:8000.
The server can be configured via environment variables:
SDD_WORKSPACE_ROOT: Root directory for generated specs and tasks (default:/workspace)SDD_PROMPTS_DIR: Directory containing prompt templates (default:./prompts)
SDD_TRANSPORT: Transport type -stdioorhttp(default:stdio)SDD_HTTP_HOST: HTTP server host (default:0.0.0.0)SDD_HTTP_PORT: HTTP server port (default:8000)
SDD_LOG_LEVEL: Logging level -DEBUG,INFO,WARNING,ERROR(default:INFO)SDD_LOG_FORMAT: Log format -jsonortext(default:json)
SDD_CORS_ENABLED: Enable CORS (default:true)SDD_CORS_ORIGINS: Comma-separated list of allowed origins (default:*)
export SDD_WORKSPACE_ROOT=/home/user/workspace
export SDD_LOG_LEVEL=DEBUG
slash-man mcpAdd the following to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"slash-command-manager": {
"command": "uvx",
"args": ["fastmcp", "run", "/path/to/slash-command-manager/slash_commands/cli.py", "mcp"]
}
}
}- Install the MCP plugin for VS Code
- Add the server configuration to your workspace settings:
{
"mcp.servers": {
"slash-command-manager": {
"command": "uvx",
"args": ["fastmcp", "run", "/path/to/slash-command-manager/slash_commands/cli.py", "mcp"]
}
}
}The FastMCP Inspector provides a web-based interface for testing and debugging:
uvx fastmcp dev slash_commands/cli.py mcpThis will:
- Start the MCP server
- Start the Inspector proxy
- Open the Inspector UI in your browser
The slash command generator can create native commands for various AI tools:
Generate commands for all auto-detected agents:
slash-man generateGenerate commands for specific tools:
slash-man generate --agents claude-code --agents cursorPreview changes without writing files:
slash-man generate --dry-runRemove generated command files:
slash-man cleanup --yesuv run pytestuv run pytest --cov=mcp_server --cov=slash_commands --cov-report=htmlOpen htmlcov/index.html in your browser to view the detailed coverage report.
uv run pytest tests/test_prompts.py -v- Verify Python version:
python --version(should be 3.12+) - Reinstall dependencies:
uv sync - Check for port conflicts (if using HTTP transport)
- Verify prompts directory exists and contains
.mdfiles - Check that prompt files have valid YAML frontmatter
- Review server logs for parsing errors
- Ensure all dependencies are installed:
uv sync - Run tests with verbose output:
uv run pytest -v - Check for environment variable conflicts
- Verify the target directory exists and is writable
- Check that the AI tool is properly configured
- Review generated command files for correct syntax
- Ensure prompts have valid frontmatter with required fields
Build and run the Docker container:
docker build -t slash-command-manager .
docker run -p 8000:8000 slash-command-managerUse the provided Kustomize manifests:
kubectl apply -k k8s/overlay/The server provides a health endpoint:
curl http://localhost:8000/mcp/healthEnable debug logging for troubleshooting:
export SDD_LOG_LEVEL=DEBUG
slash-man mcpThe server exposes basic metrics for monitoring MCP connections and prompt usage.