Trust Gated Agent Example
БесплатноНе проверенTrust-gated AI agent examples. Check CraftedTrust before connecting to any MCP server. Python (LangGraph) + TypeScript.
Описание
Trust-gated AI agent examples. Check CraftedTrust before connecting to any MCP server. Python (LangGraph) + TypeScript.
README
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
from github.com/cybercraftsolutionsllc/trust-gated-agent-example
Установка Trust Gated Agent Example
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/cybercraftsolutionsllc/trust-gated-agent-exampleFAQ
Trust Gated Agent Example MCP бесплатный?
Да, Trust Gated Agent Example MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Trust Gated Agent Example?
Нет, Trust Gated Agent Example работает без API-ключей и переменных окружения.
Trust Gated Agent Example — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Trust Gated Agent Example в Claude Desktop, Claude Code или Cursor?
Открой Trust Gated Agent Example на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Trust Gated Agent Example with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
