ljs-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ljs_searchA | 搜索 LJS 的 Vue3 插件。LJS 是作者自研的 7 个包,封装了表格、树形数据、时间轴、大屏数字、3D 轮播、大数据量下拉与常用工具函数。这些包的 API 命名与社区通用方案不同(例如格式化为 "万/亿"用的是 longNumText 而非自写逻辑),无法从通用知识推断,猜错参数会导致返工。 当方案涉及以下需求时,先搜索确认有无现成实现,避免重复造轮子:
搜索成本很低:未命中会明确返回「未找到」并列出全部可用插件,不会让你误判。返回结果含匹配度与推荐理由,命中后用 ljs_read 拿完整用法、ljs_api 查准确签名。 |
| ljs_apiA | 查询某个 LJS 插件的 TypeScript 签名。写代码前用它确认参数名与类型,避免靠印象猜错——这些包的参数多为解构对象(如 handleListTree 收 { data, id, parentId, children }),凭记忆写极易出错。不传 api 参数则返回该包全部签名(ljs-tools 约 16K 字符,慎用)。 |
| ljs_readA | 读取某个 LJS 插件的完整使用指南(何时用/不用、安装、可复制示例、典型错误对照、已知坑)。确定要用某个包后调它,一次拿到全部用法。特别注意「已知坑」章节:里面是作者在生产中踩过的坑(如某些组件 data 为空时跳过列宽计算、导出有 1s 内部延时),跳过会写出能编译但运行不对的代码。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
Each tool occupies a different stage of a lookup workflow: ljs_search finds candidate packages, ljs_read delivers the full guide, and ljs_api returns TypeScript signatures. ljs_read and ljs_api both retrieve per-package documentation, so an agent could occasionally hesitate between them, but the descriptions explicitly state when to use which.
All three share the same ljs_ prefix and snake_case style, giving a predictable family. The only deviation is that ljs_search and ljs_read are verbs while ljs_api is a noun, a minor inconsistency that remains readable.
Three tools is lean but each maps to a distinct step (discover, understand, verify signatures) for a documentation-lookup server. Nothing is redundant and nothing trivial inflates the set.
The discover→read→verify loop is fully covered, and a failed search returns the full package list, mitigating the absence of an explicit list tool. Minor gaps like package version/changelog lookup or installation verification exist but are workable within ljs_read.