MCP server for Swiftcode - Automatic code generation tool for Swagger API and Vue components
Three tools with WRITE operations, but descriptions are mixed-language (Chinese/English), parameter descriptions lack specificity, and no output schemas are documented. All three tools are directly visible in src/index.ts with explicit registration. However, critical quality gaps prevent higher scores: descriptions are under 100 chars in some cases, parameter types are present but descriptions are vague (e.g., 'workspace dir' provides no context on format or constraints), and error handling is generic (McpError wrapping without actionable guidance). The bilingual description text creates ambiguity for English-speaking LLMs. No output schema documentation means agents cannot plan downstream operations. File write operations (WRITE risk) lack confirmation or dry-run patterns.
Generate TypeScript API client from Swagger/OpenAPI specification
使用 sfc 模板生成 vue 列表组件 / Generate vue sfc component page.Examples: For file only returns vue sfc pages, default file name: 'template.js'
下载转换 sfc / vue 列表的模板文件当前目录下 / Download the transform sfc template files
Mixed-language descriptions (Chinese/English) reduce clarity for English-speaking LLMs and complicate parsing intent. Tool descriptions must prioritize a single language.
Parameter descriptions are generic and lack constraints. 'workspace dir' does not specify format (absolute path? relative?), encoding, or validation rules. 'source' parameter has rambling description with examples ('//user/file.json') that LLMs may reuse literally rather than understanding the pattern.
No output schemas documented. Tools return text responses via CallToolResult but agents cannot introspect what fields (file paths, success status, metadata) are included. Forces agents to parse unstructured text, increasing hallucination risk.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 44 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 29 | - | v1 |
Destructive file-write operations (WRITE risk on all three tools) lack confirmation, dry-run, or idempotency guarantees. An LLM could accidentally overwrite user files without warning.
Error messages are non-actionable. 'Failed to generate API client' offers no recovery guidance. Should include: what went wrong, what the user can check, or which tools to call next (e.g., 'Verify source is a valid Swagger URL or absolute file path').
'dir' parameter description 'workspace dir' does not clarify: is it a required absolute path? Can it be relative? Must it already exist? No validation or format constraints stated.