@morphism-systems/agentic-math 0.1.0 → 0.1.3
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 +61 -46
- package/package.json +39 -38
package/README.md
CHANGED
|
@@ -1,46 +1,61 @@
|
|
|
1
|
-
# @morphism-systems/agentic-math
|
|
2
|
-
|
|
3
|
-
Category theory MCP server for AI agents. Provides morphism composition, functor mapping, natural transformations, entropy computation, and convergence checking.
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npx @morphism-systems/agentic-math
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## MCP Config
|
|
12
|
-
|
|
13
|
-
Add to your `.claude/mcp.json` or Cursor MCP settings:
|
|
14
|
-
|
|
15
|
-
```json
|
|
16
|
-
{
|
|
17
|
-
"mcpServers": {
|
|
18
|
-
"morphism-math": {
|
|
19
|
-
"command": "npx",
|
|
20
|
-
"args": ["@morphism-systems/agentic-math"]
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Tools
|
|
27
|
-
|
|
28
|
-
| Tool | Description |
|
|
29
|
-
|------|-------------|
|
|
30
|
-
| `morphism_compose` | Compose two morphisms f . g |
|
|
31
|
-
| `functor_map_object` | Apply a functor to an object |
|
|
32
|
-
| `functor_map_morphism` | Apply a functor to a morphism |
|
|
33
|
-
| `natural_transform_check` | Check naturality condition |
|
|
34
|
-
| `natural_transform_compose` | Vertical composition of natural transformations |
|
|
35
|
-
| `entropy_compute` | Shannon entropy H(s) = -sum(p_i ln(p_i)) |
|
|
36
|
-
| `convergence_check` | Check if governance converges (kappa < 1) |
|
|
37
|
-
| `drift_check` | Compute drift delta between states |
|
|
38
|
-
| `analyze_scores` | Full governance score analysis |
|
|
39
|
-
|
|
40
|
-
##
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
1
|
+
# @morphism-systems/agentic-math
|
|
2
|
+
|
|
3
|
+
Category theory MCP server for AI agents. Provides morphism composition, functor mapping, natural transformations, entropy computation, and convergence checking.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx @morphism-systems/agentic-math
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## MCP Config
|
|
12
|
+
|
|
13
|
+
Add to your `.claude/mcp.json` or Cursor MCP settings:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"mcpServers": {
|
|
18
|
+
"morphism-math": {
|
|
19
|
+
"command": "npx",
|
|
20
|
+
"args": ["@morphism-systems/agentic-math"]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Tools
|
|
27
|
+
|
|
28
|
+
| Tool | Description |
|
|
29
|
+
|------|-------------|
|
|
30
|
+
| `morphism_compose` | Compose two morphisms f . g |
|
|
31
|
+
| `functor_map_object` | Apply a functor to an object |
|
|
32
|
+
| `functor_map_morphism` | Apply a functor to a morphism |
|
|
33
|
+
| `natural_transform_check` | Check naturality condition |
|
|
34
|
+
| `natural_transform_compose` | Vertical composition of natural transformations |
|
|
35
|
+
| `entropy_compute` | Shannon entropy H(s) = -sum(p_i ln(p_i)) |
|
|
36
|
+
| `convergence_check` | Check if governance converges (kappa < 1) |
|
|
37
|
+
| `drift_check` | Compute drift delta between states |
|
|
38
|
+
| `analyze_scores` | Full governance score analysis |
|
|
39
|
+
|
|
40
|
+
## Example
|
|
41
|
+
|
|
42
|
+
```jsonc
|
|
43
|
+
// Tool: morphism_compose
|
|
44
|
+
// Input: { "f": { "name": "g", "source": "B", "target": "C" },
|
|
45
|
+
// "g": { "name": "f", "source": "A", "target": "B" } }
|
|
46
|
+
// Output:
|
|
47
|
+
{ "name": "g . f", "source": "A", "target": "C" }
|
|
48
|
+
|
|
49
|
+
// Tool: entropy_compute
|
|
50
|
+
// Input: { "values": [0.9, 0.8, 1.0, 0.7, 1.0, 0.95, 0.85] }
|
|
51
|
+
// Output:
|
|
52
|
+
{ "entropy": 0.42, "normalized": true }
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Why Morphism
|
|
56
|
+
|
|
57
|
+
Morphism provides mathematically-grounded governance for AI agent fleets. Instead of heuristics, it uses category theory and the Banach contraction principle to guarantee convergence. [Learn more](https://morphism.systems).
|
|
58
|
+
|
|
59
|
+
## License
|
|
60
|
+
|
|
61
|
+
Business Source License 1.1 (BUSL-1.1) — Change Date 2030-02-20, Change License Apache 2.0
|
package/package.json
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@morphism-systems/agentic-math",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Category theory MCP server — morphisms, functors, natural transformations, convergence",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@morphism-systems/agentic-math",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "Category theory MCP server — morphisms, functors, natural transformations, convergence",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"agentic-math": "dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsup src/index.ts --format esm --dts --clean",
|
|
13
|
+
"typecheck": "tsc --noEmit",
|
|
14
|
+
"test": "vitest run",
|
|
15
|
+
"lint": "echo 'no lint configured'"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"mcp",
|
|
19
|
+
"model-context-protocol",
|
|
20
|
+
"category-theory",
|
|
21
|
+
"morphism",
|
|
22
|
+
"functor",
|
|
23
|
+
"natural-transformation",
|
|
24
|
+
"ai-governance"
|
|
25
|
+
],
|
|
26
|
+
"license": "BUSL-1.1",
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
32
|
+
"zod": "^3.24.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"tsup": "^8.4.0",
|
|
36
|
+
"typescript": "^5.8.3",
|
|
37
|
+
"vitest": "^3.0.0"
|
|
38
|
+
}
|
|
39
|
+
}
|