@kodycodes/cli 0.0.0 → 1.0.1
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/LICENSE +21 -0
- package/README.md +63 -1
- package/dist/auth.d.ts +39 -0
- package/dist/auth.js +225 -0
- package/dist/auth.js.map +1 -0
- package/dist/bin.d.ts +2 -0
- package/dist/bin.js +5 -0
- package/dist/bin.js.map +1 -0
- package/dist/cli.d.ts +31 -0
- package/dist/cli.js +206 -0
- package/dist/cli.js.map +1 -0
- package/dist/defaults.d.ts +14 -0
- package/dist/defaults.js +19 -0
- package/dist/defaults.js.map +1 -0
- package/dist/help.d.ts +1 -0
- package/dist/help.js +19 -0
- package/dist/help.js.map +1 -0
- package/dist/mcp.d.ts +27 -0
- package/dist/mcp.js +104 -0
- package/dist/mcp.js.map +1 -0
- package/dist/oauth-provider.d.ts +12 -0
- package/dist/oauth-provider.js +89 -0
- package/dist/oauth-provider.js.map +1 -0
- package/dist/open-url.d.ts +1 -0
- package/dist/open-url.js +21 -0
- package/dist/open-url.js.map +1 -0
- package/dist/package-info.d.ts +1 -0
- package/dist/package-info.js +7 -0
- package/dist/package-info.js.map +1 -0
- package/dist/redact.d.ts +2 -0
- package/dist/redact.js +12 -0
- package/dist/redact.js.map +1 -0
- package/dist/skill.d.ts +18 -0
- package/dist/skill.js +35 -0
- package/dist/skill.js.map +1 -0
- package/dist/store.d.ts +34 -0
- package/dist/store.js +140 -0
- package/dist/store.js.map +1 -0
- package/package.json +56 -7
- package/skills/kody/SKILL.md +59 -0
package/package.json
CHANGED
|
@@ -1,9 +1,58 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"name": "@kodycodes/cli",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Official Kody MCP client CLI: login, secure token storage, search, and execute.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"kody": "dist/bin.js"
|
|
8
|
+
},
|
|
9
|
+
"main": "./dist/cli.js",
|
|
10
|
+
"types": "./dist/cli.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/cli.d.ts",
|
|
14
|
+
"default": "./dist/cli.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"skills"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc -p tsconfig.build.json",
|
|
23
|
+
"typecheck": "tsc --noEmit",
|
|
24
|
+
"test": "tsx --test test/*.test.ts",
|
|
25
|
+
"validate": "npm run typecheck && npm run test && npm run build"
|
|
26
|
+
},
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=22"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"kody",
|
|
32
|
+
"mcp",
|
|
33
|
+
"cli",
|
|
34
|
+
"oauth"
|
|
35
|
+
],
|
|
36
|
+
"author": "Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "git+https://github.com/kody-bot/cli.git"
|
|
41
|
+
},
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/kody-bot/cli/issues"
|
|
44
|
+
},
|
|
45
|
+
"homepage": "https://kody.codes",
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@modelcontextprotocol/client": "2.0.0",
|
|
51
|
+
"@napi-rs/keyring": "^1.3.0"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@types/node": "^24.5.2",
|
|
55
|
+
"tsx": "^4.20.5",
|
|
56
|
+
"typescript": "^5.9.2"
|
|
57
|
+
}
|
|
9
58
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: kody
|
|
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`.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Kody CLI
|
|
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.
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install -g @kodycodes/cli
|
|
18
|
+
# or
|
|
19
|
+
npx @kodycodes/cli --help
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Then install this skill into the current host if it is not already present:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx @kodycodes/cli skill install
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Login
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
kody login
|
|
32
|
+
```
|
|
33
|
+
|
|
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`.
|
|
38
|
+
|
|
39
|
+
Never ask the user to paste tokens into chat.
|
|
40
|
+
|
|
41
|
+
## Use Kody
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
kody search "what can you do"
|
|
45
|
+
kody search --domain email
|
|
46
|
+
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
|
+
kody status
|
|
54
|
+
kody whoami
|
|
55
|
+
kody logout
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Override the MCP URL with `--mcp-url` or `KODY_MCP_URL` for preview or local
|
|
59
|
+
servers. Default: `https://kody.codes/mcp`.
|