@smithery/cli 3.19.0 → 4.0.0-preview.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/README.md +33 -58
- package/dist/index.js +333 -679
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Smithery CLI [](https://www.npmjs.com/package/@smithery/cli) [](https://www.npmjs.com/package/@smithery/cli)
|
|
2
2
|
|
|
3
|
-
CLI
|
|
3
|
+
Smithery CLI connects your agents to thousands of skills and MCP servers directly from the command line. To get started, simply run `npx skills add smithery/cli`.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -11,18 +11,23 @@ Requires Node.js 20+.
|
|
|
11
11
|
|
|
12
12
|
## Commands
|
|
13
13
|
|
|
14
|
-
### Servers
|
|
14
|
+
### MCP Servers
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
smithery
|
|
18
|
-
smithery
|
|
19
|
-
smithery list
|
|
20
|
-
smithery
|
|
21
|
-
smithery inspect <server> # Interactive server testing
|
|
22
|
-
smithery run <server> # Run an MCP bundle locally
|
|
17
|
+
smithery mcp search [term] # Search the Smithery registry
|
|
18
|
+
smithery mcp add <url> # Add an MCP server connection
|
|
19
|
+
smithery mcp list # List your connections
|
|
20
|
+
smithery mcp remove <ids...> # Remove connections
|
|
23
21
|
```
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
### Tools
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
smithery tools list [connection] # List available tools
|
|
27
|
+
smithery tools search <query> # Search tools by intent
|
|
28
|
+
smithery tools get <connection/tool> # Show full details for one tool
|
|
29
|
+
smithery tools call <connection> <tool> [args] # Call a tool
|
|
30
|
+
```
|
|
26
31
|
|
|
27
32
|
### Skills
|
|
28
33
|
|
|
@@ -42,74 +47,44 @@ smithery skills review upvote <skill> <review-id> # Upvote a review
|
|
|
42
47
|
smithery skills review downvote <skill> <review-id> # Downvote a review
|
|
43
48
|
```
|
|
44
49
|
|
|
45
|
-
###
|
|
46
|
-
|
|
47
|
-
Discover public namespaces on Smithery.
|
|
50
|
+
### Auth
|
|
48
51
|
|
|
49
52
|
```bash
|
|
50
|
-
smithery
|
|
53
|
+
smithery auth login # Login with Smithery (OAuth)
|
|
54
|
+
smithery auth logout # Log out
|
|
55
|
+
smithery auth whoami # Check current user
|
|
51
56
|
```
|
|
52
57
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
### Smithery Connect (Cloud MCP)
|
|
56
|
-
|
|
57
|
-
Manage cloud-hosted MCP servers via [Smithery Connect](https://smithery.ai).
|
|
58
|
+
### Namespaces
|
|
58
59
|
|
|
59
60
|
```bash
|
|
60
|
-
|
|
61
|
-
smithery namespace
|
|
62
|
-
smithery namespace use <name> # Set current namespace
|
|
63
|
-
smithery namespace show # Show current namespace
|
|
64
|
-
|
|
65
|
-
# Server connections
|
|
66
|
-
smithery connect add <url> # Add MCP server (--name for display name)
|
|
67
|
-
smithery connect list # List connected servers
|
|
68
|
-
smithery connect remove <id> # Remove a connection
|
|
69
|
-
|
|
70
|
-
# Tools
|
|
71
|
-
smithery connect tools [server] # List tools (all or for specific server)
|
|
72
|
-
smithery connect search <query> # Fuzzy search tools by intent
|
|
73
|
-
smithery connect call <id> [args] # Call a tool (format: server/tool-name)
|
|
61
|
+
smithery namespace list # List your namespaces
|
|
62
|
+
smithery namespace use <name> # Set current namespace
|
|
74
63
|
```
|
|
75
64
|
|
|
76
|
-
###
|
|
65
|
+
### Publishing
|
|
77
66
|
|
|
78
67
|
```bash
|
|
79
|
-
smithery
|
|
80
|
-
smithery dev [entry] # Dev server with hot-reload and tunnel
|
|
81
|
-
smithery build [entry] # Build for production
|
|
82
|
-
smithery playground # Open interactive testing UI
|
|
68
|
+
smithery mcp publish <url> -n <org/server> # Publish an MCP server URL
|
|
83
69
|
```
|
|
84
70
|
|
|
85
71
|
## Examples
|
|
86
72
|
|
|
87
73
|
```bash
|
|
88
|
-
#
|
|
89
|
-
smithery
|
|
74
|
+
# Search and connect to an MCP server
|
|
75
|
+
smithery mcp search "github"
|
|
76
|
+
smithery mcp add https://server.smithery.ai/github --id github
|
|
77
|
+
|
|
78
|
+
# Discover and use tools
|
|
79
|
+
smithery tools search "create issue"
|
|
80
|
+
smithery tools call github create_issue '{"title":"Bug fix","body":"..."}'
|
|
90
81
|
|
|
91
82
|
# Browse and install skills
|
|
92
|
-
smithery skills search "frontend" --json --page 2
|
|
93
|
-
smithery skills search --namespace anthropics --json # Filter by namespace
|
|
83
|
+
smithery skills search "frontend" --json --page 2
|
|
94
84
|
smithery skills install anthropics/frontend-design --agent claude-code
|
|
95
85
|
|
|
96
|
-
#
|
|
97
|
-
smithery
|
|
98
|
-
smithery skills review add anthropics/frontend-design --up -b "Great for Tailwind components, follows accessibility best practices"
|
|
99
|
-
smithery skills review upvote anthropics/frontend-design 550e8400-e29b-41d4-a716-446655440000
|
|
100
|
-
smithery skills upvote anthropics/frontend-design
|
|
101
|
-
|
|
102
|
-
# Discover namespaces
|
|
103
|
-
smithery namespace search --has-skills # Find namespaces with skills
|
|
104
|
-
|
|
105
|
-
# Cloud MCP workflow (works with any MCP server URL)
|
|
106
|
-
smithery connect add https://server.smithery.ai/github # Or any MCP server
|
|
107
|
-
smithery connect search "create issue"
|
|
108
|
-
smithery connect call github/create_issue '{"title":"Bug fix","body":"..."}'
|
|
109
|
-
|
|
110
|
-
# Development
|
|
111
|
-
smithery dev server.ts --port 3000
|
|
112
|
-
smithery build --out dist/server.cjs
|
|
86
|
+
# Publish your MCP server URL
|
|
87
|
+
smithery mcp publish "https://my-mcp-server.com" -n myorg/my-server
|
|
113
88
|
```
|
|
114
89
|
|
|
115
90
|
## Development
|