Skip to main content
Glama
mangogogogoman

mcp-auto-build

前端项目打包

buildFrontend

Package frontend projects (Vue, React) via npm into a dated zip with SVN revision. Supports standalone builds or CI/CD steps.

Instructions

对前端项目进行npm打包,支持Vue/React等框架。打包结果为带有日期和SVN版本号的zip压缩包。

使用场景:

  • 单独对前端项目进行打包

  • 在CI/CD流程中分步执行

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
revisionYesSVN版本号
projectNameYes项目名称
projectRootYes本地工程的根路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the output format (zip with date and SVN version) but does not disclose side effects such as whether it runs npm install, modifies the project directory, or how failures are handled. Some context is provided, but significant behavioral aspects remain unexplained.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, with the main action and output format stated upfront. The usage scenarios are brief and add context without redundancy. There is no unnecessary elaboration. It is well-structured and front-loaded, though it could arguably be even more compact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 3 required parameters, no output schema, and no annotations, the description provides a reasonable overview but lacks some details. It does not explain the output location or how the zip is returned, nor any prerequisites (e.g., Node.js, npm install). The usage scenarios help, but an agent might still need to infer certain operational aspects.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so each parameter already has a clear description in the schema. The tool description does not add any additional parameter-specific details beyond what the schema provides. It only references the revision indirectly in the output format, which does not enhance parameter understanding. Baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action: npm packaging for frontend projects, with support for Vue/React. It specifies the output format (zip with date and SVN version). It distinguishes from buildBackend by the word 'frontend', but does not explicitly differentiate from the generic buildPackage sibling, so it falls short of a full 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description lists two usage scenarios: standalone frontend packaging and step-by-step execution in CI/CD. This gives clear context on when to use it, but it does not mention any exclusions or alternatives (e.g., when to use buildPackage instead). No explicit when-not-to-use guidance, so not a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.