@kodycodes/cli 1.0.1 → 1.2.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.
@@ -1,59 +1,69 @@
1
1
  ---
2
2
  name: kody
3
3
  description: >
4
- Use the Kody CLI to log in, search Kody capabilities, and execute
5
- sandboxed modules against kody.codes. Use when the user mentions Kody,
6
- kody.codes, durable agent tasks, or wants to search/execute via `kody`.
4
+ Install Kody as a remote MCP server, then use `search` and `execute`
5
+ from the host agent. Use when the user mentions Kody, kody.codes,
6
+ durable agent tasks, or wants to search/execute via Kody.
7
7
  ---
8
8
 
9
- # Kody CLI
9
+ # Kody
10
10
 
11
- Kody is a remote MCP personal assistant. This skill uses the `@kodycodes/cli`
12
- package — a local MCP client — instead of configuring an MCP server by hand.
11
+ Kody is a remote MCP personal assistant. **Long term, install it as an MCP
12
+ server in this agent** and call `search` / `execute` directly. Do not keep
13
+ using the CLI as the everyday interface once the server is connected.
13
14
 
14
- ## Install
15
+ `@kodycodes/cli` is a bootstrapper: it writes host MCP config and can act as
16
+ a local client when MCP is not available.
17
+
18
+ ## Install the MCP server (recommended)
15
19
 
16
20
  ```bash
17
- npm install -g @kodycodes/cli
18
- # or
19
- npx @kodycodes/cli --help
21
+ npx @kodycodes/cli install
20
22
  ```
21
23
 
22
- Then install this skill into the current host if it is not already present:
24
+ That command lists **running local** agents and writes each host's remote
25
+ MCP entry for `https://kody.codes/mcp`. Host OAuth stays in that client —
26
+ do not run `kody login` for the host connection.
23
27
 
24
- ```bash
25
- npx @kodycodes/cli skill install
26
- ```
28
+ After install, prefer the Kody MCP tools in this agent:
29
+
30
+ - `search` — discover capabilities, packages, and entity detail
31
+ - `execute` — run one-off modules against those capabilities
32
+
33
+ Prefer `search` before `execute`. If Kody is already connected here, skip
34
+ the CLI and use those tools.
35
+
36
+ For web-based clients (ChatGPT, Claude.ai, Grok), point the user at
37
+ https://kody.codes/onboarding.
27
38
 
28
- ## Login
39
+ To copy this skill into Claude Code / Cursor / Agents:
29
40
 
30
41
  ```bash
31
- kody login
42
+ npx @kodycodes/cli skill install
32
43
  ```
33
44
 
34
- The CLI opens a browser for Kody OAuth (PKCE + Client ID Metadata Documents).
35
- If a browser cannot open, it prints the URL. Tokens (access + refresh) are
36
- stored in the OS keychain on macOS, Windows, and Linux. Linux without Secret
37
- Service falls back to a `0600` file under `$XDG_CONFIG_HOME/kody`.
45
+ ## CLI fallback
38
46
 
39
- Never ask the user to paste tokens into chat.
40
-
41
- ## Use Kody
47
+ Use the CLI only for bootstrap, scripting, or when this agent cannot reach
48
+ Kody over MCP.
42
49
 
43
50
  ```bash
51
+ npm install -g @kodycodes/cli
52
+ kody login
44
53
  kody search "what can you do"
45
54
  kody search --domain email
46
55
  kody execute --code "import { kody } from 'kody:runtime'\nexport default async function main() { return await kody.search({ query: 'what can you do' }) }"
47
- ```
48
-
49
- `search` and `execute` are Kody's only MCP tools. Prefer `kody search` before
50
- `kody execute`. Add `--json` when you need structured output.
51
-
52
- ```bash
53
56
  kody status
54
57
  kody whoami
55
58
  kody logout
56
59
  ```
57
60
 
61
+ The CLI opens a browser for Kody OAuth (PKCE + Client ID Metadata Documents).
62
+ If a browser cannot open, it prints the URL. Tokens (access + refresh) are
63
+ stored in the OS keychain on macOS, Windows, and Linux. Linux without Secret
64
+ Service falls back to a `0600` file under `$XDG_CONFIG_HOME/kody`.
65
+
66
+ Never ask the user to paste tokens into chat.
67
+
58
68
  Override the MCP URL with `--mcp-url` or `KODY_MCP_URL` for preview or local
59
69
  servers. Default: `https://kody.codes/mcp`.