by shixinnt
A Codex plugin and local MCP runtime for context-bounded image generation and inspection.
# Add to your Claude Code skills
git clone https://github.com/shixinnt/codex-image-context-runtimeGuides for using mcp servers skills like codex-image-context-runtime.
Last scanned: 8/13/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-08-13T05:42:00.521Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}codex-image-context-runtime is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by shixinnt. A Codex plugin and local MCP runtime for context-bounded image generation and inspection. It has 100 GitHub stars.
Yes. codex-image-context-runtime passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/shixinnt/codex-image-context-runtime" and add it to your Claude Code skills directory (see the Installation section above).
codex-image-context-runtime is primarily written in JavaScript. It is open-source under shixinnt on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh codex-image-context-runtime against similar tools.
No comments yet. Be the first to share your thoughts!
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Keep image-heavy Codex workflows responsive, resumable, and context-bounded.

Fictional concept interface—not an actual Codex UI or a measured context, token, speed, or latency benchmark.
Image Context Runtime for Codex is an experimental open-source Codex plugin backed by a durable local MCP runtime. It runs image generation and inspection as persisted jobs, keeps provider-returned media bytes behind the public MCP boundary, and returns only bounded text results, hashes, relative references, and Job IDs.
Use it when Codex is:
Important: This project reduces one source of context pressure. It does not claim that Codex can never slow down, that images use zero tokens, or that explicitly opening an image adds no visual context.
The plugin does not patch or intercept Codex's built-in image features or other image tools. The bounded boundary applies only when Codex uses this plugin's MCP tools and follows its bundled skill.
User-facing shape: a Codex plugin.
Execution shape: a bundled local MCP server plus a durable image-job runtime.
Codex skill
|
v
bounded MCP tools
|
v
durable local jobs ----> optional OpenAI API
|
+----> configured-workspace image artifacts
|
+----> bounded text handoffs, hashes, refs, and Job IDs
The plugin is the installable workflow. MCP is the tool boundary. The Runtime owns Job state, controls media transfer, and writes generated artifacts only to configured workspace-relative paths.
Video generation is intentionally out of scope for v0.2.
Clone the tagged release, then run the following commands from its root. The configuration helper runs outside Codex, so a local clone is required:
git clone --depth 1 --branch v0.2.0 https://github.com/shixinnt/codex-image-context-runtime.git
cd codex-image-context-runtime
codex plugin marketplace add .
codex plugin add codex-image-context-runtime@codex-image-context-runtime
The default provider is offline and deterministic, so installing the plugin cannot accidentally spend API credits.
For a first installation, choose one Provider configuration. For the offline mock:
npm run configure -- --workspace "C:\path\to\your\project" --provider mock
Workspace paths may be absolute or relative to the repository clone's current directory. Custom --config and --runtime-dir paths must be absolute.
Or, for the optional OpenAI Provider, make the key available to the Codex process and configure OpenAI from the start:
$env:OPENAI_API_KEY = "set-this-outside-the-repository"
npm run configure -- --workspace "C:\path\to\your\project" --provider openai
The configuration file stores paths and model choices only. It never stores the API key.
The PowerShell environment assignment applies only to that shell and child processes. Launch Codex CLI from that shell, or use your operating system's environment/credential workflow before starting the desktop app. Restart Codex after configuration or credential changes.
To switch an existing mock setup to OpenAI, first stop the active worker, then replace the config and use a new Runtime directory so in-flight state is not mixed:
npm run configure -- --workspace "C:\path\to\your\project" --provider openai --runtime-dir "C:\path\to\image-runtime-openai" --force
Check the installation without exposing local paths or credentials:
npm run doctor
npm run doctor -- --json
Preview privacy-minimizing Job-record compaction without changing data:
npm run compact -- --older-than-days 30 --limit 25 --json
To apply a bounded batch, stop Codex tasks using the configuration, wait for the Broker to exit, review the dry run, then add --apply. Compaction keeps retired idempotency tombstones and compact artifact receipts; it does not delete workspace images or guarantee secure erasure.
For Bash-compatible shells, export the key before starting Codex:
export OPENAI_API_KEY="set-this-outside-the-repository"
npm run configure -- --workspace "/path/to/your/project" --provider openai
Stop active image jobs, update the clone to the new tag, then refresh the installed plugin cache:
git fetch --tags
git checkout v0.2.0
codex plugin remove codex-image-context-runtime@codex-image-context-runtime
codex plugin add codex-image-context-runtime@codex-image-context-runtime
Configuration and Runtime data are outside the clone and are not deleted by reinstalling the plugin. Restart Codex after the update.
Use Image Context Runtime to generate one 1024x1024 storyboard frame.
Keep the image bytes outside this task and return the Job ID.
Inspect images/frame-001.png for composition, continuity, and obvious text defects.
Return only the bounded inspection handoff.
The bundled skill instructs Codex to submit the job, poll by Job ID, and retrieve the compact handoff instead of asking the MCP server to return pixels.
This is an independent open-source project. It is not affiliated with or endorsed by OpenAI.
Public MCP results:
The runtime can still send an image to an explicitly enabled remote provider for inspection. Local runtime ownership is not the same as offline processing.
The local job records persist prompts, inspection questions, relative references, and provider state. Protect the configured Runtime directory as project data.
Each Codex task receives a thin stdio MCP bridge. Bridges using the same fixed configuration authenticate to one IPv4-loopback broker, which owns the only durable Runtime worker, Provider semaphore, idempotency index, and output reservations. Concurrent bridge startup converges on one broker owner instead of treating another task's live Job as interrupted.
The broker token and configuration hash are stored in an owner-only descriptor in the Runtime directory. Authentication time, per-client in-flight work, response buffering, and stdio-to-socket pressure are bounded. The broker listens only on 127.0.0.1; it is not a remote service or a sandbox against another process running as the same operating-system user.
After the last bridge disconnects and active Jobs settle, the broker shuts down after a bounded idle interval. Forced interruption after Provider dispatch remains ambiguous and becomes needs_review; it is never automatically repeated.
See Architecture, Tool reference, v0.2 claims, Benchmark methodology, v0.2.0 validation receipt, Troubleshooting, Privacy, Support, Terms, Roadmap, Security, Third-party services, and Contributing.
The included benchmark compares:
Run it with:
npm run benchmark
This is a deterministic serialized-payload proxy. It is not a measurement of Codex tokens, latency, memory usage, or native image handling.
The checked-in v0.1 scenario models 20 jobs with 1 MiB synthetic images:
| Transport | Serialized MCP result bytes | Largest result |
|---|---|---|
| Naive inline-image baseline | 27,990,140 | 1,398,617 |
| Reference-only candidate | 27,060 | 739 |
That is a 99.903% reduction for this synthetic result-payload comparison only. See the methodology and reproducible JSON report before quoting it.