-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Start
Get MCPShield running in 5 minutes.
git clone https://github.com/RunTimeAdmin/MCPShield.git
cd MCPShield/backend
python -m venv venv
source venv/bin/activate # Windows: .\venv\Scripts\activate
pip install -r requirements.txt
uvicorn app.main:app --reloadcd ../frontend
npm install
npm run dev- Open http://localhost:3000
- Click Register
- Enter email, password, organization name
- Click Create Account
Expected output:
{
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"refresh_token": "eyJhbGciOiJIUzI1NiIs...",
"token_type": "bearer",
"user": {
"id": 1,
"email": "user@example.com",
"organization_name": "My Org"
}
}- Go to Dashboard → Agents
- Click Create Agent
- Copy the API key (starts with
mcp_sk_)
Save the API key immediately! It is shown only once and stored as a SHA-256 hash in the database. If lost, use the regenerate endpoint.
cd ../agent
pip install -e .
mcpshield configure --api-key mcp_sk_YOUR_KEY --api-url http://localhost:8000Expected output:
Testing connection to http://localhost:8000...
Connected successfully!
Config saved to <platform-specific-path>
mcpshield scanExpected output:
Scanning for MCP servers...
Found 3 servers:
- filesystem (stdio)
- github (stdio)
- fetch (stdio)
Risk Report saved to: /path/to/report.json
Go to Dashboard → Servers to see discovered MCP servers.
"JWT_SECRET environment variable is required" You need to set JWT_SECRET before starting the backend. See the Installation Guide for instructions.
"Invalid API key format"
API keys must start with mcp_sk_. Make sure you copied the complete key from the agent creation step.
"Connection refused" when configuring agent
The backend is not running or the API URL is incorrect. Verify with: curl http://localhost:8000/health
For more troubleshooting help, see the Troubleshooting Guide.
- Agent-Usage - Learn all agent commands
- Risk-Scoring - Understand risk calculations
- API-Reference - Integrate with your systems
Getting Started
User Guide
Technical
Development