streamable-httpMITupdated 5mo ago
Reference implementations showing how to make AI agents check CraftedTrust before connecting to any MCP server. If a server scores D or F, the agent refuses to connect.
Was kannst du mit mcp shield machen?
Trust-Gated Agent Examples
Reference implementations showing how to make AI agents check CraftedTrust before connecting to any MCP server. If a server scores D or F, the agent refuses to connect.
This is the "SSL certificate check for AI agents" pattern.
Quick Start
Add CraftedTrust to your agent's MCP config:
{
"mcpServers": {
"craftedtrust": {
"url": "https://mcp.craftedtrust.com/api/v1/mcp",
"description": "Check trust scores before connecting to MCP servers"
}
}
}
Your agent now has access to 6 tools:
| Tool | Description |
|---|---|
check_trust |
Look up trust score by URL or npm name |
scan_server |
Trigger a live security scan |
search_registry |
Search 4,200+ indexed MCP servers |
get_stats |
Ecosystem statistics |
pay_for_certification |
Initiate USDC certification payment |
verify_payment |
Verify on-chain payment |
The Pattern
Before your agent connects to any new MCP server:
- Call
check_truston CraftedTrust - If grade is D or F, refuse and explain why
- If grade is A/B/C, proceed with the connection
Examples
Python (LangGraph)
See python/trust_gated_agent.py for a complete LangGraph agent that gates MCP connections through CraftedTrust.
cd python
pip install -r requirements.txt
python trust_gated_agent.py
TypeScript (MCP Client)
See typescript/trust-gated-client.ts for a TypeScript MCP client that checks trust scores before connecting.
cd typescript
npm install
npx tsx trust-gated-client.ts
How It Works
Agent receives task â needs mcp.example.com
â
Agent calls CraftedTrust check_trust("mcp.example.com")
â
Score: 82/100, Grade: B â Safe
â
Agent connects to mcp.example.com â
Agent receives task â needs sketchy-server.xyz
â
Agent calls CraftedTrust check_trust("sketchy-server.xyz")
â
Score: 15/100, Grade: F â Dangerous
â
Agent refuses: "Server scored F (15/100). Not connecting." â
Trust Score Grades
| Grade | Score | Meaning |
|---|---|---|
| A | 90-100 | Excellent security practices |
| B | 75-89 | Good security, minor improvements possible |
| C | 60-74 | Adequate but has gaps |
| D | 40-59 | Significant security issues |
| F | 0-39 | Critical issues, do not connect |
API Reference
Full API documentation: mcp.craftedtrust.com/api-docs.html
License
MIT
Built by Cyber Craft Solutions LLC
Installation
mcp shield zu deinem Client hinzufĂŒgen. WĂ€hl den, den du nutzt.
claude mcp add --transport http mcp-shield https://mcp.craftedtrust.com/api/v1/mcpcodex mcp add mcp-shield --url https://mcp.craftedtrust.com/api/v1/mcp{
"mcpServers": {
"mcp-shield": {
"url": "https://mcp.craftedtrust.com/api/v1/mcp"
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"servers": {
"mcp-shield": {
"type": "http",
"url": "https://mcp.craftedtrust.com/api/v1/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
{
"mcpServers": {
"mcp-shield": {
"url": "https://mcp.craftedtrust.com/api/v1/mcp"
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"mcp-shield": {
"serverUrl": "https://mcp.craftedtrust.com/api/v1/mcp"
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
Score
39 / 100
UnvollstÀndig
- Dokumentation22/25
- Pflege13/25
- Vertrauen13/20
- Funktionsumfang0/15
- Installation12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 159 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 6 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint â no local install
Versionsverlauf
| Versionen | Veröffentlicht |
|---|---|
| 2.0.0Aktuell | 25. MĂ€rz 2026 |