@minasoft/mina-ai-router 0.1.0 → 0.1.4
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
CHANGED
|
@@ -2,52 +2,89 @@
|
|
|
2
2
|
|
|
3
3
|
Mina AI Router is a local control plane for visible CLI AI agents.
|
|
4
4
|
|
|
5
|
-
It
|
|
5
|
+
It runs Codex or Claude sessions in `tmux`, registers them as project-scoped agents, exposes them through a local MCP server, and gives you a browser UI to inspect and control the live sessions.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
GitHub: [stevennana/mina-ai-router](https://github.com/stevennana/mina-ai-router)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
- Shows live agents in a router-centered flow diagram.
|
|
11
|
-
- Starts Codex or Claude agents in `tmux` from a project directory.
|
|
12
|
-
- Includes a repo-local agent registration skill for self-registration.
|
|
13
|
-
- Captures and controls each agent terminal from the browser.
|
|
14
|
-
- Stores agent metadata, capability notices, and routed request history locally.
|
|
15
|
-
- Lets one registered agent ask another registered agent for project-specific context.
|
|
16
|
-
|
|
17
|
-
## Install the `mair` Command
|
|
9
|
+
## Install
|
|
18
10
|
|
|
19
11
|
```sh
|
|
20
12
|
npm install -g @minasoft/mina-ai-router
|
|
21
13
|
mair version
|
|
22
14
|
```
|
|
23
15
|
|
|
24
|
-
|
|
16
|
+
## Start
|
|
25
17
|
|
|
26
18
|
```sh
|
|
27
19
|
mair server start --port 3333
|
|
20
|
+
mair server status
|
|
28
21
|
```
|
|
29
22
|
|
|
30
|
-
Open:
|
|
23
|
+
Open the Web UI:
|
|
31
24
|
|
|
32
25
|
```text
|
|
33
26
|
http://127.0.0.1:3333/
|
|
34
27
|
```
|
|
35
28
|
|
|
36
|
-
##
|
|
29
|
+
## Connect Codex or Claude
|
|
30
|
+
|
|
31
|
+
Codex:
|
|
37
32
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
- [HTTP UI and MCP Server](./docs/HTTP-UI-MCP.md): server, MCP, and command reference.
|
|
44
|
-
- [Agent Registration Skill](./skills/mina-ai-router-agent/SKILL.md): instructions used by Codex or Claude to register the current visible CLI session.
|
|
45
|
-
- [Troubleshooting](./docs/TROUBLESHOOTING.md): common routing and tmux issues.
|
|
33
|
+
```sh
|
|
34
|
+
codex mcp remove mina-ai-router
|
|
35
|
+
codex mcp add mina-ai-router --url http://127.0.0.1:3333/mcp
|
|
36
|
+
codex mcp get mina-ai-router
|
|
37
|
+
```
|
|
46
38
|
|
|
47
|
-
|
|
39
|
+
Claude:
|
|
48
40
|
|
|
49
41
|
```sh
|
|
50
|
-
|
|
42
|
+
claude mcp remove mina-ai-router
|
|
43
|
+
claude mcp add --transport http mina-ai-router http://127.0.0.1:3333/mcp
|
|
44
|
+
claude mcp get mina-ai-router
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Create an Agent
|
|
48
|
+
|
|
49
|
+
From a project directory:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
mair codex
|
|
51
53
|
```
|
|
52
54
|
|
|
53
|
-
|
|
55
|
+
or:
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
mair claude
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
You can also create agents from the Web UI by right-clicking the `Live Agent Flow` area and choosing `Create tmux Agent`.
|
|
62
|
+
|
|
63
|
+
## What You Get
|
|
64
|
+
|
|
65
|
+
- Local HTTP UI at `http://127.0.0.1:3333/`
|
|
66
|
+
- Local MCP endpoint at `http://127.0.0.1:3333/mcp`
|
|
67
|
+
- `mair` CLI for server and agent controls
|
|
68
|
+
- Browser terminal preview for tmux-backed agents
|
|
69
|
+
- Agent capability summaries and editable metadata
|
|
70
|
+
- MCP tools: `list_agents`, `register_agent`, `call_agent`, `get_request_status`
|
|
71
|
+
- Repo-local skill for agent self-registration
|
|
72
|
+
|
|
73
|
+
## Guides
|
|
74
|
+
|
|
75
|
+
- [Getting Started](https://github.com/stevennana/mina-ai-router/blob/main/docs/GETTING-STARTED.md)
|
|
76
|
+
- [User Start Guide](https://github.com/stevennana/mina-ai-router/blob/main/docs/USER-START-GUIDE.md)
|
|
77
|
+
- [MCP Client Setup](https://github.com/stevennana/mina-ai-router/blob/main/docs/MCP-CLIENT-SETUP.md)
|
|
78
|
+
- [Skill Install Guide](https://github.com/stevennana/mina-ai-router/blob/main/docs/SKILL-INSTALL-GUIDE.md)
|
|
79
|
+
- [HTTP UI and MCP Server](https://github.com/stevennana/mina-ai-router/blob/main/docs/HTTP-UI-MCP.md)
|
|
80
|
+
- [Troubleshooting](https://github.com/stevennana/mina-ai-router/blob/main/docs/TROUBLESHOOTING.md)
|
|
81
|
+
- [Release Guide](https://github.com/stevennana/mina-ai-router/blob/main/docs/RELEASE.md)
|
|
82
|
+
|
|
83
|
+
## Development
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
git clone https://github.com/stevennana/mina-ai-router.git
|
|
87
|
+
cd mina-ai-router
|
|
88
|
+
npm install
|
|
89
|
+
npm run verify
|
|
90
|
+
```
|
|
@@ -7,7 +7,7 @@ const node_child_process_1 = require("node:child_process");
|
|
|
7
7
|
const src_1 = require("../../../packages/core/src");
|
|
8
8
|
const src_2 = require("../../../packages/transports/src");
|
|
9
9
|
const statePath = process.env.MINA_ROUTER_STATE ?? (0, node_path_1.join)(process.cwd(), "data", "router-state.json");
|
|
10
|
-
const version = "0.1.
|
|
10
|
+
const version = "0.1.4";
|
|
11
11
|
const serverPidPath = process.env.MINA_SERVER_PID ?? (0, node_path_1.join)(process.cwd(), "data", "mair-server.json");
|
|
12
12
|
async function main(argv) {
|
|
13
13
|
const command = argv[2];
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minasoft/mina-ai-router",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Local MCP router and Web UI for visible tmux-backed AI agents.",
|
|
5
|
+
"homepage": "https://github.com/stevennana/mina-ai-router#readme",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/stevennana/mina-ai-router.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/stevennana/mina-ai-router/issues"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"mcp",
|
|
15
|
+
"ai-agent",
|
|
16
|
+
"codex",
|
|
17
|
+
"claude",
|
|
18
|
+
"tmux",
|
|
19
|
+
"router"
|
|
20
|
+
],
|
|
5
21
|
"main": "dist/apps/cli/src/index.js",
|
|
6
22
|
"bin": {
|
|
7
23
|
"mair": "dist/apps/cli/src/index.js",
|