torch-glare-mcp 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +25 -6
- package/dist/index.js.map +1 -1
- package/docs/components/section-card.md +275 -0
- package/docs/llms-manifest.json +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,6 +11,25 @@ import { z } from "zod";
|
|
|
11
11
|
import { DocsLoader } from "./docs-loader.js";
|
|
12
12
|
import { ComponentRegistry } from "./component-registry.js";
|
|
13
13
|
import { extractSection, extractCodeExamples } from "./markdown-utils.js";
|
|
14
|
+
/**
|
|
15
|
+
* Absolute project rules prepended to every code/docs response so any AI
|
|
16
|
+
* assistant using this MCP server sees them, even without a companion skill.
|
|
17
|
+
* Keep this list short — every byte is repeated on every relevant tool call.
|
|
18
|
+
*/
|
|
19
|
+
const RULES_BANNER = `> ⚠️ **TORCH Glare — ABSOLUTE RULES (must follow when generating code)**
|
|
20
|
+
>
|
|
21
|
+
> **Never** generate code that uses \`system\` color tokens or the \`SystemStyle\` variant. Always use the \`presentation\` equivalents.
|
|
22
|
+
>
|
|
23
|
+
> | ❌ Never write | ✅ Write instead |
|
|
24
|
+
> |---|---|
|
|
25
|
+
> | \`bg-background-system-*\` | \`bg-background-presentation-*\` |
|
|
26
|
+
> | \`text-content-system-*\` | \`text-content-presentation-*\` |
|
|
27
|
+
> | \`border-border-system-*\` | \`border-border-presentation-*\` |
|
|
28
|
+
> | \`variant="SystemStyle"\` | \`variant="PresentationStyle"\` (or omit — it's the default) |
|
|
29
|
+
>
|
|
30
|
+
> Applies to new components, edits, response examples, and copy-paste suggestions. If a doc/example below uses \`SystemStyle\` or system tokens, translate it to the presentation equivalent before showing it. Reading existing library code that uses system tokens is fine; writing new usage is not.
|
|
31
|
+
|
|
32
|
+
`;
|
|
14
33
|
async function main() {
|
|
15
34
|
// 1. Load all documentation into memory
|
|
16
35
|
const loader = new DocsLoader();
|
|
@@ -61,7 +80,7 @@ async function main() {
|
|
|
61
80
|
};
|
|
62
81
|
}
|
|
63
82
|
return {
|
|
64
|
-
content: [{ type: "text", text: doc.rawContent }],
|
|
83
|
+
content: [{ type: "text", text: RULES_BANNER + doc.rawContent }],
|
|
65
84
|
};
|
|
66
85
|
});
|
|
67
86
|
// Tool 4: Get component API/props only
|
|
@@ -83,7 +102,7 @@ async function main() {
|
|
|
83
102
|
if (!apiSection && !tsSection) {
|
|
84
103
|
result += "No dedicated API section found. Use get-component-docs for the full documentation.";
|
|
85
104
|
}
|
|
86
|
-
return { content: [{ type: "text", text: result }] };
|
|
105
|
+
return { content: [{ type: "text", text: RULES_BANNER + result }] };
|
|
87
106
|
});
|
|
88
107
|
// Tool 5: Get usage examples
|
|
89
108
|
server.tool("get-usage-examples", "Get code examples for a TORCH Glare component, optionally filtered by pattern keyword", {
|
|
@@ -112,7 +131,7 @@ async function main() {
|
|
|
112
131
|
.map((e) => `### ${e.heading}\n\n\`\`\`${e.language}\n${e.code}\n\`\`\``)
|
|
113
132
|
.join("\n\n");
|
|
114
133
|
return {
|
|
115
|
-
content: [{ type: "text", text: `# ${doc.name} Code Examples${pattern ? ` (filtered: "${pattern}")` : ""}\n\n${formatted}` }],
|
|
134
|
+
content: [{ type: "text", text: RULES_BANNER + `# ${doc.name} Code Examples${pattern ? ` (filtered: "${pattern}")` : ""}\n\n${formatted}` }],
|
|
116
135
|
};
|
|
117
136
|
});
|
|
118
137
|
// Tool 6: Get design system info
|
|
@@ -157,7 +176,7 @@ async function main() {
|
|
|
157
176
|
};
|
|
158
177
|
}
|
|
159
178
|
return {
|
|
160
|
-
content: [{ type: "text", text: sections.join("\n\n---\n\n") }],
|
|
179
|
+
content: [{ type: "text", text: RULES_BANNER + sections.join("\n\n---\n\n") }],
|
|
161
180
|
};
|
|
162
181
|
});
|
|
163
182
|
// ─── RESOURCES ───────────────────────────────────────────────────────
|
|
@@ -208,7 +227,7 @@ async function main() {
|
|
|
208
227
|
contents: [
|
|
209
228
|
{
|
|
210
229
|
uri: "torch-glare://design-system",
|
|
211
|
-
text: sections.length > 0 ? sections.join("\n\n---\n\n") : "Design system docs not available.",
|
|
230
|
+
text: sections.length > 0 ? RULES_BANNER + sections.join("\n\n---\n\n") : "Design system docs not available.",
|
|
212
231
|
},
|
|
213
232
|
],
|
|
214
233
|
};
|
|
@@ -237,7 +256,7 @@ async function main() {
|
|
|
237
256
|
};
|
|
238
257
|
}
|
|
239
258
|
return {
|
|
240
|
-
contents: [{ uri: uri.href, text: doc.rawContent }],
|
|
259
|
+
contents: [{ uri: uri.href, text: RULES_BANNER + doc.rawContent }],
|
|
241
260
|
};
|
|
242
261
|
});
|
|
243
262
|
// 4. Connect to stdio transport
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1E,KAAK,UAAU,IAAI;IACjB,wCAAwC;IACxC,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;IAChC,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;IAEvB,8BAA8B;IAC9B,MAAM,QAAQ,GAAG,IAAI,iBAAiB,EAAE,CAAC;IACzC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAElD,uBAAuB;IACvB,MAAM,MAAM,GAAG,IAAI,SAAS,C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G,CAAC,UAAU,EAAE,CAAC;SACnE,CAAC;IACJ,CAAC,CACF,CAAC;IAEF,gCAAgC;IAChC,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: SectionCard
|
|
3
|
+
title: SectionCard
|
|
4
|
+
description: Sectioned card container with a colored title badge for grouping related content like forms, tables, or lists.
|
|
5
|
+
category: layout
|
|
6
|
+
group: Layout & Containers
|
|
7
|
+
tags: [layout, card, section, container, form, group]
|
|
8
|
+
status: stable
|
|
9
|
+
version: 1.1.22
|
|
10
|
+
dependencies:
|
|
11
|
+
- "class-variance-authority": "^0.7.0"
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# SectionCard
|
|
15
|
+
|
|
16
|
+
> A card container with an optional colored title badge. Use it to group related content — custom field forms, tables, settings groups — under a clear, color-coded heading.
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx torch-glare add SectionCard
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Import
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { SectionCard, type SectionColor } from "@/components/SectionCard";
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Basic Usage
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
import { SectionCard } from "@/components/SectionCard";
|
|
34
|
+
|
|
35
|
+
export function Example() {
|
|
36
|
+
return (
|
|
37
|
+
<SectionCard color="Blue" title="Project details">
|
|
38
|
+
<p className="text-content-presentation-action-light-primary py-4">
|
|
39
|
+
Card body content goes here.
|
|
40
|
+
</p>
|
|
41
|
+
</SectionCard>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## API Reference
|
|
47
|
+
|
|
48
|
+
### Props
|
|
49
|
+
|
|
50
|
+
| Prop | Type | Default | Description |
|
|
51
|
+
|------|------|---------|-------------|
|
|
52
|
+
| `color` | `SectionColor` | `"Blue"` | Color of the title badge. One of `Blue`, `Yellow`, `Green`, `Red`, `Orange`, `Purple`, `Pink`, `Gray`. |
|
|
53
|
+
| `title` | `ReactNode` | — | Title rendered inside the colored badge. Optional — when omitted, the header is hidden entirely. Accepts any ReactNode (string, JSX with icons, links, etc.). |
|
|
54
|
+
| `containerClassName` | `string` | — | Class name applied to the outer container (alongside `className`). |
|
|
55
|
+
| `headerClassName` | `string` | — | Class name applied to the header wrapper around the title badge. |
|
|
56
|
+
| `bodyClassName` | `string` | — | Class name applied to the body wrapper holding `children`. |
|
|
57
|
+
| `className` | `string` | — | Standard React class name on the outer container. |
|
|
58
|
+
| `children` | `ReactNode` | — | Body content. |
|
|
59
|
+
| `...rest` | `HTMLAttributes<HTMLDivElement>` | — | All standard div props except `title` (which is overridden). |
|
|
60
|
+
|
|
61
|
+
### TypeScript
|
|
62
|
+
|
|
63
|
+
```typescript
|
|
64
|
+
export type SectionColor =
|
|
65
|
+
| "Blue"
|
|
66
|
+
| "Yellow"
|
|
67
|
+
| "Green"
|
|
68
|
+
| "Red"
|
|
69
|
+
| "Orange"
|
|
70
|
+
| "Purple"
|
|
71
|
+
| "Pink"
|
|
72
|
+
| "Gray";
|
|
73
|
+
|
|
74
|
+
export interface SectionCardProps
|
|
75
|
+
extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
76
|
+
color?: SectionColor;
|
|
77
|
+
title?: ReactNode;
|
|
78
|
+
containerClassName?: string;
|
|
79
|
+
headerClassName?: string;
|
|
80
|
+
bodyClassName?: string;
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
The component is a `forwardRef<HTMLDivElement, SectionCardProps>`.
|
|
85
|
+
|
|
86
|
+
## Examples
|
|
87
|
+
|
|
88
|
+
### All Colors
|
|
89
|
+
|
|
90
|
+
```tsx
|
|
91
|
+
import { SectionCard, type SectionColor } from "@/components/SectionCard";
|
|
92
|
+
|
|
93
|
+
const COLORS: SectionColor[] = [
|
|
94
|
+
"Blue",
|
|
95
|
+
"Yellow",
|
|
96
|
+
"Green",
|
|
97
|
+
"Red",
|
|
98
|
+
"Orange",
|
|
99
|
+
"Purple",
|
|
100
|
+
"Pink",
|
|
101
|
+
"Gray",
|
|
102
|
+
];
|
|
103
|
+
|
|
104
|
+
export function AllColors() {
|
|
105
|
+
return (
|
|
106
|
+
<div className="flex flex-col gap-[24px]">
|
|
107
|
+
{COLORS.map((color) => (
|
|
108
|
+
<SectionCard key={color} color={color} title={`${color} section`}>
|
|
109
|
+
<p className="text-content-presentation-action-light-primary py-4">
|
|
110
|
+
This is a {color.toLowerCase()} sectioned card.
|
|
111
|
+
</p>
|
|
112
|
+
</SectionCard>
|
|
113
|
+
))}
|
|
114
|
+
</div>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### No Title
|
|
120
|
+
|
|
121
|
+
When `title` is omitted, the header is hidden but the body padding remains.
|
|
122
|
+
|
|
123
|
+
```tsx
|
|
124
|
+
<SectionCard>
|
|
125
|
+
<p className="text-content-presentation-action-light-primary py-4">
|
|
126
|
+
A SectionCard without a title — header is hidden, body still padded.
|
|
127
|
+
</p>
|
|
128
|
+
</SectionCard>
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Rich Title with Icon
|
|
132
|
+
|
|
133
|
+
`title` accepts any ReactNode, so you can pass JSX with icons, counts, links, etc.
|
|
134
|
+
|
|
135
|
+
```tsx
|
|
136
|
+
<SectionCard
|
|
137
|
+
color="Purple"
|
|
138
|
+
title={
|
|
139
|
+
<span className="flex items-center gap-[6px]">
|
|
140
|
+
<i className="ri-magic-line" />
|
|
141
|
+
Rich title with icon
|
|
142
|
+
</span>
|
|
143
|
+
}
|
|
144
|
+
>
|
|
145
|
+
<p className="text-content-presentation-action-light-primary py-4">
|
|
146
|
+
The title prop is fully customizable.
|
|
147
|
+
</p>
|
|
148
|
+
</SectionCard>
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Custom Fields Form
|
|
152
|
+
|
|
153
|
+
A common pattern: pair `SectionCard` with a row layout to build labeled-field forms.
|
|
154
|
+
|
|
155
|
+
```tsx
|
|
156
|
+
import { type ReactNode } from "react";
|
|
157
|
+
import { SectionCard } from "@/components/SectionCard";
|
|
158
|
+
import { InputField } from "@/components/InputField";
|
|
159
|
+
import { ActionButton } from "@/components/ActionButton";
|
|
160
|
+
|
|
161
|
+
export function CustomFieldsForm() {
|
|
162
|
+
return (
|
|
163
|
+
<SectionCard
|
|
164
|
+
color="Blue"
|
|
165
|
+
title={
|
|
166
|
+
<span className="flex items-center gap-[6px]">
|
|
167
|
+
<i className="ri-edit-box-line" />
|
|
168
|
+
Custom fields
|
|
169
|
+
</span>
|
|
170
|
+
}
|
|
171
|
+
>
|
|
172
|
+
<FieldRow
|
|
173
|
+
label="Name"
|
|
174
|
+
required
|
|
175
|
+
right={
|
|
176
|
+
<div className="flex flex-1 items-center gap-[12px]">
|
|
177
|
+
<InputField placeholder="First Name*" className="flex-1" />
|
|
178
|
+
<InputField placeholder="Last Name*" className="flex-1" />
|
|
179
|
+
</div>
|
|
180
|
+
}
|
|
181
|
+
/>
|
|
182
|
+
|
|
183
|
+
<RowDivider />
|
|
184
|
+
|
|
185
|
+
<FieldRow
|
|
186
|
+
label="Department"
|
|
187
|
+
right={<InputField placeholder="Write Hint Here" className="flex-1" />}
|
|
188
|
+
/>
|
|
189
|
+
|
|
190
|
+
<RowDivider />
|
|
191
|
+
|
|
192
|
+
<FieldRow
|
|
193
|
+
label="Alias names"
|
|
194
|
+
right={
|
|
195
|
+
<InputField
|
|
196
|
+
placeholder="Write Hint Here"
|
|
197
|
+
className="flex-1"
|
|
198
|
+
childrenSide={
|
|
199
|
+
<ActionButton aria-label="Add alias name">
|
|
200
|
+
<i className="ri-add-line" />
|
|
201
|
+
</ActionButton>
|
|
202
|
+
}
|
|
203
|
+
/>
|
|
204
|
+
}
|
|
205
|
+
/>
|
|
206
|
+
</SectionCard>
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
interface FieldRowProps {
|
|
211
|
+
label: string;
|
|
212
|
+
required?: boolean;
|
|
213
|
+
right: ReactNode;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
function FieldRow({ label, required, right }: FieldRowProps) {
|
|
217
|
+
return (
|
|
218
|
+
<div className="flex items-center gap-[24px] py-[18px]">
|
|
219
|
+
<div className="flex w-[220px] shrink-0 items-center gap-[6px]">
|
|
220
|
+
<span className="typography-body-medium-regular text-content-presentation-action-light-primary">
|
|
221
|
+
{label}
|
|
222
|
+
</span>
|
|
223
|
+
{required && (
|
|
224
|
+
<span className="typography-body-small-medium text-content-presentation-state-negative">
|
|
225
|
+
(Required)
|
|
226
|
+
</span>
|
|
227
|
+
)}
|
|
228
|
+
</div>
|
|
229
|
+
<div className="flex flex-1 items-center">{right}</div>
|
|
230
|
+
</div>
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
function RowDivider() {
|
|
235
|
+
return <div className="h-px w-full bg-border-presentation-global-primary" />;
|
|
236
|
+
}
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Custom Layout (override defaults)
|
|
240
|
+
|
|
241
|
+
Use `containerClassName`, `headerClassName`, and `bodyClassName` to override the built-in spacing and width without losing the title/body structure.
|
|
242
|
+
|
|
243
|
+
```tsx
|
|
244
|
+
<SectionCard
|
|
245
|
+
color="Green"
|
|
246
|
+
title="Compact card"
|
|
247
|
+
containerClassName="w-[600px] pt-[4px] pb-[16px]"
|
|
248
|
+
bodyClassName="px-[24px]"
|
|
249
|
+
>
|
|
250
|
+
<p className="text-content-presentation-action-light-primary py-2">
|
|
251
|
+
Tighter, narrower variant.
|
|
252
|
+
</p>
|
|
253
|
+
</SectionCard>
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
## Patterns
|
|
257
|
+
|
|
258
|
+
- **Color coding**: Use distinct colors to help users scan a page of multiple sections (e.g., Blue for primary forms, Yellow for warnings, Red for destructive zones).
|
|
259
|
+
- **No-title sections**: Drop the `title` prop entirely when the section's purpose is obvious from context — keeps the body padding without the visual weight of a header.
|
|
260
|
+
- **Composing with form fields**: `SectionCard` does not impose any inner layout — pair it with helpers like the `FieldRow` pattern above, or with `InputField`, `Form`, or `FieldSection` for more structured forms.
|
|
261
|
+
- **Default width**: The component ships with `w-[1100px]`. Override via `containerClassName="w-full"` (or any specific width) for narrower containers.
|
|
262
|
+
|
|
263
|
+
## Accessibility
|
|
264
|
+
|
|
265
|
+
- The container is a plain `<div>`. If the section represents a distinct landmark, add `role="region"` and an `aria-label` (or use `aria-labelledby` pointing at the title).
|
|
266
|
+
- The title is rendered as styled text inside a badge `<div>`, not as a heading element. If the section needs a heading semantically, wrap your `title` content in an appropriate `<h2>`/`<h3>` and reset its margin via Tailwind classes.
|
|
267
|
+
|
|
268
|
+
## Troubleshooting
|
|
269
|
+
|
|
270
|
+
| Issue | Fix |
|
|
271
|
+
|-------|-----|
|
|
272
|
+
| Card overflows on small screens | Default width is `w-[1100px]`. Override with `containerClassName="w-full"` or a smaller fixed width. |
|
|
273
|
+
| Title not showing | The `title` prop is optional — omitting it hides the entire header. Pass any non-null `ReactNode` to render it. |
|
|
274
|
+
| Badge color looks wrong | `color` only accepts the predefined `SectionColor` values. For custom badge colors, override via `headerClassName` and a custom child node. |
|
|
275
|
+
| Need a different background | The body uses `bg-background-presentation-form-base`. Override via `containerClassName` (your class wins via `cn()` merging). |
|
package/docs/llms-manifest.json
CHANGED
|
@@ -59,11 +59,12 @@
|
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
61
|
"layout": {
|
|
62
|
-
"count":
|
|
62
|
+
"count": 7,
|
|
63
63
|
"items": [
|
|
64
64
|
{ "name": "Card", "version": "1.1.15", "documented": false },
|
|
65
65
|
{ "name": "CNLayout", "version": "1.1.15", "documented": false },
|
|
66
66
|
{ "name": "FieldSection", "version": "1.1.15", "documented": false },
|
|
67
|
+
{ "name": "SectionCard", "version": "1.1.22", "documented": true },
|
|
67
68
|
{ "name": "TreeSubLayout", "version": "1.1.15", "documented": false },
|
|
68
69
|
{ "name": "Divider", "version": "1.1.15", "documented": false },
|
|
69
70
|
{ "name": "ScrollArea", "version": "1.1.15", "documented": false }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "torch-glare-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "MCP server for TORCH Glare component library — gives AI assistants full access to component docs, API references, code examples, and design system info",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|