@casys/mcp-avl 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +74 -2
- package/THIRD_PARTY_NOTICES.txt +1096 -0
- package/mcp-avl.mjs +57193 -0
- package/package.json +10 -4
- 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/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Casys
|
|
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
CHANGED
|
@@ -1,3 +1,75 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@casys/mcp-avl`
|
|
2
2
|
|
|
3
|
-
|
|
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`.
|
|
6
|
+
|
|
7
|
+
## Tools
|
|
8
|
+
|
|
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).
|
|
12
|
+
- `list_snippets` / `run_snippet` — Layer-2 `@mcpview/compose` snippet bridge (`run_stability`).
|
|
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
|
+
|
|
38
|
+
## Quickstart
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
docker build -t casys-mcp-avl:local .
|
|
42
|
+
docker run -d --name casys-mcp-avl -p 127.0.0.1:3029:3029 casys-mcp-avl:local
|
|
43
|
+
curl http://127.0.0.1:3029/health
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Snippets
|
|
47
|
+
|
|
48
|
+
`list_snippets` returns `run_stability` and `check_valkyrie_stability`. Both carry
|
|
49
|
+
`_meta["io.casys/provenance"] = "verified-solver"` only when MIT AVL actually ran; any failure
|
|
50
|
+
returns an `AVL_ERROR` tool error.
|
|
51
|
+
|
|
52
|
+
## Install
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# Deno (JSR)
|
|
56
|
+
deno run --allow-read --allow-write --allow-run --allow-env --allow-net jsr:@casys/mcp-avl/server --port=3029
|
|
57
|
+
# Node.js >= 20 (npm)
|
|
58
|
+
npx @casys/mcp-avl --port=3029
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Both need the `avl` binary on `PATH` (or `AVL_BIN` / `--avl-bin`); the Docker image builds it.
|
|
62
|
+
|
|
63
|
+
## Development
|
|
64
|
+
|
|
65
|
+
```bash
|
|
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/
|
|
68
|
+
deno task test:avl # integration test against a server on 127.0.0.1:3029
|
|
69
|
+
deno task build:npm # Node bundle in dist-node/bin
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## License
|
|
73
|
+
|
|
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.
|