@casys/mcp-avl 0.1.0 → 0.2.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/README.md +36 -7
- package/THIRD_PARTY_NOTICES.txt +1096 -0
- package/mcp-avl.mjs +113 -6
- package/package.json +2 -2
- package/ui-dist/stability-derivatives/index.html +3661 -0
- package/ui-dist/stability-gates/index.html +3661 -0
- package/ui-dist/stability-verdict/index.html +3661 -0
- package/ui-dist/static-margin/index.html +3661 -0
package/README.md
CHANGED
|
@@ -1,12 +1,40 @@
|
|
|
1
1
|
# `@casys/mcp-avl`
|
|
2
2
|
|
|
3
|
-
MCP server for 3D Vortex-Lattice aerodynamic stability, trim, and neutral-point verification powered
|
|
3
|
+
MCP server for 3D Vortex-Lattice aerodynamic stability, trim, and neutral-point verification powered
|
|
4
|
+
by **MIT AVL** (Mark Drela / Harold Youngren) and built natively on `@mcpview/server` +
|
|
5
|
+
`@mcpview/compose`.
|
|
4
6
|
|
|
5
7
|
## Tools
|
|
6
8
|
|
|
7
|
-
- `avl_run_stability` — Executes real MIT AVL 3D VLM (`X` / `ST` stability derivatives) for coupled
|
|
9
|
+
- `avl_run_stability` — Executes real MIT AVL 3D VLM (`X` / `ST` stability derivatives) for coupled
|
|
10
|
+
or separated airframe configurations (`CLa`, `Cma`, `Cnb`, `Clb`, `Xnp`, static margin `SM%`, trim
|
|
11
|
+
elevon angle, and 5-gate qualification).
|
|
8
12
|
- `list_snippets` / `run_snippet` — Layer-2 `@mcpview/compose` snippet bridge (`run_stability`).
|
|
9
13
|
|
|
14
|
+
## Widgets
|
|
15
|
+
|
|
16
|
+
Results are shown as small, individual MCP App widgets, one reading each, never a dashboard. Each
|
|
17
|
+
widget is its own `ui://mcp-avl/<widget>` resource and adapts to the width its host grants (a
|
|
18
|
+
Compose board snaps its resize handle between `supportedWidths`; a standalone host gets the widest).
|
|
19
|
+
|
|
20
|
+
| Widget (`ui://mcp-avl/…`) | Kind | Shows | `supportedWidths` |
|
|
21
|
+
| ------------------------- | ----- | ------------------------------------------------------------------------------------ | ----------------- |
|
|
22
|
+
| `stability-verdict` | stat | PASS or FAIL with 1 to 3 headline numbers | 280, 380, 520 |
|
|
23
|
+
| `stability-gates` | table | Each qualification gate with pass/fail and requirement, one column per configuration | 320, 460, 640 |
|
|
24
|
+
| `stability-derivatives` | table | CLα, Cmα, Cnβ, Clβ, neutral point and trim, one column per configuration | 340, 480, 680 |
|
|
25
|
+
| `static-margin` | chart | Static margin of each configuration against the 4 to 22 % window | 320, 440, 640 |
|
|
26
|
+
|
|
27
|
+
Smallest width: the essential. Middle: the usual reading. Largest: the full detail of that one
|
|
28
|
+
thing, with a provenance footer (engine, AVL version, case SHA-256). `avl_run_stability`,
|
|
29
|
+
`avl_check_valkyrie_stability` and `run_snippet` advertise `stability-verdict` by default; a board
|
|
30
|
+
selects another widget for the same result by resource URI. `AVL_WIDGETS` (exported from `mod.ts`)
|
|
31
|
+
lists URIs, kinds and `supportedWidths` for a board to read:
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
import { AVL_WIDGETS } from "jsr:@casys/mcp-avl";
|
|
35
|
+
// { resourceUri: widget.uri, supportedWidths: widget.supportedWidths }
|
|
36
|
+
```
|
|
37
|
+
|
|
10
38
|
## Quickstart
|
|
11
39
|
|
|
12
40
|
```bash
|
|
@@ -18,8 +46,8 @@ curl http://127.0.0.1:3029/health
|
|
|
18
46
|
## Snippets
|
|
19
47
|
|
|
20
48
|
`list_snippets` returns `run_stability` and `check_valkyrie_stability`. Both carry
|
|
21
|
-
`_meta["io.casys/provenance"] = "verified-solver"` only when MIT AVL actually ran; any
|
|
22
|
-
|
|
49
|
+
`_meta["io.casys/provenance"] = "verified-solver"` only when MIT AVL actually ran; any failure
|
|
50
|
+
returns an `AVL_ERROR` tool error.
|
|
23
51
|
|
|
24
52
|
## Install
|
|
25
53
|
|
|
@@ -35,12 +63,13 @@ Both need the `avl` binary on `PATH` (or `AVL_BIN` / `--avl-bin`); the Docker im
|
|
|
35
63
|
## Development
|
|
36
64
|
|
|
37
65
|
```bash
|
|
38
|
-
deno task release:check # fmt + check + lint + unit tests (no AVL needed)
|
|
66
|
+
deno task release:check # fmt + check + lint + unit tests + widget bundle freshness (no AVL needed)
|
|
67
|
+
deno task build:ui # rebuild the committed single-file widget HTML in src/ui/dist/
|
|
39
68
|
deno task test:avl # integration test against a server on 127.0.0.1:3029
|
|
40
69
|
deno task build:npm # Node bundle in dist-node/bin
|
|
41
70
|
```
|
|
42
71
|
|
|
43
72
|
## License
|
|
44
73
|
|
|
45
|
-
MIT — see [LICENSE](LICENSE). MIT AVL itself is GPL software by Mark Drela and Harold
|
|
46
|
-
|
|
74
|
+
MIT — see [LICENSE](LICENSE). MIT AVL itself is GPL software by Mark Drela and Harold Youngren; it
|
|
75
|
+
is downloaded and compiled inside the Docker image, not redistributed here.
|