@neural-tools/cli 0.1.4 → 0.1.6
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.md +21 -80
- package/README.md +271 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +360 -80
- package/dist/cli.mjs +364 -0
- package/dist/index.d.mts +45 -0
- package/dist/index.d.ts +45 -6
- package/dist/index.js +363 -15
- package/dist/index.mjs +363 -0
- package/package.json +5 -5
- package/dist/commands/deploy.d.ts +0 -7
- package/dist/commands/deploy.js +0 -96
- package/dist/commands/generate-agent.d.ts +0 -10
- package/dist/commands/generate-agent.js +0 -126
- package/dist/commands/generate-command.d.ts +0 -10
- package/dist/commands/generate-command.js +0 -112
- package/dist/commands/generate-mcp.d.ts +0 -10
- package/dist/commands/generate-mcp.js +0 -429
- package/dist/commands/login.d.ts +0 -5
- package/dist/commands/login.js +0 -112
- package/dist/commands/status.d.ts +0 -1
- package/dist/commands/status.js +0 -64
package/LICENSE.md
CHANGED
|
@@ -1,80 +1,21 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Luke Amy
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
### 2. Pro/Enterprise License (Proprietary)
|
|
24
|
-
|
|
25
|
-
The following features require a valid Pro or Enterprise license:
|
|
26
|
-
|
|
27
|
-
**Pro Features:**
|
|
28
|
-
- Vector database integration
|
|
29
|
-
- Semantic caching
|
|
30
|
-
- Fine-tuning workflows
|
|
31
|
-
- Cloud deployment templates (AWS/GCP)
|
|
32
|
-
- Premium templates and examples
|
|
33
|
-
- GitHub automation features
|
|
34
|
-
|
|
35
|
-
**Enterprise Features:**
|
|
36
|
-
- White-label support
|
|
37
|
-
- Custom integrations
|
|
38
|
-
- Priority support
|
|
39
|
-
- SLA guarantees
|
|
40
|
-
- Team collaboration features
|
|
41
|
-
|
|
42
|
-
These features are proprietary and may not be used without a valid license key purchased from neural-tools.dev.
|
|
43
|
-
|
|
44
|
-
### License Terms
|
|
45
|
-
|
|
46
|
-
1. **Free Tier**: You may use the free tier features for any purpose, including commercial use, under the MIT License terms.
|
|
47
|
-
|
|
48
|
-
2. **Pro/Enterprise**: You must purchase a license to access Pro or Enterprise features. Each license is:
|
|
49
|
-
- Per-user for individual licenses
|
|
50
|
-
- Per-organization for team/enterprise licenses
|
|
51
|
-
- Non-transferable without written consent
|
|
52
|
-
- Subject to the terms at neural-tools.dev/terms
|
|
53
|
-
|
|
54
|
-
3. **Source Code**: This repository is private. You may not:
|
|
55
|
-
- Redistribute the source code
|
|
56
|
-
- Create derivative works for redistribution
|
|
57
|
-
- Reverse engineer Pro/Enterprise features
|
|
58
|
-
- Remove or circumvent license checks
|
|
59
|
-
|
|
60
|
-
4. **Support**: Support is provided based on your license tier:
|
|
61
|
-
- Free: Community support only
|
|
62
|
-
- Pro: Email support (48-hour response)
|
|
63
|
-
- Enterprise: Priority support with SLA
|
|
64
|
-
|
|
65
|
-
### Warranty Disclaimer
|
|
66
|
-
|
|
67
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
68
|
-
|
|
69
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
70
|
-
|
|
71
|
-
### Contact
|
|
72
|
-
|
|
73
|
-
For licensing inquiries:
|
|
74
|
-
- Email: licensing@neural-tools.dev
|
|
75
|
-
- Website: https://neural-tools.dev/pricing
|
|
76
|
-
- Support: support@neural-tools.dev
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
**Last Updated:** January 2025
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Luke Amy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
# @neural-tools/cli
|
|
2
|
+
|
|
3
|
+
> CLI for Neural Tools - Generate MCPs, Claude commands, and AI workflows
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@neural-tools/cli)
|
|
6
|
+
[](../../LICENSE.md)
|
|
7
|
+
|
|
8
|
+
The main CLI tool for Neural Tools, providing commands to generate MCP servers, Claude commands, agents, and deploy AI-powered applications.
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
### Global Installation (Recommended)
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install -g @neural-tools/cli
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Project-specific
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install --save-dev @neural-tools/cli
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Using npx (No installation)
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npx @neural-tools/cli <command>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
neural-tools <command> [options]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Available Commands
|
|
37
|
+
|
|
38
|
+
### `generate mcp`
|
|
39
|
+
|
|
40
|
+
Generate a FastMCP server with Python templates.
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
neural-tools generate mcp <name> [options]
|
|
44
|
+
|
|
45
|
+
Options:
|
|
46
|
+
-d, --description <desc> Description of the MCP server
|
|
47
|
+
-o, --output <dir> Output directory (default: ./apps)
|
|
48
|
+
--cicd <provider> CI/CD provider (github, harness, none)
|
|
49
|
+
--deployment <platform> Deployment platform (aws, gcp, none)
|
|
50
|
+
--dry-run Preview without creating files
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**Example:**
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
neural-tools generate mcp github-integration \
|
|
57
|
+
--description "GitHub API integration server" \
|
|
58
|
+
--cicd github \
|
|
59
|
+
--deployment aws
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
This creates:
|
|
63
|
+
- Complete FastMCP server with Python
|
|
64
|
+
- Docker configuration
|
|
65
|
+
- CI/CD workflow files
|
|
66
|
+
- Deployment templates (if specified)
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
### `generate command`
|
|
71
|
+
|
|
72
|
+
Generate a Claude Code slash command.
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
neural-tools generate command <name> [options]
|
|
76
|
+
|
|
77
|
+
Options:
|
|
78
|
+
-d, --description <desc> Description of the command
|
|
79
|
+
-o, --output <dir> Output directory (default: ./claude/commands)
|
|
80
|
+
--args <arguments...> Command arguments
|
|
81
|
+
--tools <tools...> Allowed tools for Claude
|
|
82
|
+
--global Install globally to ~/.claude/commands
|
|
83
|
+
--dry-run Preview without creating files
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**Example:**
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
neural-tools generate command search-docs \
|
|
90
|
+
--description "Search project documentation" \
|
|
91
|
+
--args query \
|
|
92
|
+
--tools "Read" "Grep" "Bash"
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
This creates a slash command that can be used in Claude Code as `/search-docs <query>`.
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
### `generate agent`
|
|
100
|
+
|
|
101
|
+
Generate a specialized Claude agent.
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
neural-tools generate agent <name> [options]
|
|
105
|
+
|
|
106
|
+
Options:
|
|
107
|
+
-d, --description <desc> Description of the agent
|
|
108
|
+
-o, --output <dir> Output directory (default: ./claude/agents)
|
|
109
|
+
--model <model> Model to use (sonnet, opus, haiku)
|
|
110
|
+
--tools <tools...> Available tools
|
|
111
|
+
--global Install globally to ~/.claude/agents
|
|
112
|
+
--dry-run Preview without creating files
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**Example:**
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
neural-tools generate agent code-reviewer \
|
|
119
|
+
--description "Automated code review agent" \
|
|
120
|
+
--model opus \
|
|
121
|
+
--tools "Read" "Grep" "Edit"
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
### `deploy`
|
|
127
|
+
|
|
128
|
+
Deploy an MCP server to AWS or GCP.
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
neural-tools deploy <name> [options]
|
|
132
|
+
|
|
133
|
+
Options:
|
|
134
|
+
-p, --platform <platform> Deployment platform (aws, gcp)
|
|
135
|
+
--region <region> Cloud region
|
|
136
|
+
--env <env> Environment (dev, staging, prod)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
**Example:**
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
neural-tools deploy github-integration \
|
|
143
|
+
--platform aws \
|
|
144
|
+
--region us-east-1 \
|
|
145
|
+
--env production
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
### `login`
|
|
151
|
+
|
|
152
|
+
Manage your Neural Tools license (optional).
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
neural-tools login [options]
|
|
156
|
+
|
|
157
|
+
Options:
|
|
158
|
+
--key <key> License key
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
**Note:** All features are free and available without a license.
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
### `status`
|
|
166
|
+
|
|
167
|
+
View current status and available features.
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
neural-tools status
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Shows:
|
|
174
|
+
- License information (if configured)
|
|
175
|
+
- Available features (all features are enabled)
|
|
176
|
+
- Quick start commands
|
|
177
|
+
|
|
178
|
+
## Project Structure
|
|
179
|
+
|
|
180
|
+
When you use the CLI, it creates organized project structures:
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
my-project/
|
|
184
|
+
├── apps/ # Generated MCP servers
|
|
185
|
+
│ └── mcp-github/
|
|
186
|
+
│ ├── server.py
|
|
187
|
+
│ ├── Dockerfile
|
|
188
|
+
│ └── requirements.txt
|
|
189
|
+
├── claude/
|
|
190
|
+
│ ├── commands/ # Slash commands
|
|
191
|
+
│ │ └── search-docs.md
|
|
192
|
+
│ └── agents/ # Specialized agents
|
|
193
|
+
│ └── code-reviewer.md
|
|
194
|
+
└── package.json
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
## Configuration
|
|
198
|
+
|
|
199
|
+
The CLI reads configuration from:
|
|
200
|
+
- `package.json` (workspace settings)
|
|
201
|
+
- `.env` (environment variables)
|
|
202
|
+
- `~/.ai-toolkit/` (user settings)
|
|
203
|
+
|
|
204
|
+
## Development
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
# Clone the repository
|
|
208
|
+
git clone https://github.com/MacLeanLuke/neural-tools.git
|
|
209
|
+
cd neural-tools/packages/cli
|
|
210
|
+
|
|
211
|
+
# Install dependencies
|
|
212
|
+
pnpm install
|
|
213
|
+
|
|
214
|
+
# Build
|
|
215
|
+
pnpm build
|
|
216
|
+
|
|
217
|
+
# Run locally
|
|
218
|
+
node dist/cli.js --help
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
## Examples
|
|
222
|
+
|
|
223
|
+
### Create a GitHub MCP Server
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
neural-tools generate mcp github \
|
|
227
|
+
--description "GitHub API integration" \
|
|
228
|
+
--cicd github \
|
|
229
|
+
--deployment aws
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### Create a Knowledge Base Search Command
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
neural-tools generate command search-kb \
|
|
236
|
+
--description "Search vector database" \
|
|
237
|
+
--args query \
|
|
238
|
+
--tools "Read" "Bash"
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Deploy to AWS
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
neural-tools deploy github \
|
|
245
|
+
--platform aws \
|
|
246
|
+
--region us-east-1 \
|
|
247
|
+
--env prod
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
## Dependencies
|
|
251
|
+
|
|
252
|
+
- [@neural-tools/core](../core) - Core utilities and types
|
|
253
|
+
- commander - CLI framework
|
|
254
|
+
- inquirer - Interactive prompts
|
|
255
|
+
- execa - Process execution
|
|
256
|
+
- fs-extra - Enhanced file system operations
|
|
257
|
+
|
|
258
|
+
## Contributing
|
|
259
|
+
|
|
260
|
+
Contributions are welcome! See the [main repository](https://github.com/MacLeanLuke/neural-tools) for guidelines.
|
|
261
|
+
|
|
262
|
+
## License
|
|
263
|
+
|
|
264
|
+
MIT - See [LICENSE.md](../../LICENSE.md) for details.
|
|
265
|
+
|
|
266
|
+
## Links
|
|
267
|
+
|
|
268
|
+
- [Documentation](https://neural-tools.com/docs/cli.html)
|
|
269
|
+
- [GitHub](https://github.com/MacLeanLuke/neural-tools)
|
|
270
|
+
- [npm](https://www.npmjs.com/package/@neural-tools/cli)
|
|
271
|
+
- [Issues](https://github.com/MacLeanLuke/neural-tools/issues)
|
package/dist/cli.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
package/dist/cli.d.ts
CHANGED