Skip to content

Commit dceb11e

Browse files
committed
Update SKILL.md
1 parent 24d5345 commit dceb11e

1 file changed

Lines changed: 98 additions & 26 deletions

File tree

skills/mcp-cli-ent/SKILL.md

Lines changed: 98 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,110 @@ description: Interact with Model Context Protocol (MCP) servers using the mcp-cl
55

66
# MCP CLI-Ent
77

8-
A Go-based standalone CLI client for Model Context Protocol (MCP) servers. Allows direct interaction and persistent daemon-managed browser sessions.
8+
A Go-based standalone CLI client for Model Context Protocol (MCP) servers. Agent-first: JSON output by default, structured for programmatic consumption.
99

1010
## Quick Start
1111

12-
Find and call tools directly:
13-
14-
```bash
15-
# List all tools and copy-pasteable call commands
16-
mcp-cli-ent
17-
18-
# Call a tool with parameters (using the default 'call' or deprecated 'call-tool')
19-
mcp-cli-ent call brave-search brave_web_search '{"query":"gemini models"}'
20-
```
21-
22-
## Workflows
23-
24-
### 1. Tool Discovery & Execution
25-
- [ ] Run `mcp-cli-ent` to see available servers, tools, and copy-pasteable invocation examples.
26-
- [ ] Use `--verbose` for detailed descriptions: `mcp-cli-ent list-tools <server-name> --verbose`.
27-
- [ ] Execute the tool: `mcp-cli-ent call <server-name> <tool-name> '<json-arguments>'` (or deprecated `call-tool`).
28-
- [ ] Check parameters and types: ensure integers, booleans, and arrays are unquoted in the JSON payload (e.g. `0`, `true`, `[]`).
12+
```bash
13+
# Discover all available tools (compact index: name + description per tool)
14+
mcp-cli-ent
15+
16+
# List tools from a specific server (full JSON with params, call examples)
17+
mcp-cli-ent list-tools context7
18+
19+
# Search for a tool across all servers
20+
mcp-cli-ent --search "wiki"
21+
22+
# Call a tool
23+
mcp-cli-ent call brave-search brave_web_search '{"query":"gemini models"}'
24+
25+
# Human-readable terminal output (terse, 1 line per tool)
26+
mcp-cli-ent list-tools context7 --human
27+
28+
# Expanded human output (desc, params, call example)
29+
mcp-cli-ent list-tools context7 --human --verbose
30+
```
31+
32+
## Output Modes
33+
34+
### Bare invocation: Compact Discovery Index
35+
36+
Running `mcp-cli-ent` with no args returns a compact index — one `name` + `description` per tool, grouped by server. No params, no call examples, no schema. Use `list-tools <server>` when ready to call.
37+
38+
```json
39+
{
40+
"context7": [
41+
{ "name": "resolve-library-id", "description": "Resolves a package name to a Context7 library ID" },
42+
{ "name": "query-docs", "description": "Retrieves up-to-date documentation and code examples" }
43+
],
44+
"deepwiki": [
45+
{ "name": "read_wiki_structure", "description": "Get documentation topics for a GitHub repository" }
46+
]
47+
}
48+
```
49+
50+
### `list-tools <server>`: Full Tool Details
51+
52+
Returns full JSON with `name`, `description`, `params`, `call` per tool.
53+
54+
```json
55+
[
56+
{
57+
"name": "resolve-library-id",
58+
"description": "Resolves a package/product name...",
59+
"params": ["libraryName", "query"],
60+
"call": "mcp-cli-ent call context7 resolve-library-id '{\"libraryName\":\"...\", \"query\":\"...\"}'"
61+
}
62+
]
63+
```
64+
65+
### `--human`: Terminal Output
66+
67+
Terse by default (1 line per tool). `--human --verbose` expands to 4-line format (name, desc, params, call).
68+
69+
### `--verbose` (JSON mode): Adds full `schema` field with complete `inputSchema`.
70+
71+
### Error responses
72+
73+
Empty results or no matches return structured JSON errors:
74+
75+
```json
76+
{ "error": true, "error_code": "no_match", "error_description": "No tools matching 'wiki' found" }
77+
{ "error": true, "error_code": "no_tools", "error_description": "No tools found on any server" }
78+
```
79+
80+
## Flags
81+
82+
| Flag | Description |
83+
|------|-------------|
84+
| `--search <query>` | Filter tools by name or description (case-insensitive). Works in both JSON and human modes. |
85+
| `--human` | Switch from JSON to human-readable terminal output. |
86+
| `-v, --verbose` | JSON: include full `schema`. Human: expanded 4-line format. |
87+
| `--refresh` | Force refresh tools cache. |
88+
| `--clear-cache` | Clear tools cache. |
89+
| `--config <path>` | Custom config file path. |
90+
| `--timeout <sec>` | Request timeout (default 30). |
91+
92+
## Workflows
93+
94+
### 1. Tool Discovery & Execution
95+
- [ ] Run `mcp-cli-ent` to get compact discovery index (all servers, all tools).
96+
- [ ] Filter with `--search "keyword"` to find specific capabilities.
97+
- [ ] Run `mcp-cli-ent list-tools <server>` for full params and call examples.
98+
- [ ] Use `--verbose` to get full parameter schemas when needed.
99+
- [ ] Execute: `mcp-cli-ent call <server> <tool> '<json-args>'`.
100+
- [ ] Ensure integers, booleans, arrays are unquoted in JSON payload (`0`, `true`, `[]`).
29101

30102
### 2. Session Management
31-
For browser-based servers requiring persistent state (e.g. Chrome DevTools, Playwright):
32-
- [ ] Check session status: `mcp-cli-ent session list`
103+
For browser-based servers requiring persistent state (Chrome DevTools, Playwright):
104+
- [ ] Check sessions: `mcp-cli-ent session list`
33105
- [ ] Start persistent session: `mcp-cli-ent session start <server-name>`
34-
- [ ] Call tool using stateful session (automatically routed): `mcp-cli-ent call <server-name> <tool-name> '<args>'`
106+
- [ ] Call tool (auto-routed through session): `mcp-cli-ent call <server> <tool> '<args>'`
35107
- [ ] Stop session: `mcp-cli-ent session stop <server-name>`
36108

37109
### 3. Daemon Management
38-
The background daemon persists sessions across CLI command invocations:
39-
- [ ] Check daemon state: `mcp-cli-ent daemon status`
40-
- [ ] Start daemon: `mcp-cli-ent daemon start`
41-
- [ ] Stop daemon: `mcp-cli-ent daemon stop`
42-
- [ ] View daemon logs: `mcp-cli-ent daemon logs`
110+
Background daemon persists sessions across CLI invocations:
111+
- [ ] Check state: `mcp-cli-ent daemon status`
112+
- [ ] Start: `mcp-cli-ent daemon start`
113+
- [ ] Stop: `mcp-cli-ent daemon stop`
114+
- [ ] Logs: `mcp-cli-ent daemon logs`

0 commit comments

Comments
 (0)