@skeletiq/mcp 0.1.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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +118 -0
  3. package/dist/index.js +1674 -0
  4. package/package.json +53 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sabhahith Works Private Limited
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,118 @@
1
+ # @skeletiq/mcp
2
+
3
+ Design in [SkeletIQ](https://skeletiq.com), build with your coding agent.
4
+
5
+ SkeletIQ turns a prompt into a critiqued system architecture — components, data stores,
6
+ connections, decisions, open questions — that you refine on a canvas and then **release**. This MCP
7
+ server hands that release to any MCP-capable coding agent: it orients from a brief written into
8
+ your repository's `AGENTS.md`, builds in a deterministic order, and reports back what it built.
9
+
10
+ ## Install
11
+
12
+ Nothing to install — the server runs via `npx`.
13
+
14
+ You need a **personal API token**: in SkeletIQ, go to **Settings → Agent access**, create one, and
15
+ copy it (it is shown once).
16
+
17
+ ### Claude Code
18
+
19
+ ```bash
20
+ claude mcp add skeletiq \
21
+ --env SKELETIQ_API_KEY=skq_your_token_here \
22
+ -- npx -y @skeletiq/mcp
23
+ ```
24
+
25
+ ### opencode
26
+
27
+ ```json
28
+ {
29
+ "mcp": {
30
+ "skeletiq": {
31
+ "type": "local",
32
+ "command": ["npx", "-y", "@skeletiq/mcp"],
33
+ "environment": { "SKELETIQ_API_KEY": "{env:SKELETIQ_API_KEY}" },
34
+ "timeout": 600000
35
+ }
36
+ }
37
+ }
38
+ ```
39
+
40
+ The `timeout` matters. A generation runs for around 217 seconds typically and up to 450 at the
41
+ limit; opencode's default is far below that, and it will kill a perfectly healthy run.
42
+
43
+ ### Any other host
44
+
45
+ Run `npx -y @skeletiq/mcp` over stdio with `SKELETIQ_API_KEY` in the environment.
46
+
47
+ ## Configuration
48
+
49
+ | Variable | Required | Default | Notes |
50
+ |---|---|---|---|
51
+ | `SKELETIQ_API_KEY` | yes | — | A personal API token, starting `skq_`. Not a browser session token. |
52
+ | `SKELETIQ_API_URL` | no | `https://api.skeletiq.com` | For self-hosted installs. A trailing `/api/v1` is accepted and trimmed. |
53
+
54
+ ## Scopes
55
+
56
+ A token grants only what you tick. The server's tools need:
57
+
58
+ | Scope | What it unlocks | Tools |
59
+ |---|---|---|
60
+ | `read` | Projects, designs, briefs, build order, readiness, gaps, jobs | `list_projects`, `get_design`, `get_generation_status` |
61
+ | `generate` | Running generations and payload critique. **Spends credits.** | `generate_architecture`, `critique_architecture` |
62
+ | `report` | Recording what got built | `check_drift` |
63
+
64
+ `read` alone is a good starting point: the agent can orient and build, but cannot spend anything.
65
+
66
+ Everything else is out of reach by construction — a token cannot mint another token, read or
67
+ change your provider keys, see billing, or delete your account, whatever scopes it carries.
68
+
69
+ ## Tools
70
+
71
+ | Tool | What it does |
72
+ |---|---|
73
+ | `list_projects` | Find a project by name. Returns the candidates rather than guessing between them. |
74
+ | `get_design` | Read a design, in one of six modes: `overview`, `component`, `brief`, `readiness`, `build_order`, `gaps`. |
75
+ | `generate_architecture` | Design a system from a prompt. Spends credits and takes minutes. |
76
+ | `get_generation_status` | Poll a generation started with `wait: false`. |
77
+ | `critique_architecture` | Check a design against SkeletIQ's rules. Deterministic, free, stores nothing. Tell it the `domain` and the `exposure`. |
78
+ | `check_drift` | Report what you built; hear what is missing, half done, or not in the design. |
79
+
80
+ ## How a session goes
81
+
82
+ 1. `list_projects` → resolve the project a person named.
83
+ 2. `get_design(mode: "brief")` → write the fenced block into `AGENTS.md`.
84
+ 3. `get_design(mode: "readiness")` → see what is still undecided, and ask.
85
+ 4. `get_design(mode: "build_order")` → build in that order.
86
+ 5. `get_design(mode: "component", component_id: …)` → read each piece as you reach it.
87
+ 6. `check_drift(covers: [...])` → report progress.
88
+
89
+ ## Four things to know
90
+
91
+ **The brief is a managed block.** It goes inside a `skeletiq:brief` HTML-comment fence in your
92
+ `AGENTS.md`. A refresh replaces the whole block. Never append a second, and never edit inside one:
93
+ your edits will disappear on the next refresh, silently.
94
+
95
+ **A draft is not a release.** An unreleased version changes on every canvas save, with nothing to
96
+ tell your repository it moved. The tools label drafts, and tell you when a newer release exists.
97
+
98
+ **Component ids belong to one version.** A regeneration mints new ones. When `check_drift` returns
99
+ unknown ids with suggestions, they are suggestions — put them to a person rather than assuming the
100
+ mapping.
101
+
102
+ **`critique_architecture`'s optional inputs are not neutral.** Omitting one does not skip a
103
+ question; it answers it. With no `domain` and `secondary_domains`, no compliance framework applies,
104
+ so no compliance finding is possible and the score comes back higher than the SkeletIQ app shows
105
+ for the same design — by up to 15 points. With no `exposure`, the design is assessed as
106
+ internet-facing, which is how an air-gapped system gets told to add a CDN and a WAF. The response
107
+ says what was actually used — `frameworks_checked` and `exposure_assessed` — and the text output
108
+ warns when a default was applied. Read those before reporting a score to a person.
109
+
110
+ ## Which model runs a generation
111
+
112
+ Whichever one the account holder chose under **Settings → Agent access**. The tools take no runtime
113
+ argument, deliberately: the model asking for a design does not get to choose what it costs you.
114
+
115
+ ## Licence
116
+
117
+ MIT — see [LICENSE](./LICENSE). The rest of the SkeletIQ repository is AGPL-3.0-or-later; this
118
+ connector is MIT so it can be embedded, vendored and forked freely.