Skip to content

examples(mcp): add TWZRD Agent Intel trust verification example#3592

Closed
twzrd-sol wants to merge 2 commits into
openai:mainfrom
twzrd-sol:add-twzrd-agent-intel-example
Closed

examples(mcp): add TWZRD Agent Intel trust verification example#3592
twzrd-sol wants to merge 2 commits into
openai:mainfrom
twzrd-sol:add-twzrd-agent-intel-example

Conversation

@twzrd-sol

Copy link
Copy Markdown

Summary

Adds a Streamable HTTP remote MCP example using TWZRD Agent Intel — a zero-install remote MCP server for trust scoring and x402 payment verification of AI agents on Solana.

Files:

  • examples/mcp/twzrd_trust_verification/main.py
  • examples/mcp/twzrd_trust_verification/README.md

What it demonstrates

Uses MCPServerStreamableHttp (same pattern as streamable_http_remote_example) to connect to https://intel.twzrd.xyz/mcp and create an agent that can:

  1. Score Solana agent wallets (0-100 trust score + reputation data)
  2. Run preflight checks before recommending transactions
  3. Verify x402 payment receipts from agent-to-agent transactions

Why this fits here

The examples/mcp/streamable_http_remote_example uses MCPServerStreamableHttp for DeepWiki. TWZRD is another production remote MCP server demonstrating the same transport for a different domain — agent trust infrastructure, relevant for the emerging agentic economy where agents need to evaluate counterparty trustworthiness.

Running it

pip install openai-agents
export OPENAI_API_KEY=sk-...
python examples/mcp/twzrd_trust_verification/main.py

No TWZRD API key needed (free tier). No local server setup required.

TWZRD Agent Intel

  • Endpoint: https://intel.twzrd.xyz/mcp (Streamable HTTP)
  • PyPI: pip install twzrd-agent-intel

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 62733ab844

ℹ️ 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".

Comment on lines +37 to +41
| `score_agent(wallet)` | Trust score (0-100) + reputation | Free |
| `resolve_agent(wallet)` | Agent identity resolution | Free |
| `preflight_check(wallet)` | Pre-transaction safety check | Free |
| `verify_trust_receipt(receipt)` | Verify x402 receipt | Free |
| `get_trust_receipt(wallet)` | Full trust receipt | x402 |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the actual TWZRD MCP tool names

The published TWZRD MCP package docs list the remote MCP tools as get_readiness_card_tool, dexter_preflight, score_wallet_for_intel, get_top_intel_agents, and the Solana market intel tools, not the names shown here. Users following this table or adapting prompts to call score_agent/preflight_check will hit tool-not-found failures instead of reproducing the example, so the example should document the server's actual tool names.

Useful? React with 👍 / 👎.

@seratch

seratch commented Jun 7, 2026

Copy link
Copy Markdown
Member

Please feel free to have this in your own repo

@seratch seratch closed this Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants