feat(examples): add agent trust check via TWZRD Agent Intel MCP server#1929
feat(examples): add agent trust check via TWZRD Agent Intel MCP server#1929twzrd-sol wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7b588eec9f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| import { Client } from '@modelcontextprotocol/sdk/client/index.js'; | ||
| import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js'; |
There was a problem hiding this comment.
Declare the MCP SDK dependency
This new example imports @modelcontextprotocol/sdk, but neither the root package.json nor examples/package.json/lockfile declares that package. The repo's lint path runs ./node_modules/typescript/bin/tsc with tsconfig.json including examples, so a normal checkout after yarn install/scripts/bootstrap will fail type-checking with an unresolved module before anyone has manually run the install command from this file's comment. Add the dependency to the checked-in examples package metadata so CI and consumers can resolve the import.
Useful? React with 👍 / 👎.
What
Adds
examples/agent-trust-check.ts— a working example that shows how to verify an AI agent's wallet trust score (via TWZRD Agent Intel, an MCP server) before passing the result to OpenAI for a pass/fail decision.Pattern
This is a common multi-agent pattern: external tool → LLM decision. The TWZRD server is free for
score_agentandpreflight_check— no API key needed.Usage
MCP server details
https://intel.twzrd.xyz/mcp(streamable-http)score_agent(wallet),preflight_check(wallet)(free),get_trust_receipt(wallet)(paid x402)twzrd-agent-intel