hmcp-web 0.0.1 → 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.
- package/LICENSE +77 -0
- package/README.md +48 -2
- package/THIRD-PARTY-NOTICES.md +110 -0
- package/bin/hmcp-web.js +20 -0
- package/dist/api.d.ts +11 -0
- package/dist/api.js +1404 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +40 -0
- package/dist/contracts/onboarding.d.ts +233 -0
- package/dist/contracts/onboarding.js +1 -0
- package/dist/http.d.ts +72 -0
- package/dist/http.js +319 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/dist/model/console-settings.d.ts +37 -0
- package/dist/model/console-settings.js +74 -0
- package/dist/model/doctor.d.ts +68 -0
- package/dist/model/doctor.js +254 -0
- package/dist/model/fs-browse.d.ts +9 -0
- package/dist/model/fs-browse.js +184 -0
- package/dist/model/gateway-config.d.ts +287 -0
- package/dist/model/gateway-config.js +760 -0
- package/dist/model/metrics.d.ts +65 -0
- package/dist/model/metrics.js +198 -0
- package/dist/model/oauth-flows.d.ts +60 -0
- package/dist/model/oauth-flows.js +79 -0
- package/dist/model/pipeline.d.ts +58 -0
- package/dist/model/pipeline.js +84 -0
- package/dist/model/probe.d.ts +155 -0
- package/dist/model/probe.js +385 -0
- package/dist/model/process.d.ts +100 -0
- package/dist/model/process.js +278 -0
- package/dist/model/protection.d.ts +378 -0
- package/dist/model/protection.js +470 -0
- package/dist/model/registry-cache.d.ts +59 -0
- package/dist/model/registry-cache.js +238 -0
- package/dist/model/scan.d.ts +48 -0
- package/dist/model/scan.js +59 -0
- package/dist/model/server.d.ts +127 -0
- package/dist/model/server.js +243 -0
- package/dist/model/tools.d.ts +61 -0
- package/dist/model/tools.js +72 -0
- package/dist/routes/catalog.d.ts +8 -0
- package/dist/routes/catalog.js +47 -0
- package/dist/routes/connect.d.ts +14 -0
- package/dist/routes/connect.js +633 -0
- package/dist/routes/oauth.d.ts +55 -0
- package/dist/routes/oauth.js +406 -0
- package/dist/routes/policy.d.ts +34 -0
- package/dist/routes/policy.js +513 -0
- package/dist/routes/runtime.d.ts +6 -0
- package/dist/routes/runtime.js +921 -0
- package/dist/routes/servers-add.d.ts +24 -0
- package/dist/routes/servers-add.js +1091 -0
- package/dist/routes/system.d.ts +4 -0
- package/dist/routes/system.js +13 -0
- package/dist/start.d.ts +56 -0
- package/dist/start.js +164 -0
- package/dist-ui/assets/Activity-BqKGpXMN.js +1 -0
- package/dist-ui/assets/Approvals-Qo7bCcli.js +1 -0
- package/dist-ui/assets/AttachApp-0zRSPgSY.js +5 -0
- package/dist-ui/assets/Connections-CE0JGe8c.js +2 -0
- package/dist-ui/assets/Gallery-B39L2Yma.js +17 -0
- package/dist-ui/assets/PreApprovals-BsIhjMqb.js +1 -0
- package/dist-ui/assets/Protection-DlB09ABa.js +1 -0
- package/dist-ui/assets/Safety-CN-oHO2h.js +1 -0
- package/dist-ui/assets/Settings-BLD7G1Ag.js +1 -0
- package/dist-ui/assets/StartPage-HuZSnmSr.js +1 -0
- package/dist-ui/assets/Suggestions-Dp7pofcs.js +1 -0
- package/dist-ui/assets/Tools-Bfot3bx5.js +4 -0
- package/dist-ui/assets/index-Khp0l1zp.js +16 -0
- package/dist-ui/assets/index-Ylyt4DEr.css +2 -0
- package/dist-ui/assets/kit-DQ7Oxf5n.js +4 -0
- package/dist-ui/brand/logo-256.png +0 -0
- package/dist-ui/brand/logo-512.png +0 -0
- package/dist-ui/brand/logo.svg +6 -0
- package/dist-ui/brand/mark.svg +5 -0
- package/dist-ui/fonts/OFL.txt +99 -0
- package/dist-ui/fonts/README.md +21 -0
- package/dist-ui/fonts/jetbrainsmono-latin.woff2 +0 -0
- package/dist-ui/fonts/manrope-latin.woff2 +0 -0
- package/dist-ui/index.html +51 -0
- package/package.json +69 -6
- package/bin/notice.js +0 -7
package/LICENSE
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
Copyright (c) 2026 Aditya Das
|
|
2
|
+
|
|
3
|
+
Required Notice: Copyright (c) 2026 Aditya Das (https://github.com/aoutix/hardened-mcp)
|
|
4
|
+
|
|
5
|
+
hardened-mcp is free to use, including at work, and you may change it for your
|
|
6
|
+
own use. You may not sell it, publish it, share copies of it, or offer it to
|
|
7
|
+
others as a service. That summary is for convenience only: the terms that apply
|
|
8
|
+
are the PolyForm Internal Use License 1.0.0 below, together with the Additional
|
|
9
|
+
Permission that follows.
|
|
10
|
+
|
|
11
|
+
## Additional Permission
|
|
12
|
+
|
|
13
|
+
In addition to the permitted purposes in the license below, the licensor
|
|
14
|
+
permits use of the software by an individual for personal purposes that are not
|
|
15
|
+
part of any business. This permission is subject to every other term of the
|
|
16
|
+
license below, and it does not allow distributing the software.
|
|
17
|
+
|
|
18
|
+
Third-party components bundled with the software keep their own licenses; see
|
|
19
|
+
THIRD-PARTY-NOTICES.md where one is included.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# PolyForm Internal Use License 1.0.0
|
|
24
|
+
|
|
25
|
+
<https://polyformproject.org/licenses/internal-use/1.0.0>
|
|
26
|
+
|
|
27
|
+
## Acceptance
|
|
28
|
+
|
|
29
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
30
|
+
|
|
31
|
+
## Copyright License
|
|
32
|
+
|
|
33
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license), and you may not distribute the software.
|
|
34
|
+
|
|
35
|
+
## Changes and New Works License
|
|
36
|
+
|
|
37
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
38
|
+
|
|
39
|
+
## Patent License
|
|
40
|
+
|
|
41
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
42
|
+
|
|
43
|
+
## Fair Use
|
|
44
|
+
|
|
45
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
46
|
+
|
|
47
|
+
## Internal Business Use
|
|
48
|
+
|
|
49
|
+
Use of the software for the internal business operations of you and your company is use for a permitted purpose.
|
|
50
|
+
|
|
51
|
+
## No Other Rights
|
|
52
|
+
|
|
53
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
54
|
+
|
|
55
|
+
## Patent Defense
|
|
56
|
+
|
|
57
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
58
|
+
|
|
59
|
+
## Violations
|
|
60
|
+
|
|
61
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
62
|
+
|
|
63
|
+
## No Liability
|
|
64
|
+
|
|
65
|
+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
66
|
+
|
|
67
|
+
## Definitions
|
|
68
|
+
|
|
69
|
+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
70
|
+
|
|
71
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
72
|
+
|
|
73
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
74
|
+
|
|
75
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
76
|
+
|
|
77
|
+
**Use** means anything you do with the software requiring one of your licenses.
|
package/README.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# hmcp-web
|
|
2
2
|
|
|
3
|
-
The hardened-mcp review console.
|
|
3
|
+
The [hardened-mcp](https://github.com/aoutix/hardened-mcp) review console.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Most people start it with [`npx hardened-mcp`](https://www.npmjs.com/package/hardened-mcp),
|
|
6
|
+
which opens this console on a getting-started guide. To run the console on its
|
|
7
|
+
own:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npx hmcp-web # http://127.0.0.1:7777, signed in through the printed link
|
|
11
|
+
npx hmcp-web --version
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Everything the gateway and the CLI can do, from a browser, in plain words: the
|
|
15
|
+
seven-step getting-started guide; adding a server from the ready-made catalog,
|
|
16
|
+
the public MCP list, or a pasted README, with **Test it** before anything is
|
|
17
|
+
saved; signing in to services that use "Sign in with…", and keys kept in a
|
|
18
|
+
locked file; connecting Claude Desktop, Claude Code, Cursor, VS Code or
|
|
19
|
+
Windsurf to a gateway in one click (and undoing it); servers added, changed or
|
|
20
|
+
removed on a running gateway without a restart; creating and starting gateways;
|
|
21
|
+
deciding approvals (once, or "don't ask again" for a while); pre-approvals;
|
|
22
|
+
what each tool may do and its input limits; turning tools off; reviewing tools
|
|
23
|
+
that changed; every policy and gateway setting, the rules and the raw files;
|
|
24
|
+
suggestions from watch-only mode; the safety check; and the activity log with
|
|
25
|
+
its integrity check.
|
|
26
|
+
|
|
27
|
+
Loopback only. Its tool lists come from what a running gateway published. The
|
|
28
|
+
one time it speaks MCP itself is **Test it**, which starts the server once, in a
|
|
29
|
+
throwaway setup with its own scratch policy, to list its tools, and then stops
|
|
30
|
+
it.
|
|
31
|
+
|
|
32
|
+
Tightening is one click. Anything that lets more through — watch-only mode, a
|
|
33
|
+
wider rule, more network access, a weaker scan — is refused until the request
|
|
34
|
+
says it was confirmed, and under `policy_overrides: false` it is refused
|
|
35
|
+
outright. The console can never change `policy_writes` or `policy_overrides`,
|
|
36
|
+
the two settings that decide what it may do. A key you type or paste goes
|
|
37
|
+
from the browser to the console once and is never sent back or shown again;
|
|
38
|
+
keys live in `~/.hmcp/secrets.json`, and gateway.yaml names them. Every change writes an audit record.
|
|
39
|
+
|
|
40
|
+
A gateway shows no tools until it has served at least once, and its tool list is
|
|
41
|
+
marked stale whenever no gateway process is alive.
|
|
42
|
+
|
|
43
|
+
The console's web page bundles React and two fonts (Manrope and JetBrains Mono);
|
|
44
|
+
their licences are in `THIRD-PARTY-NOTICES.md` and `dist-ui/fonts/OFL.txt`.
|
|
45
|
+
|
|
46
|
+
## License
|
|
47
|
+
|
|
48
|
+
Free to use, including at work, and you may change it for your own use. You may not sell it,
|
|
49
|
+
publish it, share copies of it, or offer it to others as a service. The terms are the
|
|
50
|
+
[PolyForm Internal Use License 1.0.0](https://polyformproject.org/licenses/internal-use/1.0.0)
|
|
51
|
+
with an added permission for personal use; see `LICENSE`. © 2026 Aditya Das
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Third-party notices for hmcp-web
|
|
2
|
+
|
|
3
|
+
The console's web page (`dist-ui/`) is built from this package's own code
|
|
4
|
+
together with the open-source components below. They are compiled into the
|
|
5
|
+
files under `dist-ui/assets/` and `dist-ui/fonts/`, so their notices ship here.
|
|
6
|
+
|
|
7
|
+
None of these is a runtime dependency of the Node side of the package; those
|
|
8
|
+
are installed by npm with their own licence files.
|
|
9
|
+
|
|
10
|
+
| Component | Version | Licence | Where it ends up |
|
|
11
|
+
| --- | --- | --- | --- |
|
|
12
|
+
| React | 19.3.0 | MIT | `dist-ui/assets/index-*.js` |
|
|
13
|
+
| React DOM | 19.3.0 | MIT | `dist-ui/assets/index-*.js` |
|
|
14
|
+
| scheduler (used by React DOM) | 0.28.0 | MIT | `dist-ui/assets/index-*.js` |
|
|
15
|
+
| Tailwind CSS (base styles) | 4.3.3 | MIT | `dist-ui/assets/index-*.css` |
|
|
16
|
+
| Vite (module preload helper) | 8.3.3 | MIT | `dist-ui/assets/index-*.js` |
|
|
17
|
+
| Manrope font | latin subset | SIL Open Font License 1.1 | `dist-ui/fonts/manrope-latin.woff2` |
|
|
18
|
+
| JetBrains Mono font | latin subset | SIL Open Font License 1.1 | `dist-ui/fonts/jetbrainsmono-latin.woff2` |
|
|
19
|
+
|
|
20
|
+
The full text of the font licence, with both fonts' copyright notices, is in
|
|
21
|
+
`dist-ui/fonts/OFL.txt`.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## React, React DOM and scheduler
|
|
26
|
+
|
|
27
|
+
MIT License
|
|
28
|
+
|
|
29
|
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
|
|
31
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
32
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
33
|
+
in the Software without restriction, including without limitation the rights
|
|
34
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
35
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
36
|
+
furnished to do so, subject to the following conditions:
|
|
37
|
+
|
|
38
|
+
The above copyright notice and this permission notice shall be included in all
|
|
39
|
+
copies or substantial portions of the Software.
|
|
40
|
+
|
|
41
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
42
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
43
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
44
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
45
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
46
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
47
|
+
SOFTWARE.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Tailwind CSS
|
|
52
|
+
|
|
53
|
+
MIT License
|
|
54
|
+
|
|
55
|
+
Copyright (c) Tailwind Labs, Inc.
|
|
56
|
+
|
|
57
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
58
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
59
|
+
in the Software without restriction, including without limitation the rights
|
|
60
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
61
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
62
|
+
furnished to do so, subject to the following conditions:
|
|
63
|
+
|
|
64
|
+
The above copyright notice and this permission notice shall be included in all
|
|
65
|
+
copies or substantial portions of the Software.
|
|
66
|
+
|
|
67
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
68
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
69
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
70
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
71
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
72
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
73
|
+
SOFTWARE.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Vite
|
|
78
|
+
|
|
79
|
+
MIT License
|
|
80
|
+
|
|
81
|
+
Copyright (c) 2019-present, VoidZero Inc. and Vite contributors
|
|
82
|
+
|
|
83
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
84
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
85
|
+
in the Software without restriction, including without limitation the rights
|
|
86
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
87
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
88
|
+
furnished to do so, subject to the following conditions:
|
|
89
|
+
|
|
90
|
+
The above copyright notice and this permission notice shall be included in all
|
|
91
|
+
copies or substantial portions of the Software.
|
|
92
|
+
|
|
93
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
94
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
95
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
96
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
97
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
98
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
99
|
+
SOFTWARE.
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Manrope and JetBrains Mono
|
|
104
|
+
|
|
105
|
+
Both are licensed under the SIL Open Font License, Version 1.1.
|
|
106
|
+
|
|
107
|
+
- Manrope: Copyright 2019 The Manrope Project Authors (https://github.com/googlefonts/manrope)
|
|
108
|
+
- JetBrains Mono: Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
|
|
109
|
+
|
|
110
|
+
The licence text is in `dist-ui/fonts/OFL.txt`.
|
package/bin/hmcp-web.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/*
|
|
3
|
+
* The entry point npm links as `hmcp-web`.
|
|
4
|
+
*
|
|
5
|
+
* It is this file, and not dist/cli.js, because npm links a command when it
|
|
6
|
+
* installs and only if the file is already there. dist/ does not exist in a
|
|
7
|
+
* fresh clone until the build has run, so pointing the command at it meant the
|
|
8
|
+
* command was never linked, and `npx hmcp-web` went looking on the registry.
|
|
9
|
+
*/
|
|
10
|
+
import { existsSync } from "node:fs";
|
|
11
|
+
import { fileURLToPath } from "node:url";
|
|
12
|
+
|
|
13
|
+
const cli = new URL("../dist/cli.js", import.meta.url);
|
|
14
|
+
|
|
15
|
+
if (!existsSync(fileURLToPath(cli))) {
|
|
16
|
+
process.stderr.write("hmcp-web has not been built yet. From the repository root, run:\n\n npm run build\n\n");
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
await import(cli.href);
|
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type Route } from "./http.js";
|
|
2
|
+
export interface ApiOptions {
|
|
3
|
+
readonly registryPath: string;
|
|
4
|
+
/**
|
|
5
|
+
* The port the console listens on. Route handlers cannot see the Host
|
|
6
|
+
* header, and sign-in needs the console's own address for its loopback
|
|
7
|
+
* redirect URI (http://127.0.0.1:<port>/oauth/callback).
|
|
8
|
+
*/
|
|
9
|
+
readonly consolePort?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare function buildRoutes(options: ApiOptions): Route[];
|