@pandanpc/mcp-server 0.1.58 → 0.1.59
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/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
# Cross-engine workers
|
|
1
|
+
# Cross-connection and cross-engine workers
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Keep ordinary delegation on the current connection and engine in that engine's native subagent tools. This preserves native child creation, messaging, waiting and follow-up, including children restored with an existing session.
|
|
4
|
+
|
|
5
|
+
Use these PandaNpc tools only when the user names or the task requires a different connection or engine/model (Codex, GPT, Astra, Sol, gpt-6-astra, gpt-5.6-sol, PandaCode, Kimi, remote Claude Code). No project skill is required.
|
|
4
6
|
|
|
5
7
|
## Model -> engine
|
|
6
8
|
|
|
@@ -12,8 +14,9 @@ Use these tools when the user names an engine or model (Codex, GPT, Astra, Sol,
|
|
|
12
14
|
|
|
13
15
|
## Steps
|
|
14
16
|
|
|
15
|
-
1.
|
|
16
|
-
2. `
|
|
17
|
+
1. Confirm that the target differs from the current connection or engine. For same-connection, same-engine work, stop here and use native subagent tools.
|
|
18
|
+
2. `list_engine_models(engine?, cwd?)` -> choose an online `connection_id` whose engine serves the model.
|
|
19
|
+
3. `spawn_engine_agent(name, connection_id, task, model?, reasoning_effort?)`.
|
|
17
20
|
- Omit `parent_session_id`: the worker is attached to the calling session, which receives the reply. Check the echoed `parent` (id, title, engine, connection) in the result.
|
|
18
21
|
- Attach to a different session only on purpose: pass its PandaNpc `parent_session_id` with `parent_override: true`. A mismatch without the override is rejected. Never guess the id from a URL or a native thread id.
|
|
19
22
|
- `parent_link_warning` in a result means the sidebar link failed and the worker is listed on its own.
|
|
@@ -21,8 +24,8 @@ Use these tools when the user names an engine or model (Codex, GPT, Astra, Sol,
|
|
|
21
24
|
- Workers always run with full access and never prompt (Codex: approval never + danger-full-access; Claude: bypassPermissions), regardless of the connection's permission setting.
|
|
22
25
|
- The session is filed under the connection's project whose directory matches the parent session's cwd; pass `project` (folder_id, name or absolute directory) to choose another. The response's `project` field says which one was used.
|
|
23
26
|
- `request_id` is optional; pass a stable value to retry safely.
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
4. Wait for the plaintext teammate reply in the parent session. If none arrives, call `engine_agent_result(agent_id)`.
|
|
28
|
+
5. Follow-ups to that PandaNpc worker only: `send_engine_agent(agent_id, task)`. Native children continue through their native follow-up/message tools. Interrupt a PandaNpc worker with `stop_engine_agent(agent_id)` (Esc semantics; background subagents and other sessions keep running).
|
|
26
29
|
|
|
27
30
|
## Verify
|
|
28
31
|
|