@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.
Files changed (2) hide show
  1. package/README.md +61 -46
  2. 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
- ## Why Morphism
41
-
42
- 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).
43
-
44
- ## License
45
-
46
- MIT
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.0",
4
- "description": "Category theory MCP server — morphisms, functors, natural transformations, convergence",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "bin": {
8
- "agentic-math": "dist/index.js"
9
- },
10
- "scripts": {
11
- "build": "tsup src/index.ts --format esm --dts --clean",
12
- "typecheck": "tsc --noEmit",
13
- "test": "vitest run",
14
- "lint": "echo 'no lint configured'"
15
- },
16
- "keywords": [
17
- "mcp",
18
- "model-context-protocol",
19
- "category-theory",
20
- "morphism",
21
- "functor",
22
- "natural-transformation",
23
- "ai-governance"
24
- ],
25
- "license": "BUSL-1.1",
26
- "publishConfig": {
27
- "access": "public"
28
- },
29
- "dependencies": {
30
- "@modelcontextprotocol/sdk": "^1.12.1",
31
- "zod": "^3.24.0"
32
- },
33
- "devDependencies": {
34
- "tsup": "^8.4.0",
35
- "typescript": "^5.8.3",
36
- "vitest": "^3.0.0"
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
+ }