lsth-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LSTH_STORAGE | No | Storage backend. Default is local disk (data/ folder). Set to 'minio' to enable MinIO storage. | local |
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 | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| file_listD | Liệt kê file trong vùng dữ liệu cho phép. |
| file_searchA | Tìm file theo tên/đường dẫn, không phân biệt hoa thường và dấu tiếng Việt. root: tên vùng (raw, work...), URI s3://lsth-raw/thư-mục/ hoặc thư mục local. Mọi từ trong query phải có trong đường dẫn, ví dụ 'S2749189 BOM' hoặc 'cong viec'. Chỉ tìm metadata, không tìm nội dung file. Tối đa scan_limit file được xét; truncated=true nghĩa là kết quả chưa đầy đủ. |
| file_treeA | Tìm trong cây thư mục MinIO/S3 hoặc local; trả tree JSON và tree_text dễ đọc. root: tên vùng, URI s3://lsth-raw/thư-mục/ hoặc thư mục local. query: mã hàng, tên file/thư mục hoặc đuôi file; khớp mọi từ, không phân biệt dấu tiếng Việt và hoa thường. Ví dụ query='S2749189 BOM', root='s3://lsth-raw/'. Giữ nhánh cha của file khớp; bỏ query để hiện toàn cây. Không gồm thư mục rỗng. limit giới hạn số file; max_depth tính từ root, thư mục sâu hơn có collapsed=true. matched_count là số file khớp trong phần đã quét; scan_truncated=true nghĩa là chưa quét hết. |
| file_readB | Đọc bất kỳ file nào được hỗ trợ: xlsx, pdf, csv, json, docx, txt. |
| excel_sheetsA | Liệt kê sheet của một file Excel trước khi quyết định đọc sheet nào. |
| file_writeC | Ghi file chữ vào data/work hoặc data/out. Đi qua cổng quyền ghi. |
| excel_writeC | Xuất bảng ra Excel. Mặc định đóng dấu 'BẢN NHÁP DO MÁY DỰNG' ở dòng đầu. |
| json_writeD | Ghi JSON — định dạng trao đổi giữa các server theo hợp đồng F2. |
| csv_writeB | Xuất CSV (utf-8-sig, mở bằng Excel không vỡ dấu tiếng Việt). |
| identity_resolveD | F3 — đổi mã giữa các hệ: LS-style ↔ style khách ↔ UPC ↔ mã vật tư. |
| template_getB | F4 — lấy file khuôn đã duyệt cho một loại tài liệu. |
| techpack_parseC | S1 — bóc tech pack PDF ra thực thể Style. |
| bom_extractC | S1 — bóc BOM xlsx ra BomLine[] theo hợp đồng dữ liệu F2. |
| bom_diffA | S1 — so tech pack với BOM, báo mâu thuẫn chứ không tự chọn (nguyên tắc 3). |
| program_statusD | Bức tranh 17 thành phần: cái nào đã dựng, cái nào đang chờ lấp khoảng trống. |
| audit_tailC | Chương 11 — xem lệnh gọi gần nhất: ai gọi, lúc nào, đọc file nào, kết quả sao. |
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 16 tools
file_search and file_tree both accept queries and return file matches, and file_list overlaps with simple enumeration. The descriptions clarify flat list versus tree output, but an agent may still hesitate when choosing among the three discovery tools.
Most tools follow a predictable resource-first snake_case pattern like file_read, csv_write, identity_resolve, and bom_extract. A few names such as excel_sheets, program_status, and audit_tail are noun phrases rather than command-style, but the overall convention is readable and consistent.
16 tools sits in the borderline-heavy range, and the three file-discovery tools plus three format-specific writers add some redundancy. The domain-specific tools for identity, templates, techpack/BOM processing, status, and audit appear purposeful, so the count is not excessive for the intended workflow.
File discovery, read/write, format export, parsing, and audit coverage are present. Obvious gaps remain: no file delete/move/update, no template listing, and truncated file searches have no continuation mechanism, so agents may hit dead ends in larger scans.