dslens
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 | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| scan_componentsA | Lists every .tsx/.jsx file dslens will consider a component, under the given directory. |
| audit_tokensC | Flags hardcoded colors and raw pixel spacing in inline styles and styled-components templates, instead of design tokens. |
| audit_props_to_stateB | Flags useState(props.x) style initializers, the classic bug where a component's local state silently goes stale when its parent's prop changes. |
| audit_accessibilityC | Flags with no alt, with no accessible name, and icon-only clickable elements with no accessible name. |
| run_full_auditA | Runs every check, optionally screenshots each issue against a running Storybook instance, and writes a Markdown report. |
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 5 tools
Each tool maps to a distinct action+scope: one discovery tool (scan_components), three narrowly-named rule-specific auditors, and one orchestrator. run_full_audit intentionally subsumes the audit_* tools, but its description makes that relationship explicit, so misselection risk is low.
Names follow a clear verb_noun convention (scan_components, audit_tokens, audit_props_to_state, audit_accessibility) with a consistent audit_ prefix for the check family. run_full_audit deviates slightly with a verb+qualifier+noun shape, but remains readable and predictable.
Five tools is well-scoped for a component-auditing server: discovery, three discrete checks, and an aggregate runner. Every tool earns its place with no redundancy or filler.
The surface covers discovery, individual rule checks, and a report-generating full run, which is a complete workflow for this domain. Minor gaps: no tool to scope an audit to a single file, no machine-readable/JSON output option, and no way to list or configure which rules exist.