Borrowing it
Nothing to install: this file belongs to bkosciow/mcp_camera. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/bkosciow/mcp_camera/main/AGENTS.mdgit clone --depth 1 https://github.com/bkosciow/mcp_cameraWrote 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.
[](https://agentmods.dev/instructions/bkosciow/mcp_camera/agents-md)<a href="https://agentmods.dev/instructions/bkosciow/mcp_camera/agents-md"><img src="https://agentmods.dev/badge/instructions/bkosciow/mcp_camera/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.
<a href="https://agentmods.dev/instructions/bkosciow/mcp_camera/agents-md"><img src="https://agentmods.dev/badge/instructions/bkosciow/mcp_camera/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01629 | $0.01629 |
| Opus 5.5 | $0.00652 | $0.00652 |
| Sonnet 5.5 | $0.00326 | $0.00326 |
| Haiku 4.5 | $0.00163 | $0.00163 |
Grade B, and why
mcp_camera AGENTS.md scanned grade B with 1 finding 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.
Reads MCP configurationmediumAgent snooping
mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.
Inbound requests to the MCP server itself are also protected on network transports: clients must send `Authorization: Bearer <MCP_AUTH_TOKEN>` on every request (no query-parameter fallback), and streamable-http/sse refus How it starts
The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Camera MCP — Agent Instructions
Project Overview
USB camera snapshot service that captures fresh images from an attached USB camera and serves them via a simple HTTP API. An optional MCP server exposes camera tools to Claude Code for live image capture.
Core value: Every API call captures a new frame — no stale caches, no pre-recorded footage.
Tech Stack
- Python 3.12+ with
uv(package manager) - FastAPI for the HTTP layer
- OpenCV (cv2) for camera capture and image processing
- uvicorn ASGI server
- pydantic-settings for configuration
- pytest for testing (all tests mock
cv2.VideoCapture— no hardware needed) - ruff for linting, mypy for type checking
Architecture
Single-container stateless service with three components:
1. Camera Manager (src/camera_mcp/camera.py)
Singleton that manages multiple USB cameras. Scans /dev/video* devices first, then falls back to indices 0–5. Configures highest native resolution (1920×1080 → 1280×720 fallback). Discards stale buffered frames before each capture for freshness. Provides indexed access via get(i) and __getitem__(i).
2. HTTP API (src/camera_mcp/main.py)
FastAPI application with three endpoints:
| Endpoint | Method | Description |
|---|---|---|
/capture |
GET | Capture from first camera (index 0) |
/capture/{cam_index} |
GET | Capture from a specific camera by index |
/camera |
GET | Info for all detected cameras |
/camera/{cam_index} |
GET | Info for a specific camera by index |
/health |
GET | Service health, location name(s), all camera states, uptime, last error |
All endpoints except /health require the header Authorization: Bearer <CAMERA_AUTH_TOKEN>.
3. MCP Server (src/camera_mcp/mcp_server.py)
Model Context Protocol server exposing two tools for Claude Code:
capture_image(camera_index, max_width)— calls/capture/{cam_index}(or/capturefor index 0), returns the JPEG as anImageobject.camera_indexis 0-based, defaults to 0.camera_status()— calls/health, returns formatted status string for all detected cameras, including the deployment's location.
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.
- 2mo ago First seen · 147 lines · 1,629 tokens per session scan B 75ec8c3241ef
mcp_camera AGENTS.md is an instructions file published in the GitHub repository bkosciow/mcp_camera (0 stars, last pushed 2mo ago), licensed MIT. It adds 1,629 tokens to every session, about $0.0065 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads mcp configuration). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
mcp_camera AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcp_camera AGENTS.mdbkosciow/mcp_camera | Instructions file | 0 | 2mo ago | MIT | B | 1,629 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |