@mk-kit/mcp 0.44.0
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/LICENSE +21 -0
- package/README.md +64 -0
- package/bin.js +9 -0
- package/data/api.json +23389 -0
- package/data/llms-full.txt +15381 -0
- package/data/llms.txt +88 -0
- package/data.js +58 -0
- package/index.js +225 -0
- package/package.json +42 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mateusz Kornaś
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# @mk-kit/mcp
|
|
2
|
+
|
|
3
|
+
[MCP](https://modelcontextprotocol.io) server for
|
|
4
|
+
[`@mk-kit/ui`](https://www.npmjs.com/package/@mk-kit/ui) — gives Claude Code,
|
|
5
|
+
Cursor, Copilot, Windsurf, Zed and any other MCP client an exact, searchable
|
|
6
|
+
reference for every component, directive, service, helper and type of the
|
|
7
|
+
mk-kit Angular library: selectors, inputs with types and defaults, outputs,
|
|
8
|
+
methods, import paths and links to the docs page. No more guessed input names.
|
|
9
|
+
|
|
10
|
+
The data is generated from the library sources on every release
|
|
11
|
+
([`mk-kit.dev/api.json`](https://mk-kit.dev/api.json)) and bundled with the
|
|
12
|
+
package; on start the server fetches a newer snapshot from mk-kit.dev when
|
|
13
|
+
one exists, so it stays current between package updates.
|
|
14
|
+
|
|
15
|
+
## Setup
|
|
16
|
+
|
|
17
|
+
**Claude Code**
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
claude mcp add mk-kit -- npx -y @mk-kit/mcp
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**Cursor / Windsurf / Claude Desktop / VS Code** — add to the MCP config:
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"mcpServers": {
|
|
28
|
+
"mk-kit": {
|
|
29
|
+
"command": "npx",
|
|
30
|
+
"args": ["-y", "@mk-kit/mcp"]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Runs over stdio; nothing to host. Node ≥ 20.
|
|
37
|
+
|
|
38
|
+
## Tools
|
|
39
|
+
|
|
40
|
+
| Tool | What it does |
|
|
41
|
+
|------|--------------|
|
|
42
|
+
| `search_mk_kit` | Find exports by name, selector (`mk-select`, `mkButton`) or free text ("date range", "toast", "csv export"); optional `kind` / `entry` filters. |
|
|
43
|
+
| `get_mk_kit_export` | Full API of one export as Markdown — import, selector, description + example, inputs, outputs, methods, docs link. Accepts class names or selectors. |
|
|
44
|
+
| `list_mk_kit_exports` | Browse every entry point, or one entry point / kind, with one-line summaries. |
|
|
45
|
+
| `get_mk_kit_overview` | What mk-kit is, install + setup conventions, links to every docs page (the site's `llms.txt`). |
|
|
46
|
+
|
|
47
|
+
Resources: `mk-kit://llms.txt`, `mk-kit://llms-full.txt`, `mk-kit://api.json`.
|
|
48
|
+
|
|
49
|
+
## Environment
|
|
50
|
+
|
|
51
|
+
| Variable | Effect |
|
|
52
|
+
|----------|--------|
|
|
53
|
+
| `MK_KIT_MCP_OFFLINE=1` | Never fetch; use the bundled snapshot only. |
|
|
54
|
+
| `MK_KIT_SITE` | Base URL to fetch `api.json`, `llms.txt`, `llms-full.txt` from (default `https://mk-kit.dev`). |
|
|
55
|
+
|
|
56
|
+
## Without MCP
|
|
57
|
+
|
|
58
|
+
The same data is plain files: <https://mk-kit.dev/llms.txt> (index),
|
|
59
|
+
<https://mk-kit.dev/llms-full.txt> (whole API as Markdown) and
|
|
60
|
+
<https://mk-kit.dev/api.json>. Paste a URL into any assistant that can fetch.
|
|
61
|
+
|
|
62
|
+
## License
|
|
63
|
+
|
|
64
|
+
MIT — © Mateusz Kornaś. Part of the [mk-kit](https://github.com/mk-kit/mk-kit) repository.
|
package/bin.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
3
|
+
import { loadData } from './data.js';
|
|
4
|
+
import { createMkKitServer } from './index.js';
|
|
5
|
+
// stdout is the MCP channel — every human-facing line goes to stderr.
|
|
6
|
+
const data = await loadData();
|
|
7
|
+
const server = createMkKitServer(data);
|
|
8
|
+
await server.connect(new StdioServerTransport());
|
|
9
|
+
console.error(`mk-kit MCP server ready — ${data.api.package} ${data.api.version} (${data.source})`);
|