About Frontagent
Frontagent is an MCP server published by ceilf6 in the Data category: frontend AI coding agent platform with CLI, VS Code extension, desktop app, MCP server, RAG planning, Skills, SDD guardrails, browser automation, and LoRA planner models | 面向前端工程的 AI Agent 平台,支持 CLI、VS Code 插件、桌面端、MCP 服务、RAG、Skills、SDD、浏览器自动化与 LoRA 规划模型. Conduid read 35 tools from its source: apply_patch, click, close_browser, create_file, evaluate, filesense_check and 29 more. It is published to npm as frontagent and starts with npx.
The repository has 125 stars and 20 forks, is licensed MIT, and its last commit was on 2 Dec 2026. The latest release is v2.2.0 (30 Jul 2026): FrontAgent v2.2.0 FrontAgent v2.2.0 is a minor release after v2.1.1. It follows v2.1.1 (9 Jun 2026), and the 5 most recent releases go back to v1.0.9 (20 May 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include controllable, feedback, frontend, grounded, multi-phases and rag.
Install
claude mcp add frontagent -- npx -y frontagentnpx -y frontagentgit clone https://github.com/ceilf6/FrontAgentTools (35)
apply_patch应用替换、插入、删除补丁。TS/JS/JSON 完整结果先做解析器校验;原文件合法而结果非法时拒绝写盘。原文件已有语法错误时允许部分修复;dryRun 仅预览,success 仅表示投影成功,语法结果见 validation.syntaxChecked/syntaxValid;测试 fixture 可显式设置 skipSyntaxValidation。| Parameter | Type | Description |
|---|---|---|
| dryRun | boolean | 是否仅预览不实际修改,默认 false |
| patches * | array | 补丁列表。所有行号均相对原始文件内容(应用任何补丁之前),各补丁的行范围不得重叠 |
| path * | string | 相对于项目根目录的文件路径 |
| skipSyntaxValidation | boolean | 跳过语法校验,用于故意包含无效语法的测试 fixture;默认 false |
click点击页面上的元素| Parameter | Type | Description |
|---|---|---|
| selector * | string | CSS 选择器 |
close_browser关闭浏览器create_file创建新文件并自动创建目录。TS/JS/JSON 内容先做解析器校验,失败则不写盘;测试 fixture 可显式设置 skipSyntaxValidation。| Parameter | Type | Description |
|---|---|---|
| content * | string | 文件内容 |
| overwrite | boolean | 是否覆盖已存在的文件,默认 false |
| path * | string | 相对于项目根目录的文件路径 |
| skipSyntaxValidation | boolean | 跳过语法校验,用于故意包含无效语法的测试 fixture;默认 false |
evaluate在页面中执行 JavaScript 代码| Parameter | Type | Description |
|---|---|---|
| script * | string | JavaScript 代码 |
filesense_check检查索引覆盖率和新鲜度。报告缺失索引、过期索引、无效索引等问题。用于验证 Filesense 索引是否完整且最新。| Parameter | Type | Description |
|---|---|---|
| path | string | 要检查的目录路径(相对于项目根目录),默认为项目根目录 |
filesense_init初始化 Filesense 目录索引。在项目根目录创建 .filesrc.json 配置、.filesignore 忽略规则、JSON Schema 文件,并执行首次索引同步。适用于首次在项目中启用 Filesense 时调用。| Parameter | Type | Description |
|---|---|---|
| path | string | 要初始化的目录路径(相对于项目根目录),默认为项目根目录 |
filesense_navigate首选的 Agent 目录导航工具:按需、只读/预算化扫描当前仓库,返回 summary、candidates、factsDelta、warnings 和 scanned 元信息。用于结构理解、入口定位、创建/重构前探路;避免为普通导航触发全仓 sync_and_summarize。| Parameter | Type | Description |
|---|---|---|
| depth | number | 最大递归深度,默认 2 |
| intent | string | 导航意图,用于候选路径排序和摘要聚焦 |
| maxBytes | number | 返回结果最大字节预算,默认不强制 |
| maxEntries | number | 最大条目预算,默认 300 |
| output | string | 输出详细程度,默认 summary |
| paths | array | 要扫描的相对路径列表,默认项目根目录 |
| timeoutMs | number | 最大扫描耗时毫秒,默认 3000 |
| writeMode | string | 写入模式,默认 none。navigate 是只读工具,none/cache 均不写盘。 |
filesense_query查询目录的索引和语义摘要。返回 FILES.json 中的文件列表(含哈希、大小、类型)和 FILES.notes.json 中的目录用途、Agent 提示等信息。用于快速了解目录内容而无需逐个读取文件。| Parameter | Type | Description |
|---|---|---|
| path * | string | 要查询的目录路径(相对于项目根目录) |
filesense_summarize为目录生成语义摘要。基于目录内容推断目录用途、Agent 提示、编码约定和关键入口点,写入 FILES.notes.json。帮助 Agent 快速理解目录结构和导航策略。| Parameter | Type | Description |
|---|---|---|
| force | boolean | 是否覆盖已有的人工编写的 notes 字段,默认 false(保留人工编写内容) |
| path | string | 要生成摘要的目录路径(相对于项目根目录),默认为项目根目录 |
filesense_sync同步目录索引。递归扫描目录树,更新每个目录的 FILES.json 索引文件。仅在文件发生变化时重新计算哈希,增量更新高效。用于在文件操作后保持索引最新。| Parameter | Type | Description |
|---|---|---|
| depth | number | 最大递归深度。用于限制大仓库扫描范围。 |
| full | boolean | 是否强制全量重新计算所有文件哈希(忽略 mtime/size 缓存),默认 false |
| maxEntries | number | 最多扫描目录数量,超出后截断。 |
| path | string | 要同步的目录路径(相对于项目根目录),默认为项目根目录 |
| timeoutMs | number | 最大扫描耗时毫秒,超出后截断。 |
filesense_sync_and_summarize持久化生成/刷新 Filesense 索引和语义摘要(sync + summarize)。这是较重的维护操作;普通规划、定位、结构理解应优先使用只读轻量的 filesense_navigate。| Parameter | Type | Description |
|---|---|---|
| full | boolean | 是否强制全量重新计算哈希,默认 false |
| path | string | 要处理的目录路径(相对于项目根目录),默认为项目根目录 |
frontagent_init_sddcreates an SDD template. Existing files are not overwritten unless `force=true`.| Parameter | Type | Description |
|---|---|---|
| force | boolean | Overwrite an existing SDD file. Defaults to false. |
| output | string | Project-relative output path. Defaults to sdd.yaml. |
frontagent_list_skillslists visible content skills.frontagent_plan_taskgenerates a FrontAgent execution plan without executing tools or writing files.frontagent_run_taskruns a full FrontAgent task. Inputs include `task`, `type`, `files`, `url`, `sddPath`, and `securityMode`.frontagent_statusreturns project root, SDD status, visible skills, LLM backend status, RAG status, and run-log directory.frontagent_validate_sddvalidates the project SDD file.| Parameter | Type | Description |
|---|---|---|
| sddPath | string | Project-relative SDD path. Defaults to sdd.yaml. |
get_accessibility_tree获取当前页面的 Accessibility Tree,用于语义化理解页面结构get_ast获取 TypeScript/JavaScript 文件的 AST 结构分析,包括导入、导出、函数、组件等信息。| Parameter | Type | Description |
|---|---|---|
| path * | string | 相对于项目根目录的文件路径(支持 .ts, .tsx, .js, .jsx) |
get_interactive_elements获取页面上所有可交互元素| Parameter | Type | Description |
|---|---|---|
| filter | string | 过滤类型,默认 all |
get_page_structure获取当前页面的结构化 DOM 信息| Parameter | Type | Description |
|---|---|---|
| selector | string | 可选,限定范围的 CSS 选择器 |
get_snapshots获取指定文件的所有快照| Parameter | Type | Description |
|---|---|---|
| path * | string | 文件路径 |
list_directory列出目录内容。可以递归列出子目录。| Parameter | Type | Description |
|---|---|---|
| includeHidden | boolean | 是否包含隐藏文件(以 . 开头),默认 false |
| maxDepth | number | 递归时的最大深度,默认 3,必须是正整数,上限 10 |
| maxEntries | number | 返回条目数预算,默认 2000,必须是正整数,上限 2000;超出时 truncated 为 true 并返回 omittedEntries |
| path * | string | 相对于项目根目录的目录路径 |
| recursive | boolean | 是否递归列出子目录,默认 false |
navigate导航到指定 URL| Parameter | Type | Description |
|---|---|---|
| url * | string | 要导航到的 URL |
rag_queryQuery the full repository knowledge base using BM25 + semantic hybrid search with metadata filters.| Parameter | Type | Description |
|---|---|---|
| filters | object | Optional metadata filters applied after keyword and semantic candidate retrieval |
| maxResults | number | Maximum number of matches to return |
| query * | string | Natural-language query for the knowledge base |
| refresh | boolean | Force a repository sync and re-index before querying |
read_file读取指定文件的内容。支持指定行范围。| Parameter | Type | Description |
|---|---|---|
| encoding | string | 文件编码,默认 utf-8 |
| endLine | number | 结束行号(1-based,包含),可选 |
| path * | string | 相对于项目根目录的文件路径 |
| startLine | number | 起始行号(1-based),可选 |
rollback回滚到指定快照| Parameter | Type | Description |
|---|---|---|
| snapshotId * | string | 快照 ID |
run_command执行终端命令(需要用户批准)| Parameter | Type | Description |
|---|---|---|
| command * | string | 要执行的命令 |
| timeout | number | 超时时间(毫秒,默认 60000) |
| workingDirectory | string | 工作目录(可选,默认为项目根目录) |
screenshot获取页面截图| Parameter | Type | Description |
|---|---|---|
| fullPage | boolean | 是否截取整个页面,默认 false |
| selector | string | 可选,只截取特定元素 |
scroll滚动页面| Parameter | Type | Description |
|---|---|---|
| amount | number | 滚动距离(像素),默认 500 |
| direction * | string | 滚动方向 |
search_code在代码库中搜索文本或正则表达式。返回匹配的行及其上下文。| Parameter | Type | Description |
|---|---|---|
| contextLines | number | 每个匹配显示的上下文行数,默认 2 |
| filePattern | string | 限定搜索哪些文件的 glob(如 "src/features/checkout/**" 或 "**/*.test.ts"),默认搜索常见代码文件。目录范围与文件类型都由它控制,不要写进 pattern。 |
| globOnly | boolean | 仅执行 glob 文件发现,不搜索文件内容。用于写入前先收集候选路径。 |
| maxResults | number | 最大返回结果数,默认 100 |
| pattern | string | 搜索文件内容用的正则(优先于 query)。只接受正则,不接受 glob——要限定搜索的目录或文件类型请用 filePattern,把 "src/xxx/**" 写在这里是无效的。 |
| query | string | 要搜索的文本(会进行精确匹配) |
type在输入框中输入文本| Parameter | Type | Description |
|---|---|---|
| selector * | string | CSS 选择器 |
| text * | string | 要输入的文本 |
wait_for_selector等待元素出现| Parameter | Type | Description |
|---|---|---|
| selector * | string | CSS 选择器 |
| timeout | number | 超时时间(毫秒),默认 30000 |
web_fetch抓取指定 URL 的网页内容并返回清洗后的可读文本(HTML→纯文本)。用于查阅库/框架文档、API 参考、错误信息等外部资料。内置 SSRF 防护:拒绝私网/环回/链路本地/云元数据地址。| Parameter | Type | Description |
|---|---|---|
| allowed_domains | array | 可选域名白名单,仅 web_fetch 适用,可省略。采用精确主机名匹配(不含 scheme/端口):提供后仅允许抓取主机名恰好出现在列表中的 URL,子域需逐条列出(如 example.com 不会自动放行 www.example.com)。空数组视为不启用白名单(而非全部拒绝)。用于最小权限场景,限制 Agent 只能访问受信任的文档站点。 |
| blocked_domains | array | 可选域名黑名单,仅 web_fetch 适用,可省略。采用精确主机名匹配(不含 scheme/端口):提供后拒绝抓取主机名恰好出现在列表中的 URL,子域需逐条列出(如 example.com 不会自动拦截 www.example.com)。优先级高于 allowed_domains;空数组视为不启用黑名单。 |
| format | string | 返回格式:text(默认,HTML 转纯文本)或 html(原始 HTML) |
| maxBytes | number | 响应体最大字节数,超出后截断,默认 2000000,硬上限 5000000 |
| timeoutMs | number | 请求超时时间(毫秒),默认 15000,硬上限 60000 |
| url * | string | 要抓取的 URL(仅支持 http/https) |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 6.7K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml.
- !No dynamic code executionScanned 267 source files and found 2 calls to eval or shell execution, in packages/mcp-shell/src/index.ts:152 and packages/runtime-node/src/hooks.ts:122. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiopackages/mcp-file/src/server.ts:10
- Starts other programs
- 6 callsmodels/frontagent-planner/train_mlx.py:181, packages/core/src/sub-agents/process-isolated-code-quality-subagent.ts:121, packages/mcp-shell/src/index.ts:147
- Outbound network calls
- 9 callsapps/cli/src/commands/rag.ts:139, packages/mcp-memory/src/rag/embedding.ts:78, packages/mcp-memory/src/rag/providers.ts:231
- Writes or deletes files
- 6 callsmodels/frontagent-planner/data/generate_data.py:565, models/frontagent-planner/eval.py:553, models/frontagent-planner/train_mlx.py:127
- Lockfile
- pnpm-lock.yaml
Pattern matches on the source text of 267 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 6.7K words, fetched a month ago. The original in the repository is authoritative.
Read full README