argsbarg 6.1.10 → 6.2.2
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/CHANGELOG.md +22 -1
- package/README.md +49 -49
- package/docs/README.md +5 -4
- package/docs/ai-skills.md +36 -23
- package/docs/bundled-docs.md +1 -1
- package/docs/cli-program.md +19 -20
- package/docs/config-schema.md +3 -3
- package/docs/configure.md +12 -16
- package/docs/developing.md +9 -9
- package/docs/mcp.md +21 -57
- package/docs/output-schema.md +3 -3
- package/examples/formats.ts +5 -6
- package/examples/full-example/AGENTS.md +75 -0
- package/examples/full-example/CLAUDE.md +1 -0
- package/examples/full-example/README.md +7 -69
- package/examples/full-example/docs/README.md +1 -1
- package/examples/full-example/docs/cli-schema.json +1 -1659
- package/examples/full-example/docs/cli.md +2 -1538
- package/examples/full-example/docs/http.md +0 -7
- package/examples/full-example/docs/mcp.md +23 -59
- package/examples/full-example/docs/openapi.json +2 -782
- package/examples/full-example/docs/skill.md +18 -14
- package/examples/full-example/justfile +5 -17
- package/examples/full-example/scripts/create-identity.ts +2 -1
- package/examples/full-example/src/commands/status/command.test.ts +2 -2
- package/examples/full-example/src/commands/status/command.ts +7 -6
- package/examples/full-example/src/program.ts +4 -10
- package/examples/full-example-json/AGENTS.md +86 -0
- package/examples/full-example-json/CLAUDE.md +1 -0
- package/examples/full-example-json/Formula/.gitkeep +0 -0
- package/examples/full-example-json/Formula/full-example-json.rb +35 -0
- package/examples/full-example-json/README.md +27 -0
- package/examples/full-example-json/biome.json +22 -0
- package/examples/full-example-json/bun.lock +48 -0
- package/examples/full-example-json/docs/README.md +27 -0
- package/examples/full-example-json/docs/cli-schema.json +2145 -0
- package/examples/full-example-json/docs/cli.md +1990 -0
- package/examples/full-example-json/docs/http.md +92 -0
- package/examples/full-example-json/docs/mcp.md +116 -0
- package/examples/full-example-json/docs/openapi.json +1246 -0
- package/examples/full-example-json/docs/skill.md +57 -0
- package/examples/full-example-json/justfile +171 -0
- package/examples/full-example-json/package.json +22 -0
- package/examples/full-example-json/scripts/create-identity.ts +12 -0
- package/examples/full-example-json/scripts/dev-formula.ts +97 -0
- package/examples/full-example-json/scripts/formula-shared.test.ts +68 -0
- package/examples/full-example-json/scripts/formula-shared.ts +170 -0
- package/examples/full-example-json/scripts/print-identity.ts +28 -0
- package/examples/full-example-json/scripts/release.ts +212 -0
- package/examples/full-example-json/src/commands/echo/command.ts +26 -0
- package/examples/full-example-json/src/commands/status/command.test.ts +10 -0
- package/examples/full-example-json/src/commands/status/command.ts +28 -0
- package/examples/full-example-json/src/index.ts +10 -0
- package/examples/full-example-json/src/program.ts +33 -0
- package/examples/full-example-json/src/types/md.d.ts +4 -0
- package/examples/full-example-json/tsconfig.json +17 -0
- package/examples/minimal.ts +17 -17
- package/examples/nested.ts +10 -10
- package/examples/option-required.ts +13 -13
- package/examples/servers.ts +10 -10
- package/index.d.ts +17 -43
- package/package.json +1 -1
- package/src/cli-tool/create.test.ts +44 -68
- package/src/cli-tool/create.ts +81 -17
- package/src/cli-tool/full-example-capabilities.test.ts +33 -18
- package/src/cli-tool/post-create.ts +31 -17
- package/src/cli-tool/program.ts +16 -7
- package/src/cli-tool/prompt.ts +27 -0
- package/src/cli-tool/run-create.ts +19 -7
- package/src/cli-tool/schemagen/schemagen.test.ts +3 -3
- package/src/configure/artifacts/install-validate.test.ts +20 -33
- package/src/configure/artifacts/paths.ts +9 -53
- package/src/configure/artifacts/status.test.ts +13 -16
- package/src/configure/artifacts/status.ts +5 -22
- package/src/configure/artifacts/target-base.ts +6 -15
- package/src/configure/artifacts/target-effective.ts +16 -54
- package/src/configure/artifacts/target-mcp-json.ts +2 -5
- package/src/configure/artifacts/target-registry.ts +0 -7
- package/src/configure/artifacts/target-scope.ts +7 -17
- package/src/configure/artifacts/target-skill.ts +6 -15
- package/src/configure/artifacts/target-types.ts +6 -54
- package/src/configure/artifacts/targets/agents-mcp.ts +11 -0
- package/src/configure/artifacts/targets/configure.ts +1 -5
- package/src/configure/artifacts/targets/index.ts +4 -44
- package/src/configure/artifacts/targets/skill.ts +12 -0
- package/src/configure/artifacts/targets.test.ts +21 -59
- package/src/configure/configure.test.ts +35 -46
- package/src/configure/index.ts +19 -19
- package/src/configure/prompt.ts +2 -12
- package/src/core/parse.test.ts +21 -32
- package/src/core/types.ts +18 -44
- package/src/core/validate.ts +28 -45
- package/src/docs/docs.test.ts +4 -4
- package/src/docs/mcp-guide.ts +41 -71
- package/src/docs/resolve.ts +1 -1
- package/src/exports/cli.ts +1 -1
- package/src/index.ts +1 -1
- package/src/skill/generate.ts +26 -45
- package/src/skill/install.ts +18 -38
- package/src/skill/naming.ts +3 -27
- package/src/test/integration/config.test.ts +3 -3
- package/src/test/integration/mcp.test.ts +4 -4
- package/{examples/mcp-test.ts → src/test/mcp-integration-fixture.ts} +20 -22
- package/src/configure/artifacts/target-mcp-cli.ts +0 -127
- package/src/configure/artifacts/targets/chatgpt-mcp.ts +0 -12
- package/src/configure/artifacts/targets/claude-code-mcp.ts +0 -15
- package/src/configure/artifacts/targets/claude-desktop-mcp.ts +0 -12
- package/src/configure/artifacts/targets/claude-skill.ts +0 -16
- package/src/configure/artifacts/targets/codex-mcp.ts +0 -25
- package/src/configure/artifacts/targets/codex-skill.ts +0 -14
- package/src/configure/artifacts/targets/cursor-mcp.ts +0 -15
- package/src/configure/artifacts/targets/cursor-skill.ts +0 -16
- package/src/configure/artifacts/targets/openclaw-mcp.ts +0 -25
- package/src/configure/artifacts/targets/openclaw-skill.ts +0 -17
- package/src/configure/artifacts/targets/opencode-mcp.ts +0 -96
- package/src/configure/artifacts/targets/opencode-skill.ts +0 -15
- /package/examples/{full-example → full-example-json}/src/commands/render-json/__generated__/RenderJsonInputSchema.json +0 -0
- /package/examples/{full-example → full-example-json}/src/commands/render-json/__generated__/index.ts +0 -0
- /package/examples/{full-example → full-example-json}/src/commands/render-json/command.test.ts +0 -0
- /package/examples/{full-example → full-example-json}/src/commands/render-json/command.ts +0 -0
- /package/examples/{full-example → full-example-json}/src/commands/render-json/types.ts +0 -0
- /package/examples/{full-example → full-example-json}/src/commands/status/__generated__/StatusJsonOutputSchema.json +0 -0
- /package/examples/{full-example → full-example-json}/src/commands/status/__generated__/index.ts +0 -0
- /package/examples/{full-example → full-example-json}/src/commands/status/types.ts +0 -0
- /package/examples/{full-example → full-example-json}/src/commands/workspaces/__generated__/WorkspaceNameInputSchema.json +0 -0
- /package/examples/{full-example → full-example-json}/src/commands/workspaces/__generated__/index.ts +0 -0
- /package/examples/{full-example → full-example-json}/src/commands/workspaces/command.test.ts +0 -0
- /package/examples/{full-example → full-example-json}/src/commands/workspaces/command.ts +0 -0
- /package/examples/{full-example → full-example-json}/src/commands/workspaces/types.ts +0 -0
- /package/examples/{full-example → full-example-json}/src/db/index.test.ts +0 -0
- /package/examples/{full-example → full-example-json}/src/db/index.ts +0 -0
- /package/examples/{full-example → full-example-json}/src/db/migrate.test.ts +0 -0
- /package/examples/{full-example → full-example-json}/src/db/migrate.ts +0 -0
- /package/examples/{full-example → full-example-json}/src/db/migrations/001_workspaces.sql +0 -0
- /package/examples/{full-example → full-example-json}/src/db/tables/workspaces.ts +0 -0
- /package/examples/{full-example → full-example-json}/src/types/argsbarg.d.ts +0 -0
|
@@ -60,14 +60,7 @@ See the argsbarg [logging guide](https://github.com/bdombro/bun-argsbarg/blob/ma
|
|
|
60
60
|
## REST routes
|
|
61
61
|
|
|
62
62
|
- `POST /echo` (CLI: `full-example echo`) — Echo a message (MCP-friendly leaf).
|
|
63
|
-
- `POST /render-json` (CLI: `full-example render-json`) — Echo a JSON message (schema-first JSON leaf demo).
|
|
64
63
|
- `POST /status` (CLI: `full-example status`) — Show app version. (flags: --json)
|
|
65
|
-
- `GET /workspaces` (CLI: `full-example workspaces get`) — List workspaces.
|
|
66
|
-
- `POST /workspaces` (CLI: `full-example workspaces post`) — Create a workspace.
|
|
67
|
-
- `GET /workspaces/{id}` (CLI: `full-example workspaces :id get`) — Get one workspace.
|
|
68
|
-
- `PUT /workspaces/{id}` (CLI: `full-example workspaces :id put`) — Replace a workspace.
|
|
69
|
-
- `PATCH /workspaces/{id}` (CLI: `full-example workspaces :id patch`) — Patch a workspace name.
|
|
70
|
-
- `DELETE /workspaces/{id}` (CLI: `full-example workspaces :id delete`) — Delete a workspace.
|
|
71
64
|
|
|
72
65
|
## Request bodies
|
|
73
66
|
|
|
@@ -6,83 +6,54 @@ full-example exposes an MCP server with features similar to the CLI.
|
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
### `
|
|
9
|
+
### `.agents` auto-install
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
When `mcpServer.enabled` is set, `configure --sync` merges this server into `~/.agents/mcp.json` per the https://dotagentsprotocol.com.
|
|
12
|
+
|
|
13
|
+
Install the CLI first so `full-example` is on your PATH (e.g. `brew install full-example`).
|
|
12
14
|
|
|
13
15
|
```bash
|
|
14
16
|
full-example configure --sync --yes
|
|
15
17
|
```
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
| Host | Config file |
|
|
20
|
-
| --- | --- |
|
|
21
|
-
| Cursor | `~/.cursor/mcp.json` (when `~/.cursor` exists) |
|
|
22
|
-
| Claude Code | `~/.claude.json` |
|
|
23
|
-
| Claude Desktop | `claude_desktop_config.json` (when Claude Desktop app data exists) |
|
|
24
|
-
| OpenCode | `~/.config/opencode/*` (when `~/.config/opencode` exists) |
|
|
25
|
-
| OpenAI Codex | `~/.codex/config.toml` via `codex mcp add` (when `codex` is on PATH) |
|
|
26
|
-
| ChatGPT desktop | `chatgpt_mcp_config.json` (when ChatGPT app data exists) |
|
|
27
|
-
|
|
28
|
-
Claude Desktop paths by platform:
|
|
29
|
-
|
|
30
|
-
- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
31
|
-
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
|
|
32
|
-
- **Linux:** `~/.config/Claude/claude_desktop_config.json`
|
|
33
|
-
|
|
34
|
-
ChatGPT desktop JSON (when auto-installed):
|
|
19
|
+
Writes or updates `~/.agents/mcp.json` with a `mcpServers` entry for this app.
|
|
35
20
|
|
|
36
|
-
|
|
37
|
-
- **Windows:** `%APPDATA%\OpenAI\ChatGPT\chatgpt_mcp_config.json`
|
|
21
|
+
### Manual client setup
|
|
38
22
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### Manual fallbacks
|
|
42
|
-
|
|
43
|
-
**OpenCode** (no `~/.config/opencode` yet):
|
|
23
|
+
Many clients do not read `~/.agents/mcp.json` yet. Copy the `mcpServers` entry from that file, or paste:
|
|
44
24
|
|
|
45
25
|
```json
|
|
46
26
|
{
|
|
47
|
-
"
|
|
48
|
-
"mcp": {
|
|
27
|
+
"mcpServers": {
|
|
49
28
|
"full_example": {
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"full-example",
|
|
29
|
+
"command": "full-example",
|
|
30
|
+
"args": [
|
|
53
31
|
"mcp"
|
|
54
|
-
]
|
|
55
|
-
"enabled": true
|
|
32
|
+
]
|
|
56
33
|
}
|
|
57
34
|
}
|
|
58
35
|
}
|
|
59
36
|
```
|
|
60
37
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
args = ["mcp"]
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
Or after installing Codex CLI: `codex mcp add full_example -- full-example mcp`.
|
|
70
|
-
|
|
71
|
-
### ChatGPT web (Connectors)
|
|
38
|
+
| Client | Config file |
|
|
39
|
+
| --- | --- |
|
|
40
|
+
| **Cursor** | `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project) |
|
|
41
|
+
| **Claude Code** | `~/.claude.json` under `mcpServers`, or project `.mcp.json` |
|
|
42
|
+
| **Claude Desktop** | See platform paths below |
|
|
72
43
|
|
|
73
|
-
|
|
44
|
+
Restart Cursor or reload MCP after editing. Restart Claude Desktop after config changes.
|
|
74
45
|
|
|
75
|
-
|
|
46
|
+
Claude Desktop config paths:
|
|
76
47
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
48
|
+
- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
49
|
+
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
|
|
50
|
+
- **Linux:** `~/.config/Claude/claude_desktop_config.json`
|
|
80
51
|
|
|
81
|
-
|
|
52
|
+
On this machine (macOS/Linux): `/Users/briandombrowski/Library/Application Support/Claude/claude_desktop_config.json`
|
|
82
53
|
|
|
83
54
|
### Manual `mcpServers` entry
|
|
84
55
|
|
|
85
|
-
|
|
56
|
+
Same shape as in `~/.agents/mcp.json`:
|
|
86
57
|
|
|
87
58
|
```json
|
|
88
59
|
{
|
|
@@ -121,14 +92,7 @@ full-example mcp
|
|
|
121
92
|
## Exposed tools
|
|
122
93
|
|
|
123
94
|
- `full-example echo` — echo — Echo a message (MCP-friendly leaf).
|
|
124
|
-
- `full-example render-json` — render-json — Echo a JSON message (schema-first JSON leaf demo).
|
|
125
95
|
- `full-example status` — status — Show app version. (flags: --json)
|
|
126
|
-
- `full-example workspaces get` — workspaces get — List workspaces.
|
|
127
|
-
- `full-example workspaces post` — workspaces post — Create a workspace.
|
|
128
|
-
- `full-example workspaces :id get` — workspaces :id get — Get one workspace.
|
|
129
|
-
- `full-example workspaces :id put` — workspaces :id put — Replace a workspace.
|
|
130
|
-
- `full-example workspaces :id patch` — workspaces :id patch — Patch a workspace name.
|
|
131
|
-
- `full-example workspaces :id delete` — workspaces :id delete — Delete a workspace.
|
|
132
96
|
|
|
133
97
|
## Tool arguments
|
|
134
98
|
|