orderly-mcp: Instructions file for Codex

AGENTS.md

orderly-mcp AGENTS.md is an instructions file for Codex, OpenCode from OrderlyNetwork/orderly-mcp. It costs 7,283 tokens per session, scanned A, original, MIT.

An MCP server that gives AI assistants access to Orderly Network documentation and SDK coding patterns. An SDK is a software library that helps developers use a service from their own code.

In plain words
What is it for?
Use it to search Orderly documentation, find accurate SDK symbols and examples, and get guidance when building trading user interfaces.
Why use it?
It reduces the need to search documentation manually or guess how Orderly's trading tools and interfaces should be used.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is OrderlyNetwork/orderly-mcp's own configuration. It tells Codex and OpenCode how to work on orderly-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything orderly-mcp configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd ../dex-creator/api && yarn dev.

Reuse

Borrowing it

Nothing to install: this file belongs to OrderlyNetwork/orderly-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/OrderlyNetwork/orderly-mcp/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/OrderlyNetwork/orderly-mcp

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for orderly-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/orderlynetwork/orderly-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/orderlynetwork/orderly-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/orderlynetwork/orderly-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/orderlynetwork/orderly-mcp/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for orderly-mcp AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/orderlynetwork/orderly-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/orderlynetwork/orderly-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,283 This file is loaded in full into every session.
When invoked 7,283 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.07283 $0.07283
Opus 5.5 $0.02913 $0.02913
Sonnet 5.5 $0.01457 $0.01457
Haiku 4.5 $0.00728 $0.00728

Measured 3d ago against content hash 3e46128b6475, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

orderly-mcp AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 643 lines

How it starts

The opening of the file, as written. The whole thing — 643 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md - Orderly MCP Server

Project Overview

This is a Model Context Protocol (MCP) server that provides Orderly Network documentation and SDK patterns to AI assistants. It enables developers to query documentation, get code examples, and receive guidance on building trading UIs.

Key Technologies:

  • TypeScript (ES modules)
  • MCP SDK for tool/resource definitions
  • Vitest for testing
  • Yarn for package management
  • ESLint + Prettier for code quality

Architecture

Entry Points:

  • src/index.ts - Stdio transport (for local MCP clients like Claude Desktop)
  • src/http-server.ts - HTTP transport (for hosted deployments, Docker)
  • src/server.ts - Shared MCP server logic (tools, resources, handlers)

Transports:

  • Stdio: Default for local AI assistants, communicates via stdin/stdout
  • HTTP: Stateless Streamable HTTP transport for remote access, runs on port 3000
  • Docker: Runs HTTP mode by default with health checks

Tools (src/tools/*.ts):

  • searchDocs.ts - Unified fuzzy search over documentation.json and type-accurate SDK symbols (sdk-symbols.json). A single search_orderly_docs tool surfaces doc chunks and inline hook/type/component/function records (signature, params, returns, props, source) from the js-sdk symbol bundle.
  • contracts.ts - Contract address lookup
  • workflows.ts - Workflow explanations
  • apiInfo.ts - API documentation
  • indexerApi.ts - Indexer API documentation
  • componentGuides.ts - Component building guides
  • orderlyOneApi.ts - Orderly One API documentation
  • svApi.ts - Strategy Vault API documentation
  • publicInfoApi.ts - Public Info API documentation

Data (src/data/*.json):

  • Static JSON files with documentation, patterns, addresses
  • Imported with with { type: "json" } syntax
  • Read at runtime by tools

Resources (src/resources/index.ts):

  • Handles URI-based resource requests
  • Returns markdown or JSON content

Common Tasks

Build Project

yarn build

Read the full file on GitHub · 643 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · +52 tokens per session 3e46128b6475
  2. 5d ago Changed · +2 lines · +61 tokens per session 08aa851b75d9
  3. 2mo ago First seen · 641 lines · 7,170 tokens per session scan A 1ed980d3b2a3

Subscribe to this mod's changes

orderly-mcp AGENTS.md is an instructions file published in the GitHub repository OrderlyNetwork/orderly-mcp (10 stars, last pushed 4d ago), licensed MIT. It adds 7,283 tokens to every session, about $0.0291 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

orderly-mcp AGENTS.md compared with instructions from other repositories

orderly-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
orderly-mcp AGENTS.mdOrderlyNetwork/orderly-mcpInstructions file104d agoMITA7,283Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA1,907GitHub Copilot