@happyvertical/smrt-dev-mcp 0.40.59 → 0.40.61
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/AGENTS.md +14 -3
- package/README.md +41 -1
- package/dist/index.d.ts +2 -908
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +103 -17
- package/dist/index.js.map +1 -1
- package/mcp.json +9 -0
- package/package.json +9 -5
- package/plugin.json +5 -0
- package/schemas/agent-plugins-1.0.0/README.md +16 -0
- package/schemas/agent-plugins-1.0.0/mcp.schema.json +120 -0
- package/schemas/agent-plugins-1.0.0/plugin.schema.json +65 -0
- /package/{agent-skills → skills}/smrt-code-review/SKILL.md +0 -0
- /package/{agent-skills → skills}/smrt-code-review/references/review-output.md +0 -0
package/AGENTS.md
CHANGED
|
@@ -65,11 +65,12 @@ member package owns, mirroring the member-excluded scan.
|
|
|
65
65
|
|
|
66
66
|
## Agent Skills
|
|
67
67
|
|
|
68
|
-
Bundled skills live under `
|
|
68
|
+
Bundled skills live under `skills/`, the Agent Plugins fixed discovery
|
|
69
|
+
location. They are plain Markdown procedures
|
|
69
70
|
with YAML frontmatter (`name` and `description`) and harness-neutral body text.
|
|
70
71
|
Skill-aware harnesses can parse the frontmatter; other harnesses can ignore it.
|
|
71
72
|
|
|
72
|
-
- `
|
|
73
|
+
- `skills/smrt-code-review/SKILL.md` — downstream SMRT code review workflow.
|
|
73
74
|
Agents should fetch it with `get-agent-skill`, then call `smrt-review` for
|
|
74
75
|
deterministic context, inspect the actual diff, and produce a findings-first
|
|
75
76
|
review.
|
|
@@ -97,7 +98,8 @@ launcher or a small wrapper script with an absolute Node path.
|
|
|
97
98
|
- `src/index.ts` — MCP server setup, tool registration
|
|
98
99
|
- `src/knowledge/index.ts` — deterministic SMRT, SDK, and downstream domain knowledge discovery; workspace-glob expansion, provenance, coverage, and diagnostics
|
|
99
100
|
- `src/agent-skills.ts` — bundled skill registry and file loader
|
|
100
|
-
- `
|
|
101
|
+
- `plugin.json` / `mcp.json` — Agent Plugins 1.0.0 portable root manifests
|
|
102
|
+
- `skills/smrt-code-review/SKILL.md` — downstream SMRT review procedure
|
|
101
103
|
- `src/tools/generate-smrt-class.ts` — class generation logic and package-ready templates
|
|
102
104
|
- `src/tools/introspect-project.ts` — manifest-first project scanning, falling back to `@happyvertical/smrt-scanner`
|
|
103
105
|
- `src/tools/review-smrt-project.ts` — advisory ecosystem-alignment checks for downstream projects
|
|
@@ -112,6 +114,15 @@ launcher or a small wrapper script with an absolute Node path.
|
|
|
112
114
|
fallback
|
|
113
115
|
- **Skill loading**: bundled skills must be included in `package.json` `files`
|
|
114
116
|
because runtime reads them from the installed package directory
|
|
117
|
+
- **Portable plugin boundary**: `mcp.json` launches only `./dist/index.js` from
|
|
118
|
+
the plugin root. Paths must remain contained after resolution. Clients, not
|
|
119
|
+
the package, provide the reserved `PLUGIN_ROOT` and `PLUGIN_DATA` environment
|
|
120
|
+
variables and manage OAuth or all other credentials; do not add secret-bearing
|
|
121
|
+
environment variables or headers to portable config.
|
|
122
|
+
- **Working Draft compatibility**: Agent Plugins 1.0.0 remains a Working Draft.
|
|
123
|
+
Keep `plugin.json` and `mcp.json` pinned to the canonical 1.0.0 schema IDs,
|
|
124
|
+
validate against the packaged `schemas/agent-plugins-1.0.0/` snapshots
|
|
125
|
+
offline, and do not add streamable HTTP until #2147 provides the endpoint.
|
|
115
126
|
- **Field type mapping**: `text`, `integer`, `decimal`, `boolean`, `datetime`, `json` — maps to SMRT field helpers (but prefer TypeScript defaults per framework convention)
|
|
116
127
|
- **Never call `ManifestGenerator` from a tool path**: `generateSchemas` and
|
|
117
128
|
friends write progress lines to **stdout** through the SDK logger, which is the
|
package/README.md
CHANGED
|
@@ -10,6 +10,37 @@ or architecture prompt bundles.
|
|
|
10
10
|
pnpm install @happyvertical/smrt-dev-mcp
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
## Agent Plugins package
|
|
14
|
+
|
|
15
|
+
The published package root is a self-contained [Agent Plugins 1.0.0](https://agent-plugins.org/specification)
|
|
16
|
+
plugin. Compatible clients discover `plugin.json`, `mcp.json`, and
|
|
17
|
+
`skills/smrt-code-review/SKILL.md` directly from the installed package root.
|
|
18
|
+
The shipped `mcp.json` declares only the local stdio server:
|
|
19
|
+
|
|
20
|
+
```json
|
|
21
|
+
{
|
|
22
|
+
"$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
|
|
23
|
+
"mcpServers": {
|
|
24
|
+
"smrt-dev-mcp": { "type": "stdio", "command": "./dist/index.js" }
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The executable path is plugin-relative and must remain inside the resolved
|
|
30
|
+
plugin root. Clients provide `PLUGIN_ROOT` (the resolved package root) and the
|
|
31
|
+
client-managed, persistent `PLUGIN_DATA` directory; this package does not set
|
|
32
|
+
or override either reserved environment variable. Portable configuration never
|
|
33
|
+
contains credentials, secrets, authorization headers, or OAuth settings.
|
|
34
|
+
Clients own authorization interaction and credential storage.
|
|
35
|
+
|
|
36
|
+
Agent Plugins 1.0.0 is a Working Draft. This package targets only the canonical
|
|
37
|
+
1.0.0 schema identifiers and includes pinned schema snapshots for offline
|
|
38
|
+
validation; clients must not fetch schemas when loading the package.
|
|
39
|
+
|
|
40
|
+
`streamable-http` is not shipped: its endpoint is gated on #2147. A future,
|
|
41
|
+
credential-free configuration could declare a `streamable-http` URL only after
|
|
42
|
+
that endpoint exists; it must not be inferred from this package today.
|
|
43
|
+
|
|
13
44
|
## Usage
|
|
14
45
|
|
|
15
46
|
Add to your project-local `.mcp.json`, Codex MCP config, or Claude Desktop
|
|
@@ -135,6 +166,14 @@ manifest artifacts before falling back to raw manifest/doc scanning. The runtime
|
|
|
135
166
|
`manifest.json` stays focused on object registration; `smrt-knowledge.json` is
|
|
136
167
|
the agent/developer contract.
|
|
137
168
|
|
|
169
|
+
## Cache Metadata
|
|
170
|
+
|
|
171
|
+
The deploy-static `tools/list` and `prompts/list` catalogs advertise a one-day
|
|
172
|
+
`private` cache lifetime. Workspace knowledge resources (`resources/list` and
|
|
173
|
+
`resources/read`) are also `private`, but use `ttlMs: 0`: they are rebuilt from
|
|
174
|
+
the current workspace on each request and have no transport-visible invalidation
|
|
175
|
+
signal that could make a positive freshness promise honest.
|
|
176
|
+
|
|
138
177
|
After using a model to update package docs or expertise, always run the
|
|
139
178
|
deterministic checker again:
|
|
140
179
|
|
|
@@ -163,7 +202,8 @@ smrt knowledge:architecture-context "tenant-aware publishing workflow" --format
|
|
|
163
202
|
|
|
164
203
|
## Agent Skills
|
|
165
204
|
|
|
166
|
-
The package ships harness-agnostic agent skills under `
|
|
205
|
+
The package ships harness-agnostic agent skills under `skills/`, the fixed
|
|
206
|
+
Agent Plugins discovery location.
|
|
167
207
|
|
|
168
208
|
Downstream agents should fetch the review procedure before starting a formal
|
|
169
209
|
s-m-r-t review:
|