Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/ohah/electron-mcp-server/sub-agent-mcpgit clone --depth 1 https://github.com/ohah/electron-mcp-serverWrote 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/rules/ohah/electron-mcp-server/sub-agent-mcp)<a href="https://agentmods.dev/rules/ohah/electron-mcp-server/sub-agent-mcp"><img src="https://agentmods.dev/badge/rules/ohah/electron-mcp-server/sub-agent-mcp.svg" alt="Measured on agentmods" 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 | $0.00036 | $0.00882 |
| Opus 5 | $0.00018 | $0.00441 |
| Sonnet 5 | $0.00007 | $0.00176 |
| Haiku 4.5 | $0.00004 | $0.00088 |
Grade A, and why
sub-agent-mcp 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.
What it actually says
Electron MCP 서버 개발 (MCP Server Development)
이 룰은 Electron MCP 서버 코드를 작성·수정할 때 적용한다.
0. 레퍼런스 저장소 (Reference repositories)
구현·설계 참고용 코드는 다음 4개 저장소를 사용한다.
-
halilural/electron-mcp-server https://github.com/halilural/electron-mcp-server Electron + MCP 서버 결합, 이슈·이슈 트래킹 참고.
-
microsoft/playwright-mcp https://github.com/microsoft/playwright-mcp MCP 서버 구조, 트랜스포트(stdio/SSE), 도구 등록·스키마, 클라이언트 연동.
-
ChromeDevTools/chrome-devtools-mcp https://github.com/ChromeDevTools/chrome-devtools-mcp MCP 서버 설정·도구 구성, Cursor/Claude 등 클라이언트 설정.
-
hypothesi/mcp-server-tauri https://github.com/hypothesi/mcp-server-tauri MCP 서버 + 데스크탑 플러그인 구조(Tauri v2), UI 자동화·IPC 모니터링·도구 설계 참고.
1. MCP 핵심 개념
- Tools: LLM이 호출할 수 있는 함수 (계산, 부수 효과, 네트워크 호출).
- Resources: 클라이언트가 읽는 읽기 전용 데이터.
- Prompts: 재사용 가능한 프롬프트 템플릿.
이 프로젝트에서는 우선 Tools 위주로 구현한다.
MCP 구현 스펙: 도구의 동작·스펙은 Chrome DevTools MCP(ChromeDevTools/chrome-devtools-mcp)와 완전 동일하게 한다. 도구 이름, 파라미터, 동작 방식(예: 상시 수집 vs 호출 시점 수집), 반환 형식을 레퍼런스에 맞춘다.
2. 트랜스포트
- stdio: Cursor, Claude Desktop 등이 프로세스를 spawn하고 stdin/stdout으로 JSON-RPC 통신. stdout에 로그를 쓰지 않는다 (메시지 손상).
- HTTP/SSE: 원격·헤드리스 환경에서는 Streamable HTTP 또는 SSE 트랜스포트 고려.
로그는 console.error(stderr) 또는 파일로만 출력한다.
3. 코드 품질
- 포맷·린트: oxlint / oxfmt 사용.
.oxlintrc.json,.oxfmtrc.json,oxlint.json준수. - 커밋:
.cursor/rules/commit-rules.mdc,.cursor/commands/commit.md의 메시지 형식과 pre-commit(format, lint)을 따른다. - PR·리뷰:
.cursor/commands/pr.md,review.md,review-apply.md및init-pr.md의 ohah 계정·SSH 설정을 따른다.
4. 체크리스트 (개발 시)
- Chrome DevTools MCP와 동일 스펙: 해당 도구가 chrome-devtools-mcp와 도구 이름·파라미터·동작·반환 형식이 일치하는가?
- 레퍼런스 저장소(halilural/electron-mcp-server, playwright-mcp, chrome-devtools-mcp, hypothesi/mcp-server-tauri)에서 필요한 패턴을 참고했는가?
- stdio 사용 시 stdout에 로그를 남기지 않았는가?
-
mise exec -- bun run format,mise exec -- bun run lint를 실행했는가? - 커밋 메시지가 type(scope): subject 형식인가?
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.
- 3d ago First seen · 62 lines · 36 tokens per session scan A acbb4414b21c
sub-agent-mcp is a cursor rule published in the GitHub repository ohah/electron-mcp-server (4 stars, last pushed 5mo ago), licensed MIT. It adds 36 tokens to every session and 882 once invoked, about $0.0002 per session on Opus 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.
Other cursor rules, from other repositories
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.
prefer-direct-imports-over-module-mocks
Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.
control-plane-descriptors
Control plane descriptor and instance implementation patterns.
family-instance-domain-actions
Family instance domain action implementation patterns.