Skip to content

Add LogicNodes tool registration example for OpenAI Agents SDK#3524

Closed
cmdenney wants to merge 1 commit into
openai:mainfrom
cmdenney:logicnodes-integration
Closed

Add LogicNodes tool registration example for OpenAI Agents SDK#3524
cmdenney wants to merge 1 commit into
openai:mainfrom
cmdenney:logicnodes-integration

Conversation

@cmdenney
Copy link
Copy Markdown

Add LogicNodes MCP integration example

Adds a single optional example file showing how to connect this framework to LogicNodes — deterministic on-chain verification, identity, and compliance for autonomous agents. Zero core runtime changes.

What is LogicNodes?

LogicNodes provides 2,300+ cryptographically-signed deterministic microservices for autonomous agents, callable via MCP or direct REST:

Service Endpoint Description
Gas oracle POST /call/gas-oracle EIP-1559 gas estimates with verifiable signatures
Compliance sentry POST /call/compliance-sentry On-chain regulatory & constitutional checks
ZK attestation POST /x402/zk-attest Proof-of-existence anchored to Base L2
Trust graph GET /graph/score/{agent_id} Counterparty reputation from on-chain history
ETH price GET /call/eth-price Signed ETH/USD price oracle

Integration

pip install mcp  # Python
npm install @modelcontextprotocol/sdk  # TypeScript

MCP URL: https://logicnodes.io/mcp
API base: https://logicnodes.io
Docs: https://logicnodes.io/docs
API key (optional): https://logicnodes.io/checkout — pay-per-call via USDC x402, no subscription.

This PR

Adds one optional example file. No changes to core runtime, dependencies, or existing code.


This contribution is made under DCO sign-off. No warranty expressed or implied.

Signed-off-by: LogicNodes contact@htsnavigator.com

Demonstrates optional LogicNodes on-chain compliance, gas oracle,
identity, and ZK attestation integration. Zero core changes.
Copy link
Copy Markdown

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

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: 22253376cd

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".


import asyncio
import os
from typing import Any
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 Remove the unused import so lint can pass

In this repo, make lint runs Ruff over examples/**/*.py; this added Any import is never referenced, so Ruff reports F401 here (and also flags the import block formatting). The mandatory verification for this example will fail until the unused import is removed and the imports are formatted.

Useful? React with 👍 / 👎.

@seratch
Copy link
Copy Markdown
Member

seratch commented May 28, 2026

Thanks for sharing this. While we won't have this in this repo, please feel free to share it in your own repo / resources.

@seratch seratch closed this May 28, 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