context-ops-mcp
Gives your AI coding agent a bounded map of an unfamiliar TypeScript SaaS repo: where the code lives, what's risky to touch, and where the money / auth / user flows are. Provides eight MCP tools for orientation, task focus, risk assessment, and SaaS-specific observations without AST or type checking.
README
<div align="center">
<img src="https://capsule-render.vercel.app/api?type=waving&color=0:0a0a0a,50:064e3b,100:10b981&height=160§ion=header&text=ContextOps%20MCP&fontSize=48&fontColor=ffffff&fontAlignY=40&desc=Bounded%20repo%20map%20for%20AI%20coding%20agents&descAlignY=62&descColor=6ee7b7&animation=fadeIn" width="100%"/>
<br/>
</div>
context-ops-mcp
Gives your AI coding agent a bounded map of an unfamiliar TypeScript SaaS repo: where the code lives, what's risky to touch, and where the money / auth / user flows are. Without burning your context window on full-file reads.
Built for the agency, fractional-CTO, or consultancy dev lead who just inherited a TypeScript SaaS codebase and needs to go from zero to a credible map in one afternoon, inside Cursor or Claude Code.
What it does
Eight MCP tools your agent calls locally. All heuristic. Regex over file heads, filename rules, and one whole-file streaming pass in the relevance ranker. No AST. No type checker. No call graph.
- Orientation: structure, top-of-file symbol hints, entry points, config files
- Task focus: ranked candidate files for a task string, plus a step-ordered plan
- Risk: files that often deserve extra care before edits
- SaaS smells: observation-only flags for billing, auth, security patterns, debt markers, and risky deps
MCP tools exposed
| Tool | What it returns |
|---|---|
get_project_structure |
Sorted POSIX paths of directories and files (skips node_modules, .git, dist, .next, .turbo, build, out, coverage, .svelte-kit, .vercel, .cache) |
get_semantic_summary |
First 50 lines of every .ts and .json file: detected exports, key functions, JSON top-level keys |
get_entry_points |
.ts files that look like bootstrap or route registration (filenames, folder hints, framework imports) |
get_relevant_files_for_task |
Up to 10 .ts files ranked against a task string (path, exports, key functions, plus a whole-file keyword pass) |
get_execution_plan_for_task |
Step-ordered list: inspect entries first, then a modify candidate, then supporting reads, plus an avoid list |
get_risky_files |
.ts files matching risky path segments, process.env, DB/auth imports, or startup patterns |
get_likely_config_files |
Manifests, tsconfig, .env, build/CI/tooling configs (filename pattern match, not content validation) |
get_saas_smells |
Observation-only scan (up to 500 lines per code file): billing keywords, auth imports, security regex hits, TODO/FIXME/HACK/XXX, any/@ts-ignore, risky deps from package.json. No scores. No severity ranking. No hour estimates. |
What it will not claim
- Not an audit, diagnosis, or analysis. The smell tool returns presence checks, not verdicts.
- No /100 scores. No hour estimates on remediation.
- No UI-layer claims. This reads code structure, not UX or conversion.
- No AST, type-checker, or call-graph promises.
- A determined engineer rebuilds the orientation core in an afternoon with
grepandtree. The differentiator is MCP wiring, task-string ranking, and prose-narrated read order, not capability you cannot have.
Stack
TypeScript · MCP SDK · Node.js · stdio transport
Run locally
npm install
npm run build
npm run start
Wire it into Cursor or Claude Code as a local MCP server (stdio). No API keys required.
Built by
AboJad, Full Stack AI Engineer, Marrakesh
<div align="center"> <img src="https://capsule-render.vercel.app/api?type=waving&color=0:0a0a0a,50:064e3b,100:10b981&height=100§ion=footer&animation=fadeIn" width="100%"/> </div>
Secrets & API keys
Standing rule: one named API key per project per environment, living in exactly one location, never copied between projects. Give each environment its own distinctly named key (e.g. contextops-dev, contextops-prod) so rotating means replacing a single copy with none left to go stale. The recurring Anthropic key "exposures" across these repos were one key hand-copied between consumers, not a leak.
- Local secrets live only in
.env.local/.env(gitignored), never in a committed file. - Deployed secrets live only in the host env store (Vercel / Railway / etc.).
- A pre-commit secrets scan (
scripts/secrets_scan.py) blocks accidental commits; install it once per clone withpowershell -ExecutionPolicy Bypass -File scripts/install_hooks.ps1.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。