web_dev

An agent for developing the MCP Tool Hub web interface, built as a Vue 3 single-page application. It covers the browser UI and its REST connection to the backend.

In plain words
What is it for?
Use it to build or change Vue pages, API requests, responsive components, build settings, logs, and plugin-management screens.
Why use it?
It provides a consistent guide for connecting the web interface to server operations such as listing, configuring, enabling, and disabling plugins.

Agent

Install

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.

agentmods
npx agentmods add agents/ljzloser/mcp_tools/web_dev
Clone the repo
git clone --depth 1 https://github.com/ljzloser/mcp_tools
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,287 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2d ago against content hash 3fdaa41638e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

Origin

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.

.github/agents/web_dev.agent.md · 159 lines

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 客户端,对接后端 API
  • index.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.vueweb/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>

Read the full file on GitHub · 159 lines

Changes

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.

  1. 2d ago First seen · 159 lines · 33 tokens per session scan A 3fdaa41638e6

Subscribe to this mod's changes

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.

Related

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…

civitai/civitai · 80 tokens

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.

jeremylongshore/tons-of-skills-marketplace · 46 tokens

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.

AIDotNet/OpenCowork · 41 tokens

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.

irahardianto/awesome-agv · 41 tokens

i18n

你是一个精通 Vue3 国际化架构的前端专家(专注于 Vue3 + TypeScript + Composition API)。同时,你也是一位专业的 UI/UX 翻译专家,擅长将中文界面语言翻译为地道、简洁的英文。.

zhimaAi/chatwiki · 7 tokens

frontend-developer

Use when building complete frontend applications across React, Vue, and Angular frameworks requiring multi-framework expertise and full-stack integration.

1024XEngineer/bytemind · 27 tokens