Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Score any AI for trust across 10 dimensions; evaluate, monitor & govern LLMs and agents.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
TRUSTMODEL_API_KEY, TRUSTMODEL_BASE_URL标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"trustmodel": {
"command": "npx",
"args": [
"-y",
"@trustmodel/mcp-server"
],
"env": {
"TRUSTMODEL_API_KEY": "your-value",
"TRUSTMODEL_BASE_URL": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add trustmodel --env TRUSTMODEL_API_KEY=your-value --env TRUSTMODEL_BASE_URL=your-value -- npx -y @trustmodel/mcp-server运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"trustmodel": {
"command": "npx",
"args": [
"-y",
"@trustmodel/mcp-server"
],
"env": {
"TRUSTMODEL_API_KEY": "your-value",
"TRUSTMODEL_BASE_URL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"trustmodel": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@trustmodel/mcp-server"
],
"env": {
"TRUSTMODEL_API_KEY": "your-value",
"TRUSTMODEL_BASE_URL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
TRUSTMODEL_BASE_URL env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 karlmehta 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:TRUSTMODEL_API_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.2.0)于5个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A Model Context Protocol (MCP) server that lets any AI agent call TrustModel for trust evaluation, safety/bias analysis, and end-to-end agentic trace evaluation.
Works with Claude Code, Cursor, Windsurf, Claude Desktop, and any other MCP-compatible client.
Sign up at app.trustmodel.ai and create an API key under Settings → API Keys. Keys have the format tm-{env}-{keyid}_{secret} (e.g. tm-prod-abc12345_0123456789abcdef…).
claude mcp add trustmodel \
--env TRUSTMODEL_API_KEY=tm-prod-xxxx_yyyy \ -- npx -y @trustmodel/mcp-server
Add to your MCP configuration file (.cursor/mcp.json or equivalent):
{
"mcpServers": { "trustmodel": { "command": "npx", "args": ["-y", "@trustmodel/mcp-server"], "env": { "TRUSTMODEL_API_KEY": "tm-prod-xxxx_yyyy" } } } }
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": { "trustmodel": { "command": "npx", "args": ["-y", "@trustmodel/mcp-server"], "env": { "TRUSTMODEL_API_KEY": "tm-prod-xxxx_yyyy" } } } }
| Variable | Required | Default | Description |
|---|---|---|---|
TRUSTMODEL_API_KEY | No* | — | Your TrustModel API key (tm-{env}-{keyid}_{secret}). *Not needed for the local tools (trustmodel_evaluate_local, trustmodel_govern); required for calibrated cloud tools. |
TRUSTMODEL_TRACE_DIR | No | ~/.trustmodel-mcp/traces/ | Where streaming trace sessions are persisted as append-only JSONL. Sessions survive server restarts via rehydrate-on-read. |
TRUSTMODEL_PROFILE | No | default | Tool profile. default exposes only the daily-driver tools; security / advanced / all expose every tool. See Tool profiles. |
TRUSTMODEL_ADVANCED_TOOLS | No | false | Set true to expose all tools regardless of TRUSTMODEL_PROFILE. |
TRUSTMODEL_AGT_DISCOVERY_ENABLED | No | false | Enables the filesystem-touching Shadow Discovery tools (trustmodel_shadow_discovery_*). When unset, those tools return a skip report. (Only relevant when the advanced profile is on.) |
To stay within the 5–8 tool best-practice budget (more tools degrade an agent's tool selection), the server exposes a small default set and keeps advanced tools opt-in.
Default profile (6 tools) — the daily drivers: trustmodel_evaluate_local · trustmodel_score · trustmodel_trace_start · trustmodel_trace_step · trustmodel_trace_finalize · trustmodel_govern
Advanced — set TRUSTMODEL_PROFILE=security (or advanced / all, or TRUSTMODEL_ADVANCED_TOOLS=true) to additionally expose: trustmodel_evaluate (cloud batch), trustmodel_credits, trustmodel_upload_trace, trustmodel_evaluate_agent, trustmodel_score_agent, trustmodel_mcp_scan_server, trustmodel_shadow_discovery_*, trustmodel_redteam_*, and trustmodel_shadowai_* — 20 tools total.
claude mcp add trustmodel --env TRUSTMODEL_PROFILE=security -- npx -y @trustmodel/mcp-server
The server exposes 18 tools across six areas. Use this table to pick the right one; full input/output docs follow below.
| Tool | Group | When to use |
|---|---|---|
trustmodel_evaluate | Eval | Kick off a batch trust evaluation of a model (safety, bias, accuracy, …); returns an id to poll. |
trustmodel_score | Eval | Fetch status/scores for an evaluation created with trustmodel_evaluate. |
trustmodel_credits | Eval | Check remaining API credit balance. |
trustmodel_trace_start | Agentic Trace | Open a streaming trace session before an agent starts working. |
trustmodel_trace_step | Agentic Trace | Record one reasoning step, tool call, tool result, or response as the agent runs. |
trustmodel_trace_finalize | Agentic Trace | Close the session, upload the trace, and auto-create the agent evaluation run. |
trustmodel_upload_trace | Agentic Trace | One-shot: PUT a pre-assembled trace JSON when you didn't stream it. |
trustmodel_evaluate_agent | Agentic Trace | Create an agentic evaluation run against an already-uploaded trace file_path. |
trustmodel_score_agent | Agentic Trace | Fetch scores/grade for an agentic evaluation run. |
trustmodel_mcp_scan_server | Security | Security-scan a third-party MCP server's tool list for risky/abusable tools. |
trustmodel_shadow_discovery_scan_paths | Shadow Discovery | Scan local filesystem paths for unregistered/shadow AI usage. |
trustmodel_shadow_discovery_fingerprint_keys | Shadow Discovery | Detect & fingerprint OpenAI/Anthropic API keys found on disk. |
trustmodel_redteam_evaluate | Red Team | Launch an adversarial red-team evaluation against a model/endpoint. |
trustmodel_redteam_results | Red Team | Fetch results for a red-team evaluation. |
trustmodel_redteam_list_probes | Red Team | List available red-team probes/attack categories. |
trustmodel_shadowai_scan | Shadow AI | Start a Shadow AI scan to find unregistered AI use across an environment. |
trustmodel_shadowai_results | Shadow AI | Fetch results for a Shadow AI scan. |
trustmodel_shadowai_events | Shadow AI | Stream the detection events for a Shadow AI scan. |
Shadow Discovery tools (
trustmodel_shadow_discovery_*) touch the local filesystem. They are always listed, but return a skip report unlessTRUSTMODEL_AGT_DISCOVERY_ENABLED=trueis set on the server.
trustmodel_evaluateCreate a batch evaluation run against a specified AI model. The backend runs a comprehensive suite (safety, bias, accuracy, hallucination, reasoning, etc.) and returns an id you can poll with trustmodel_score.
Inputs:
model_identifier (string, required) — e.g. "gpt-4o", "claude-sonnet-4-5". Discover via GET /sdk/v1/models/.vendor_identifier (string, required) — e.g. "openai", "anthropic", "google".api_key (string, optional) — Vendor API key for BYOK. Omit to use TrustModel's platform key. Do not pass a TrustModel API key here — that goes in the TRUSTMODEL_API_KEY env var.categories (string[], optional) — Category names to evaluate. Only honored when evaluation_type is "Custom" or "Score Only".evaluation_type (string, optional, default "Custom") — One of "Custom", "Score Only", "Comprehensive", "Limited", "Quick Scan".application_type (string, optional, default "generic") — chatbot, knowledge-agent, creation-tool, document-repository, analysis-tool, automation-agent, generic.user_personas (string[], optional, default ["external-customer"]) — Any of external-customer, internal-employee, technical-user, domain-expert, vulnerable-groups, generic.application_description (string, optional).domain_expert_description (string, optional) — When user_personas includes "domain-expert". One of "cross-domain" (default), "medical", "commercial_banking".model_config_name (string, optional) — Display name for this run.template_id (UUID, optional), template_name (string, optional) — Reuse or rename an existing evaluation template.trustmodel_scoreFetch the detail (status, completion %, scores) for an evaluation created via trustmodel_evaluate.
Inputs:
evaluation_id (integer or numeric string, required) — The id returned by trustmodel_evaluate.trustmodel_creditsCheck remaining API credit balance. No inputs.
TrustModel evaluates AI agents by consuming their execution trace (thoughts, tool calls, tool results, responses) and scoring them across 4 categories: tool_use_accuracy, reasoning_quality, goal_completion, safety_compliance.
There are two ways to submit a trace — streaming (preferred for live agents) and one-shot (when you have a pre-assembled trace).
Open a session, record steps as the agent works, finalize at the end. Finalize uploads to cloud storage and auto-creates the evaluation run.
trustmodel_trace_startOpen a new trace session.
Inputs:
goal (string, required) — What the agent is trying to achieve.name (string, required) — Display name for the evaluation run.agent_framework (string, required) — e.g. "langchain", "crewai", "claude-code", "custom".agent_model (string, optional) — e.g. "gpt-4o", "claude-sonnet-4-5".user_query (string, optional) — Original user prompt, if different from goal.expected_outcome (string, optional).metadata (object, optional) — Free-form passthrough metadata.Returns: { trace_id, started_at }.
trustmodel_trace_stepAppend a single step to the active session. Call once per reasoning step, tool call, tool result, or user-facing response.
Inputs:
trace_id (string, required) — From trustmodel_trace_start.step_type (enum, required) — One of thought, think, tool_call, tool_result, observation, decision, error, human_input, response, final_answer.content (string, required) — Human-readable text for the step. Empty string allowed.tool_name (string, optional), tool_args (object, optional) — Use with tool_call.tool_result (string or object, optional), tool_call_success (boolean, optional) — Use with tool_result.model_used (string, optional), input_tokens / output_tokens (int, optional), duration_ms (int, optional), timestamp (ISO 8601, optional).Returns: { trace_id, step_number, steps_recorded }. step_number is auto-assigned.
trustmodel_trace_finalizeClose the session, upload the trace, and auto-create the evaluation run.
Inputs:
trace_id (string, required).final_response (string, optional), actual_outcome (string, optional), goal_achieved (boolean, optional), success (boolean, optional), total_duration_ms (int, optional — computed from step durations if omitted).goal / name / agent_framework / agent_model / expected_outcome (all optional) — Override start-time metadata if the agent learned more at runtime.Returns (happy path): { trace_id, file_path, expires_in, step_count, evaluation_run_id, evaluation_status, evaluation_message }.
Returns (evaluate failed after successful upload): { trace_id, file_path, expires_in, step_count, evaluation_error }. You can retry evaluation without re-uploading via trustmodel_evaluate_agent({ file_path, goal, name, agent_framework }).
trustmodel_upload_tracePUT an already-built trace JSON object to cloud storage. Returns a file_path you then pass to trustmodel_evaluate_agent.
Inputs:
trace (object, required) — Complete AgentTrace JSON.Returns: { file_path, expires_in }.
trustmodel_evaluate_agentCreate an agentic evaluation run against a previously-uploaded trace.
Inputs:
file_path (string, required) — From trustmodel_upload_trace or trustmodel_trace_finalize.goal / name / agent_framework (strings, required).agent_model / expected_outcome / actual_outcome (string, optional).goal_achieved (boolean, optional).Returns: { evaluation_run_id, status, message }.
trustmodel_score_agentFetch the detail (scores, grade, summary) for an agentic evaluation run.
Inputs:
evaluation_run_id (integer or numeric string, required).trustmodel_mcp_scan_serverRun AGT's MCP security scanner over a third-party MCP server's tool list to detect tool poisoning, typosquatting, hidden instructions, and rug-pull patterns. Static analysis — no LLM, no net
只显示了开头部分;其余内容请在仓库中阅读