@zleap-ai/sag-cli 0.4.1 → 0.5.0
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.en.md +36 -0
- package/README.md +36 -0
- package/dist/cli.js +5024 -1372
- package/dist/cli.js.map +1 -1
- package/package.json +3 -2
- package/skill/SKILL.md +2 -0
- package/skills/sag-mcp/SKILL.md +17 -0
- package/skills/sag-mcp/references/cli-reference.md +9 -0
- package/skills/sag-mcp/references/tool-safety.md +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zleap-ai/sag-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Command-line client and diagnostics for SAG knowledge bases",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"README.md",
|
|
12
12
|
"README.en.md",
|
|
13
13
|
"LICENSE",
|
|
14
|
-
"skill"
|
|
14
|
+
"skill",
|
|
15
|
+
"skills/sag-mcp"
|
|
15
16
|
],
|
|
16
17
|
"scripts": {
|
|
17
18
|
"build": "tsup",
|
package/skill/SKILL.md
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sag-mcp
|
|
3
|
+
description: Use connected enterprise SAG MCP servers to search, read, and manage authorized knowledge.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SAG MCP
|
|
7
|
+
|
|
8
|
+
1. Identify the connected enterprise SAG MCP servers available in this task.
|
|
9
|
+
2. When there is only one SAG MCP server, use it directly.
|
|
10
|
+
3. When several SAG MCP servers are available, select the server that matches the user's stated organization or server context.
|
|
11
|
+
4. If that context does not identify one server, ask the user which server to use before making a call.
|
|
12
|
+
5. Read the current tool list before choosing a tool. Use only tools that the selected server lists.
|
|
13
|
+
6. Read [the CLI reference](references/cli-reference.md) when you need tool discovery, call details, or input formatting.
|
|
14
|
+
7. Read [the tool safety rules](references/tool-safety.md) before any action that can change knowledge or whose safety is unknown.
|
|
15
|
+
8. Use returned evidence and identifiers accurately. State when the server has no result or does not authorize the requested action.
|
|
16
|
+
|
|
17
|
+
Completion: answer from the selected server's returned information, or clearly state why no authorized result is available.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# SAG MCP tool reference
|
|
2
|
+
|
|
3
|
+
1. Open the selected server's tool list at the start of the task and again when the available tools may have changed.
|
|
4
|
+
2. Select a listed tool whose description fits the user's requested outcome.
|
|
5
|
+
3. Read that tool's input schema. Build one input object that contains only the required and relevant fields.
|
|
6
|
+
4. Call the tool through the Agent's MCP interface with the selected server, tool name, and input object.
|
|
7
|
+
5. Read the returned result before deciding whether another tool is needed. Preserve source references and identifiers supplied by the server.
|
|
8
|
+
|
|
9
|
+
Do not invent tool names, input fields, source references, or results. Report missing permission, unavailable tools, and empty results plainly.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# SAG MCP tool safety
|
|
2
|
+
|
|
3
|
+
Use MCP tool annotations to decide whether a call needs confirmation.
|
|
4
|
+
|
|
5
|
+
- Call a tool without confirmation only when `annotations.readOnlyHint === true`.
|
|
6
|
+
- Ask for confirmation before a tool call when `annotations.destructiveHint === true`.
|
|
7
|
+
- Ask for confirmation before a tool call when `annotations.readOnlyHint === false`.
|
|
8
|
+
- Ask for confirmation before a tool call when annotations are missing or do not establish that it is read-only.
|
|
9
|
+
|
|
10
|
+
Before asking, state the selected server, the tool, the intended effect, and the relevant input. Wait for the user's clear confirmation before making the call.
|