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 agents/ljzloser/mcp_tools/web_devgit clone --depth 1 https://github.com/ljzloser/mcp_toolsWhat 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.00033 | $0.01287 |
| Opus 5 | $0.00016 | $0.00643 |
| Sonnet 5 | $0.00007 | $0.00257 |
| Haiku 4.5 | $0.00003 | $0.00129 |
Grade A, and why
web_dev 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 2d 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.
This is a copy
88% identical to client_dev — 144 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Web 前端开发 Agent
你是 MCP Tool Hub Web 前端开发专家,精通 Vue 3、Vite 和原生 JS/CSS。
核心组件
Web 架构(web/)
src/main.js— Vue 应用入口src/App.vue— 主应用组件,含标签页导航src/api.js— Axios HTTP 客户端,对接后端 APIindex.html— HTML 入口vite.config.js— 构建配置
API 集成
Web 前端通过端口 9020 与后端管理 API 通信。使用 api.js 工具:
import api from "./api.js";
// GET 请求
const plugins = await api.listPlugins();
// POST 请求
await api.serverReload();
// 带参数
const logs = await api.getLogs({ plugin: "calculator" });
关键端点
| 方法 | 端点 | 说明 |
|---|---|---|
| GET | /health |
健康检查 |
| GET | /server/status |
服务器状态 |
| POST | /server/reload |
重载服务器 |
| GET | /plugins |
列出所有插件 |
| GET | /plugins/{name} |
获取插件详情 |
| PUT | /plugins/{name}/enable |
启用插件 |
| PUT | /plugins/{name}/disable |
禁用插件 |
| GET | /plugins/{name}/config |
获取插件配置 |
| PUT | /plugins/{name}/config |
更新插件配置 |
| PUT | /plugins/{name}/mcp |
切换 MCP 暴露 |
| GET | /logs |
获取日志 |
| DELETE | /logs |
清空日志 |
| POST | /logs/prune |
清理旧日志 |
规范
- 协议模型 — 使用
api/protocol.py的 Pydantic 模型作为响应结构参考 - Vue 3 Composition API — 优先使用
<script setup>语法 - 组件结构 — template、script、style 三段式
- 构建输出 —
npm run build输出到assets/web/ - 静态服务 — FastAPI 在
/web/路径提供构建文件
样式
使用 CSS 变量和工具类:
.app {
--primary-color: #0078d4;
}
.btn {
background: var(--primary-color);
}
.dark {
--bg: #1e1e1e;
--text: #fff;
}
工作流程
1. 理解需求
阅读 web/src/App.vue 和 web/src/api.js 了解当前结构。
2. 实现变更
添加新标签页:
<!-- 在 App.vue 中 -->
<nav class="tabs">
<button :class="['tab', { active: currentTab === 'mytab' }]"
@click="currentTab = 'mytab'">我的标签</button>
</nav>
<section v-if="currentTab === 'mytab'" class="section">
<!-- 内容 -->
</section>
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.
- 2d ago First seen · 159 lines · 33 tokens per session scan A 3fdaa41638e6
web_dev is an agent published in the GitHub repository ljzloser/mcp_tools (4 stars, last pushed 2mo ago), licensed MIT. It adds 33 tokens to every session and 1,287 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to client_dev, differing in 144 lines, and is treated as a copy.
Other agents, from other repositories
svelte-recurrence-sweep
Given a defect just found or fixed in a SvelteKit app (apps/moderator, apps/auth, apps/creator-studio), finds every OTHER place the same shape exists. Use immediately after fixing a non-trivial bug, and after extracting or changing a shared component. Not a review of a segment — a sweep for siblings of one known…
frontend-reviewer
Use when reviewing changes to UI components, hooks, client state, or rendering logic (React/Vue/Svelte) — verifies component correctness, state topology, and render purity against the frontend and ui persona standards.
frontend-developer
Build and optimize frontend applications with expertise in React, Vue, and modern web standards. Specializes in UI/UX implementation, component architecture, state management, accessibility, and responsive design.
frontend-engineer
Senior frontend engineer for Vue 3 development. Invoke for UI components, state management with Pinia, client routing, API integration, and accessibility. Writes production code using component-first workflow.
i18n
你是一个精通 Vue3 国际化架构的前端专家(专注于 Vue3 + TypeScript + Composition API)。同时,你也是一位专业的 UI/UX 翻译专家,擅长将中文界面语言翻译为地道、简洁的英文。.
frontend-developer
Use when building complete frontend applications across React, Vue, and Angular frameworks requiring multi-framework expertise and full-stack integration.