@mastyf_ai/tool-registry 0.1.0 → 0.1.1
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 +31 -0
- package/package.json +13 -4
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @mastyf_ai/tool-registry
|
|
2
|
+
|
|
3
|
+
Tool registry SDK for mastyf.ai — the open-source MCP runtime security proxy.
|
|
4
|
+
|
|
5
|
+
Register and manage MCP tools with trust scoring, policy enforcement, and fleet management.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @mastyf_ai/tool-registry
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { ToolRegistry } from '@mastyf_ai/tool-registry';
|
|
17
|
+
|
|
18
|
+
const registry = new ToolRegistry({
|
|
19
|
+
apiKey: process.env.MASTYF_API_KEY,
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// Check trust score before installing a tool
|
|
23
|
+
const score = await registry.getTrustScore('some-mcp-package');
|
|
24
|
+
console.log(score.grade); // 'A', 'B', 'C', etc.
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Related
|
|
28
|
+
|
|
29
|
+
- [mastyf.ai](https://github.com/mastyf-ai/mastyf.ai) — Main project
|
|
30
|
+
- [Cloud dashboard](https://mastyf-live.vercel.app) — Policy editor and fleet management
|
|
31
|
+
- [Python SDK](https://pypi.org/project/mastyf-ai/)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastyf_ai/tool-registry",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Mastyf AI MCP Tool Registry
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Mastyf AI MCP Tool Registry \u2014 discover, score, and publish MCP servers with trust grades",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -9,13 +9,22 @@
|
|
|
9
9
|
"./scanner": "./dist/scanner.js",
|
|
10
10
|
"./api": "./dist/api.js"
|
|
11
11
|
},
|
|
12
|
-
"files": [
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
13
16
|
"scripts": {
|
|
14
17
|
"build": "tsc",
|
|
15
18
|
"prepublishOnly": "tsc",
|
|
16
19
|
"dev": "tsx src/server.ts",
|
|
17
20
|
"typecheck": "tsc --noEmit"
|
|
18
21
|
},
|
|
19
|
-
"keywords": [
|
|
22
|
+
"keywords": [
|
|
23
|
+
"mcp",
|
|
24
|
+
"registry",
|
|
25
|
+
"trust-score",
|
|
26
|
+
"security",
|
|
27
|
+
"mastyf"
|
|
28
|
+
],
|
|
20
29
|
"license": "MIT"
|
|
21
30
|
}
|