blender-open-mcp: Instructions file for Codex

AGENTS.md

blender-open-mcp AGENTS.md is an instructions file for Codex, OpenCode from dhakalnirajan/blender-open-mcp. It costs 1,520 tokens per session, scanned A, original, MIT.

Repository instructions for a local Blender control server using MCP, a standard way for AI tools to call external programs. It connects an AI model to a live Blender session for scene, object, material, rendering, and code tasks.

In plain words
What is it for?
Use them when developing or maintaining the Blender MCP server, its provider layer, TCP connection, or Blender add-on.
Why use it?
They explain the project's layout, supported model connections, and conventions so an agent can change the code without overlooking how its server and Blender bridge work.

Instructions file for CodexOpenCode

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

This is dhakalnirajan/blender-open-mcp's own configuration. It tells Codex and OpenCode how to work on blender-open-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 blender-open-mcp configures →

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dhakalnirajan/blender-open-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/dhakalnirajan/blender-open-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,520 This file is loaded in full into every session.
When invoked 1,520 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.01520 $0.01520
Opus 5.5 $0.00608 $0.00608
Sonnet 5.5 $0.00304 $0.00304
Haiku 4.5 $0.00152 $0.00152

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

Security

Grade A, and why

blender-open-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 19d 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 · 101 lines

How it starts

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

Blender Open MCP — AGENTS.md

Project Overview

blender-open-mcp is a local-first MCP (Model Context Protocol) server for controlling a live Blender session, with a provider-agnostic LLM backend. The same codebase talks to Ollama, LM Studio, llama.cpp server, OpenAI, Azure AI Foundry, and any OpenAI-compatible endpoint. Providers can be set at startup (CLI/env) and switched at runtime through MCP tools.

Repository Layout

  • addon.py — single-file Blender add-on. Registers operators/panel, runs a TCP server (default localhost:9876) that receives newline-delimited JSON commands ({"type": ..., "params": {...}}) and dispatches to handlers in HANDLERS. Handlers cover scene info, object create/modify/delete, materials, rendering, code execution, and PolyHaven download/set-texture.
  • src/blender_open_mcp/
    • server.py — MCP server. Registers all blender_* tools with flat signatures, owns the Blender TCP bridge (_send_blender_command), the runtime LLM state (_llm_state), and the CLI (main()).
    • llm.py — provider layer: PROVIDERS registry + PROVIDER_ALIASES, resolve_provider(), chat(), list_models(), ProviderError. Add new backends here.
    • client/ — canonical async MCP client (BlenderMCPClient) + CLI.
    • prompts.py — MCP Prompts (blender_build_scene, blender_review_scene, blender_configure_llm) registered via register_prompts(mcp).
    • __init__.py — exports main.
  • client/ — compat wrapper so legacy from client import … imports work from source; it bootstraps src/ onto sys.path and re-exports the canonical module.
  • tests/ — pytest suites: test_server.py, test_client.py, test_addon.py (bpy mocked).
  • pyproject.toml — hatchling build, deps, blender-mcp / blender-mcp-client console scripts, pytest config.
  • .venv/ — local virtualenv used for development/testing (gitignored).

Key Design Decisions

  • Flat tool signatures. Every @mcp.tool function takes explicit keyword parameters (no params: X wrapper objects). FastMCP 4 advertises whatever the signature says, so standard MCP clients can call tools with top-level args. Never reintroduce single-wrapper-model signatures for tools.
  • Provider-agnostic routing. _query_llm() in server.py fills missing provider fields from _llm_state and delegates to llm.chat(). Per-call overrides (provider/base_url/model/api_key) are supported on blender_ai_prompt.
  • Runtime provider switching. blender_set_llm_provider mutates _llm_state; blender_get_llm_provider reports it (API key masked); blender_list_llm_models lists models. Ollama-only aliases (blender_set_ollama_model, blender_set_ollama_url, blender_get_ollama_models) are thin wrappers for backward compatibility.
  • Blender bridge protocol. Server sends {"type": "<handler>", "params": {...}}\n over TCP and reads one JSON response line: {"status":"ok","result":...} or {"status":"error","message":...}.

Read the full file on GitHub · 101 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. 19d ago Changed · +4 tokens per session 40813bf8c85b
  2. 2mo ago First seen · 101 lines · 1,516 tokens per session scan A dc25bd6bf02d

Subscribe to this mod's changes

blender-open-mcp AGENTS.md is an instructions file published in the GitHub repository dhakalnirajan/blender-open-mcp (122 stars, last pushed 10d ago), licensed MIT. It adds 1,520 tokens to every session, about $0.0061 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-09-05.

Related

blender-open-mcp AGENTS.md compared with instructions from other repositories

blender-open-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
blender-open-mcp AGENTS.mddhakalnirajan/blender-open-mcpInstructions file12210d agoMITA1,520Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode