STAAD-MCP: Instructions file for Codex

AGENTS.md

STAAD-MCP AGENTS.md is an instructions file for Codex, OpenCode from DP065U/STAAD-MCP. It costs 880 tokens per session, scanned A, a copy of openstaad-mcp AGENTS.md, MIT.

Project instructions for DP065U/STAAD-MCP, a Windows-only bridge between AI agents and Bentley STAAD.Pro. They document the project structure, development commands, architecture, and testing.

In plain words
What is it for?
Use them when developing or maintaining the STAAD-MCP codebase, running unit or integration tests, and understanding its connection, server, and sandbox components.
Why use it?
They give contributors the rules needed to build, lint, format, and test the bridge consistently, including which tests require STAAD.Pro on Windows.

Instructions file for CodexOpenCode

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

This is DP065U/STAAD-MCP's own configuration. It tells Codex and OpenCode how to work on STAAD-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 STAAD-MCP configures →

Reuse

Borrowing it

Nothing to install: this file belongs to DP065U/STAAD-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/DP065U/STAAD-MCP/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/DP065U/STAAD-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 STAAD-MCP AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dp065u/staad-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/dp065u/staad-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/dp065u/staad-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/dp065u/staad-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 STAAD-MCP AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dp065u/staad-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/dp065u/staad-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 880 This file is loaded in full into every session.
When invoked 880 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 91% copy Near-identical to another mod 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.00880 $0.00880
Opus 5.5 $0.00352 $0.00352
Sonnet 5.5 $0.00176 $0.00176
Haiku 4.5 $0.00088 $0.00088

Measured 2mo ago against content hash 8dacfc7dd11d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

STAAD-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 2mo 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.

Origin

This is a copy

91% identical to openstaad-mcp AGENTS.md — 14 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AGENTS.md · 65 lines

How it starts

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

AGENTS.md

Project Overview

MCP server bridging AI agents to Bentley STAAD.Pro via the OpenSTAAD COM API.
Windows-only (pywin32/COM). Python 3.11+. See README.md for full details.

Build & Test

pip install -e ".[dev]"          # Install with dev dependencies
ruff check . ; ruff format --check .  # Lint + format check
ruff check --fix . ; ruff format .    # Auto-fix
pytest                                # Unit tests (any OS, no STAAD needed)
pytest -m integration -v              # Integration tests (Windows + STAAD running)

Architecture

Component Purpose
main.py CLI entry point, transport setup (stdio/HTTP)
server.py MCP tool definitions (discover_api, read_skills, execute_code, get_status)
connection.py Multi-instance management via Windows ROT scan, STA-thread COM dispatch
sandbox/executor.py AST-validated sandboxed exec() with stdout/stderr capture
sandbox/com_proxy.py COM object proxy — blocks internal attrs, validates file paths
sandbox/ast.py AST validation, format-string bypass detection, last-expr rewriting
sandbox/const.py Allowlists for builtins, exceptions, and module attributes
sandbox/path_validator.py Blocks writes to protected dirs, detects UNC paths (NTLM relay prevention)
http_middleware.py SecFetchMiddleware — blocks cross-origin browser requests
skills.py Skill discovery from staad_skills/ with YAML frontmatter extraction

Conventions

  • Line length: 120 characters
  • Linter/formatter: Ruff (Black-compatible). Config in pyproject.toml
  • Ruff rules: E, F, W, I, UP, B, SIM, RUF (ignoring E501, RUF200)
  • Tests: pytest + pytest-asyncio (asyncio_mode = "auto"). Mark integration tests with @pytest.mark.integration
  • 100% test coverage expected for new code
  • All async tests use pytest-asyncio auto mode — no manual event loop setup
  • Limit the number of if-else branches: Use polymorphism (or equivalents) when possible.
  • Single responsibility: Aim for functions and classes with a single responsibility.
  • Data validation: Use Pydantic models when runtime validation is needed. For static type checking, use type hints.

Read the full file on GitHub · 65 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. 2mo ago First seen · 65 lines · 880 tokens per session scan A 8dacfc7dd11d

Subscribe to this mod's changes

STAAD-MCP AGENTS.md is an instructions file published in the GitHub repository DP065U/STAAD-MCP (0 stars, last pushed 3mo ago), licensed MIT. It adds 880 tokens to every session, about $0.0035 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to openstaad-mcp AGENTS.md, differing in 14 lines, and is treated as a copy.

Related

STAAD-MCP AGENTS.md compared with instructions from other repositories

STAAD-MCP AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
STAAD-MCP AGENTS.mdDP065U/STAAD-MCPInstructions file03mo agoMITA880Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot