@neural-tools/cli 0.1.5 → 0.1.7
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 +331 -0
- package/dist/cli.js +47 -18
- package/dist/cli.mjs +47 -18
- package/dist/index.d.mts +21 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.js +47 -18
- package/dist/index.mjs +43 -14
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{Command as
|
|
2
|
+
import{Command as ue}from"commander";import{logger as pe}from"@neural-tools/core";import d from"path";import u from"fs-extra";import{logger as m,requireFeature as H}from"@neural-tools/core";import j from"inquirer";async function I(e,t){m.header(`Generating MCP: ${e}`),t.deployment!=="none"&&await H("cloud-deployment","Cloud Deployment");let n=t.description;n||(n=(await j.prompt([{type:"input",name:"description",message:"Description of your MCP:",default:`${e} MCP server`}])).description);let i=d.resolve(t.output||"./apps",e);if(t.dryRun){m.info("Dry run mode - no files will be created"),m.section("Configuration",[`Name: ${e}`,`Description: ${n}`,`Output: ${i}`,`Template: ${t.fastmcp?"FastMCP":"Standard"}`,`CI/CD: ${t.cicd}`,`Deployment: ${t.deployment}`]);return}if(await u.pathExists(i)){let{overwrite:r}=await j.prompt([{type:"confirm",name:"overwrite",message:`Directory ${i} already exists. Overwrite?`,default:!1}]);if(!r){m.warn("Cancelled");return}await u.remove(i)}m.startSpinner("Creating MCP structure...");try{await u.ensureDir(i);let r=`[project]
|
|
3
3
|
name = "mcp-${e}"
|
|
4
4
|
version = "0.1.0"
|
|
5
|
-
description = "${
|
|
5
|
+
description = "${n}"
|
|
6
6
|
requires-python = ">=3.10"
|
|
7
7
|
dependencies = [
|
|
8
8
|
"fastmcp>=2.2.0",
|
|
@@ -24,10 +24,10 @@ line-length = 100
|
|
|
24
24
|
|
|
25
25
|
[tool.ruff]
|
|
26
26
|
line-length = 100
|
|
27
|
-
`;await u.writeFile(
|
|
27
|
+
`;await u.writeFile(d.join(i,"pyproject.toml"),r,"utf-8");let o=`"""
|
|
28
28
|
${e} MCP Server
|
|
29
29
|
|
|
30
|
-
${
|
|
30
|
+
${n}
|
|
31
31
|
"""
|
|
32
32
|
from fastmcp import FastMCP
|
|
33
33
|
|
|
@@ -83,9 +83,9 @@ def brainstorm_topic(topic: str) -> str:
|
|
|
83
83
|
|
|
84
84
|
if __name__ == "__main__":
|
|
85
85
|
mcp.run()
|
|
86
|
-
`;await u.writeFile(
|
|
86
|
+
`;await u.writeFile(d.join(i,"server.py"),o,"utf-8");let s=`# ${e} MCP Server
|
|
87
87
|
|
|
88
|
-
${
|
|
88
|
+
${n}
|
|
89
89
|
|
|
90
90
|
## Quick Start with Docker
|
|
91
91
|
|
|
@@ -190,7 +190,7 @@ ruff check .
|
|
|
190
190
|
## License
|
|
191
191
|
|
|
192
192
|
MIT
|
|
193
|
-
`;await u.writeFile(
|
|
193
|
+
`;await u.writeFile(d.join(i,"README.md"),s,"utf-8"),await u.writeFile(d.join(i,"Dockerfile"),`FROM python:3.11-slim
|
|
194
194
|
|
|
195
195
|
WORKDIR /app
|
|
196
196
|
|
|
@@ -206,7 +206,7 @@ RUN uv pip install --system --no-cache .
|
|
|
206
206
|
|
|
207
207
|
# Run the MCP server
|
|
208
208
|
CMD ["python", "server.py"]
|
|
209
|
-
`,"utf-8");let
|
|
209
|
+
`,"utf-8");let c=`version: '3.8'
|
|
210
210
|
|
|
211
211
|
services:
|
|
212
212
|
mcp:
|
|
@@ -219,7 +219,7 @@ services:
|
|
|
219
219
|
- .:/app
|
|
220
220
|
environment:
|
|
221
221
|
- PYTHONUNBUFFERED=1
|
|
222
|
-
`;if(await u.writeFile(
|
|
222
|
+
`;if(await u.writeFile(d.join(i,"docker-compose.yml"),c,"utf-8"),await u.writeFile(d.join(i,".dockerignore"),`__pycache__
|
|
223
223
|
*.pyc
|
|
224
224
|
*.pyo
|
|
225
225
|
*.pyd
|
|
@@ -236,7 +236,7 @@ venv
|
|
|
236
236
|
.git
|
|
237
237
|
.github
|
|
238
238
|
README.md
|
|
239
|
-
`,"utf-8"),t.cicd==="github"){await u.ensureDir(
|
|
239
|
+
`,"utf-8"),t.cicd==="github"){await u.ensureDir(d.join(i,".github","workflows"));let C=`name: Deploy MCP
|
|
240
240
|
|
|
241
241
|
on:
|
|
242
242
|
push:
|
|
@@ -320,22 +320,22 @@ jobs:
|
|
|
320
320
|
run: |
|
|
321
321
|
gcloud builds submit --tag gcr.io/\${{ secrets.GCP_PROJECT_ID }}/mcp-${e}:latest
|
|
322
322
|
`:""}
|
|
323
|
-
`;await u.writeFile(
|
|
323
|
+
`;await u.writeFile(d.join(i,".github","workflows","deploy.yml"),C,"utf-8")}m.succeedSpinner("MCP created successfully!"),m.section("Next steps",[`1. cd ${i}`,"2. docker-compose up # Start with Docker","","Or for local development:","2. uv pip install -e .","3. python server.py","","Or use MCP Inspector:","2. uv pip install -e .","3. fastmcp dev server.py","","Add to Claude Code settings to use this MCP"]),m.success(`\u2728 MCP "${e}" ready to use!`)}catch(r){throw m.failSpinner("Failed to create MCP"),r}}import O from"path";import J from"os";import G from"fs-extra";import{logger as g}from"@neural-tools/core";import F from"inquirer";async function T(e,t){g.header(`Generating Claude Command: /${e}`);let n=t.description;n||(n=(await F.prompt([{type:"input",name:"description",message:"Description of your command:",default:`Execute ${e}`}])).description);let i;t.global?i=O.join(J.homedir(),".claude","commands"):i=O.resolve(t.output||"./claude/commands");let r=O.join(i,`${e}.md`);if(t.dryRun){g.info("Dry run mode - no files will be created"),g.section("Configuration",[`Name: /${e}`,`Description: ${n}`,`Output: ${r}`,`Arguments: ${t.args?.join(", ")||"none"}`,`Allowed Tools: ${t.tools?.join(", ")||"all"}`,`Global: ${t.global?"Yes":"No"}`]);return}if(await G.pathExists(r)){let{overwrite:o}=await F.prompt([{type:"confirm",name:"overwrite",message:`Command /${e} already exists. Overwrite?`,default:!1}]);if(!o){g.warn("Cancelled");return}}g.startSpinner("Creating Claude command...");try{await G.ensureDir(i);let o=["---"];t.args&&t.args.length>0&&o.push(`argument-hint: ${t.args.join(" ")}`),o.push(`description: ${n}`),t.tools&&t.tools.length>0&&(o.push("allowed-tools:"),t.tools.forEach(C=>{o.push(` - ${C}`)})),o.push("---"),o.push("");let s=t.args||[],l=s.map((C,R)=>`$${R+1}`).join(" "),c=s.length>0?`
|
|
324
324
|
|
|
325
325
|
Arguments:
|
|
326
|
-
${
|
|
327
|
-
`)}`:"",
|
|
326
|
+
${s.map((C,R)=>`- $${R+1}: ${C}`).join(`
|
|
327
|
+
`)}`:"",D=`${o.join(`
|
|
328
328
|
`)}# ${e} Command
|
|
329
329
|
|
|
330
|
-
Execute the ${e} operation${
|
|
330
|
+
Execute the ${e} operation${c?":"+c:"."}
|
|
331
331
|
|
|
332
|
-
${
|
|
332
|
+
${l?`Using arguments: ${l}`:""}
|
|
333
333
|
|
|
334
334
|
Please proceed with the ${e} operation.
|
|
335
|
-
`;await
|
|
335
|
+
`;await G.writeFile(r,D,"utf-8"),g.succeedSpinner("Claude command created successfully!"),g.section("Next steps",[t.global?`Command /${e} is now available globally in Claude Code`:`Add the command to your project by copying ${r}`,"","Usage:",s.length>0?` /${e} ${s.join(" ")}`:` /${e}`]),g.success(`\u2728 Command "/${e}" ready to use!`)}catch(o){throw g.failSpinner("Failed to create command"),o}}import M from"path";import Q from"os";import _ from"fs-extra";import{logger as f}from"@neural-tools/core";import x from"inquirer";async function L(e,t){f.header(`Generating Claude Agent: ${e}`);let n=t.description;n||(n=(await x.prompt([{type:"input",name:"description",message:"Description of your agent:",default:`${e} specialized agent`}])).description);let i;t.global?i=M.join(Q.homedir(),".claude","agents"):i=M.resolve(t.output||"./claude/agents");let r=M.join(i,`${e}.md`),o=t.model||"sonnet";if(t.dryRun){f.info("Dry run mode - no files will be created"),f.section("Configuration",[`Name: ${e}`,`Description: ${n}`,`Output: ${r}`,`Model: ${o}`,`Tools: ${t.tools?.join(", ")||"all"}`,`Global: ${t.global?"Yes":"No"}`]);return}if(await _.pathExists(r)){let{overwrite:s}=await x.prompt([{type:"confirm",name:"overwrite",message:`Agent ${e} already exists. Overwrite?`,default:!1}]);if(!s){f.warn("Cancelled");return}}f.startSpinner("Creating Claude agent...");try{await _.ensureDir(i);let s=["---"];s.push(`model: claude-${o}-4-5`),t.tools&&t.tools.length>0&&(s.push("tools:"),t.tools.forEach(c=>{s.push(` - ${c}`)})),s.push("---"),s.push("");let l=`${s.join(`
|
|
336
336
|
`)}# ${e} Agent
|
|
337
337
|
|
|
338
|
-
${
|
|
338
|
+
${n}
|
|
339
339
|
|
|
340
340
|
## Role
|
|
341
341
|
|
|
@@ -361,4 +361,33 @@ Provide clear, structured responses that:
|
|
|
361
361
|
- [Output requirement 3]
|
|
362
362
|
|
|
363
363
|
Focus on ${e} and deliver actionable results.
|
|
364
|
-
`;await
|
|
364
|
+
`;await _.writeFile(r,l,"utf-8"),f.succeedSpinner("Claude agent created successfully!"),f.section("Next steps",[t.global?`Agent ${e} is now available globally in Claude Code`:`Add the agent to your project by copying ${r}`,"","Customize the agent by editing:",` ${r}`,"","Use the agent via the Task tool in Claude Code"]),f.success(`\u2728 Agent "${e}" ready to use!`)}catch(s){throw f.failSpinner("Failed to create agent"),s}}import k from"path";import X from"os";import E from"fs-extra";import N from"inquirer";import{logger as y}from"@neural-tools/core";async function Y(e,t){y.header(`Generating Claude Skill: ${e}`);let n=t.description;n||(n=(await N.prompt([{type:"input",name:"description",message:"Description of your skill:",default:`${e} skill for Claude Code`}])).description);let i=Z(t),r=k.join(i,e),o=k.join(r,"SKILL.md"),s=k.join(r,"references");if(t.dryRun){y.info("Dry run mode - no files will be created"),y.section("Configuration",[`Name: ${e}`,`Description: ${n}`,`Output: ${o}`,`Plugin: ${t.plugin||"none"}`,`References: ${t.references?"Yes":"No"}`,`Global: ${t.global?"Yes":"No"}`]);return}if(await E.pathExists(o)){let{overwrite:l}=await N.prompt([{type:"confirm",name:"overwrite",message:`Skill ${e} already exists. Overwrite?`,default:!1}]);if(!l){y.warn("Cancelled");return}}y.startSpinner("Creating Claude skill...");try{await E.ensureDir(r),t.references&&await E.ensureDir(s);let l=`---
|
|
365
|
+
name: ${e}
|
|
366
|
+
description: ${n}
|
|
367
|
+
---
|
|
368
|
+
|
|
369
|
+
# ${e}
|
|
370
|
+
|
|
371
|
+
${n}
|
|
372
|
+
|
|
373
|
+
## When to use this skill
|
|
374
|
+
|
|
375
|
+
Use this skill when the request matches ${e} workflows.
|
|
376
|
+
|
|
377
|
+
## Workflow
|
|
378
|
+
|
|
379
|
+
1. Gather the relevant project context.
|
|
380
|
+
2. Apply ${e} specific checks and implementation steps.
|
|
381
|
+
3. Return concrete output and next actions.
|
|
382
|
+
`;if(await E.writeFile(o,l,"utf-8"),t.references){let c=`# References
|
|
383
|
+
|
|
384
|
+
Store focused reference material for the ${e} skill in this folder.
|
|
385
|
+
`;await E.writeFile(k.join(s,"README.md"),c,"utf-8")}y.succeedSpinner("Claude skill created successfully!"),y.section("Next steps",[`Edit the skill definition: ${o}`,t.references?`Add reference docs in: ${s}`:"Use --references to scaffold a references folder"]),y.success(`\u2728 Skill "${e}" ready to use!`)}catch(l){throw y.failSpinner("Failed to create skill"),l}}function Z(e){return e.plugin?k.resolve(e.plugin,"skills"):e.global?k.join(X.homedir(),".claude","skills"):k.resolve(e.output||"./claude/skills")}import b from"path";import S from"fs-extra";import q from"inquirer";import{logger as h}from"@neural-tools/core";async function U(e,t){h.header(`Generating Claude Plugin: ${e}`);let n=t.description;n||(n=(await q.prompt([{type:"input",name:"description",message:"Description of your plugin:",default:`${e} Claude Code plugin`}])).description);let i=n||`${e} Claude Code plugin`,r=b.resolve(t.output||"./claude/plugins",e),o=b.join(r,".claude-plugin"),s=b.join(o,"plugin.json"),l=b.join(r,"skills");if(t.dryRun){h.info("Dry run mode - no files will be created"),h.section("Configuration",[`Name: ${e}`,`Description: ${i}`,`Output: ${r}`,`Plugin config: ${s}`,`Version: ${t.version||"0.1.0"}`,`Author: ${t.author||"none"}`,`Starter skill: ${t.withSkill||"none"}`]);return}if(await S.pathExists(s)){let{overwrite:c}=await q.prompt([{type:"confirm",name:"overwrite",message:`Plugin ${e} already exists. Overwrite config?`,default:!1}]);if(!c){h.warn("Cancelled");return}}h.startSpinner("Creating Claude plugin...");try{await S.ensureDir(o),await S.ensureDir(l);let c={name:e,version:t.version||"0.1.0",description:i};if(t.author&&(c.author=t.author),await S.writeJSON(s,c,{spaces:2}),t.withSkill){let D=b.join(l,t.withSkill),C=b.join(D,"SKILL.md");await S.ensureDir(D);let R=`---
|
|
386
|
+
name: ${t.withSkill}
|
|
387
|
+
description: Starter skill for ${e}
|
|
388
|
+
---
|
|
389
|
+
|
|
390
|
+
# ${t.withSkill}
|
|
391
|
+
|
|
392
|
+
Starter skill scaffolded with the plugin.
|
|
393
|
+
`;await S.writeFile(C,R,"utf-8")}h.succeedSpinner("Claude plugin created successfully!"),h.section("Next steps",[`Review plugin manifest: ${s}`,t.withSkill?`Customize skill: ${b.join(l,t.withSkill,"SKILL.md")}`:"Use `generate skill <name> --plugin <plugin-dir>` to add skills",`Install with Claude Code using the plugin path: ${r}`]),h.success(`\u2728 Plugin "${e}" ready to use!`)}catch(c){throw h.failSpinner("Failed to create plugin"),c}}import{logger as a,requireFeature as ee}from"@neural-tools/core";import{execa as te}from"execa";import ie from"path";import ne from"fs-extra";async function W(e,t){a.header(`Deploying MCP: ${e}`),await ee("cloud-deployment","Cloud Deployment");let n=t.platform||"aws",i=t.env||"dev";a.info(`Platform: ${n}`),a.info(`Environment: ${i}`);let r=ie.resolve("./apps",e);if(!await ne.pathExists(r))throw new Error(`MCP "${e}" not found at ${r}`);a.startSpinner("Building MCP...");try{await te("npm",["run","build"],{cwd:r,stdio:"pipe"}),a.succeedSpinner("MCP built successfully"),n==="aws"?await re(e,r,t):n==="gcp"&&await oe(e,r,t),a.success(`\u2728 MCP "${e}" deployed successfully!`)}catch(o){throw a.failSpinner("Deployment failed"),o}}async function re(e,t,n){a.startSpinner("Deploying to AWS Lambda..."),a.updateSpinner("Packaging Lambda function..."),await new Promise(i=>setTimeout(i,1e3)),a.updateSpinner("Uploading to S3..."),await new Promise(i=>setTimeout(i,1e3)),a.updateSpinner("Creating/updating Lambda function..."),await new Promise(i=>setTimeout(i,1e3)),a.succeedSpinner("Deployed to AWS Lambda"),a.section("Deployment Info",[`Function: ${e}-${n.env}`,`Region: ${n.region||"us-east-1"}`,`Environment: ${n.env}`,"","Configure in Claude Code:",JSON.stringify({mcpServers:{[e]:{command:"aws",args:["lambda","invoke","--function-name",`${e}-${n.env}`,"--payload","stdin","--output","stdout"]}}},null,2)])}async function oe(e,t,n){a.startSpinner("Deploying to Google Cloud Functions..."),a.updateSpinner("Packaging function..."),await new Promise(i=>setTimeout(i,1e3)),a.updateSpinner("Uploading to Cloud Storage..."),await new Promise(i=>setTimeout(i,1e3)),a.updateSpinner("Deploying Cloud Function..."),await new Promise(i=>setTimeout(i,1e3)),a.succeedSpinner("Deployed to Google Cloud Functions"),a.section("Deployment Info",[`Function: ${e}-${n.env}`,`Region: ${n.region||"us-central1"}`,`Environment: ${n.env}`])}import{logger as p,licenseManager as K,LicenseTier as se}from"@neural-tools/core";import ae from"inquirer";async function B(e){p.header("AI Toolkit License Management");let t=e.key;if(t||(t=(await ae.prompt([{type:"input",name:"licenseKey",message:"Enter your license key:",validate:i=>!i||i.trim().length===0?"License key is required":!0}])).licenseKey),!t){p.error("License key is required");return}p.startSpinner("Validating license...");try{let n=t.split("-");if(n.length<2)throw new Error("Invalid license key format");let i=n[0],r=n[1];if(!Object.values(se).includes(i))throw new Error("Invalid license tier");await K.saveLicense({tier:i,email:r,key:t,features:[]}),p.succeedSpinner("License activated successfully!");let o=await K.loadLicense();p.section("License Details",[`Tier: ${o.tier.toUpperCase()}`,`Email: ${o.email||"N/A"}`,"Status: Active"]);let s=le();p.section("Available Features",s),p.success("\u2728 Ready to build!")}catch(n){p.failSpinner("License validation failed"),p.error(n.message||"Invalid license key"),p.newline(),p.info("All features are available for free - no license required!")}}function le(){return["\u2713 MCP generation","\u2713 Claude commands","\u2713 Claude agents","\u2713 Vector database integration","\u2713 Semantic caching","\u2713 Fine-tuning workflows","\u2713 Cloud deployment (AWS/GCP)","\u2713 GitHub automation","\u2713 All templates"]}import{logger as w,licenseManager as z}from"@neural-tools/core";async function V(){w.header("AI Toolkit Status");try{let e=await z.loadLicense();w.section("License Information",[`Tier: ${e.tier.toUpperCase()}`,`Email: ${e.email||"N/A"}`,`Status: ${e.expiresAt?ce(e.expiresAt):"Active"}`]);let t=[{name:"MCP Generation",key:"mcp-generation"},{name:"Claude Commands",key:"claude-commands"},{name:"Vector Database",key:"vector-db"},{name:"Semantic Cache",key:"semantic-cache"},{name:"Fine-tuning",key:"fine-tuning"},{name:"Cloud Deployment",key:"cloud-deployment"},{name:"GitHub Automation",key:"github-automation"}],n=await Promise.all(t.map(async i=>`${await z.checkFeature(i.key)?"\u2713":"\u2717"} ${i.name}`));w.section("Feature Availability",n),w.newline(),w.section("Quick Start",["Generate an MCP server:"," ai-toolkit generate mcp github","","Generate a Claude command:"," ai-toolkit generate command search-kb","","View all commands:"," ai-toolkit --help"])}catch{w.error("Failed to load license information"),w.newline(),w.info("All features are available - no license required!"),w.info('Run "ai-toolkit --help" to get started')}}function ce(e){let t=new Date(e),n=new Date;if(t<n)return"Expired";let i=Math.ceil((t.getTime()-n.getTime())/(1e3*60*60*24));return i<=30?`Active (expires in ${i} days)`:"Active"}var P=new ue;P.name("neural-tools").description("Neural Tools - Build MCPs, Claude commands, skills, plugins, and AI workflows").version("0.1.0");var A=P.command("generate").alias("g").description("Generate new components (MCP, command, agent, skill, plugin, etc.)");A.command("mcp").description("Generate a new MCP server").argument("<name>","Name of the MCP server").option("-d, --description <desc>","Description of the MCP").option("-o, --output <dir>","Output directory","./apps").option("--fastmcp","Use FastMCP template",!0).option("--cicd <provider>","CI/CD provider (github, harness, none)","github").option("--deployment <platform>","Deployment platform (aws, gcp, none)","aws").option("--dry-run","Preview without creating files",!1).action(I);A.command("command").description("Generate a new Claude command").argument("<name>","Name of the command (without /)").option("-d, --description <desc>","Description of the command").option("-o, --output <dir>","Output directory","./claude/commands").option("--args <arguments...>","Command arguments").option("--tools <tools...>","Allowed tools").option("--global","Install globally to ~/.claude/commands",!1).option("--dry-run","Preview without creating files",!1).action(T);A.command("agent").description("Generate a new Claude agent").argument("<name>","Name of the agent").option("-d, --description <desc>","Description of the agent").option("-o, --output <dir>","Output directory","./claude/agents").option("--model <model>","Model to use (sonnet, opus, haiku)","sonnet").option("--tools <tools...>","Available tools").option("--global","Install globally to ~/.claude/agents",!1).option("--dry-run","Preview without creating files",!1).action(L);A.command("skill").description("Generate a new Claude skill").argument("<name>","Name of the skill").option("-d, --description <desc>","Description of the skill").option("-o, --output <dir>","Output directory","./claude/skills").option("--plugin <dir>","Write skill into a plugin directory (creates <dir>/skills/<name>)").option("--references","Create a references folder scaffold",!1).option("--global","Install globally to ~/.claude/skills",!1).option("--dry-run","Preview without creating files",!1).action(Y);A.command("plugin").description("Generate a new Claude plugin").argument("<name>","Name of the plugin").option("-d, --description <desc>","Description of the plugin").option("-o, --output <dir>","Output directory","./claude/plugins").option("--version <version>","Plugin version","0.1.0").option("--author <author>","Plugin author").option("--with-skill <name>","Create a starter skill inside the plugin").option("--dry-run","Preview without creating files",!1).action(U);P.command("deploy").description("Deploy an MCP server").argument("<name>","Name of the MCP to deploy").option("-p, --platform <platform>","Deployment platform (aws, gcp)","aws").option("--region <region>","AWS/GCP region").option("--env <env>","Environment (dev, staging, prod)","dev").action(W);P.command("login").description("Authenticate and manage your license").option("--key <key>","License key").action(B);P.command("status").description("Show license status and available features").action(V);P.exitOverride();try{P.parse(process.argv)}catch(e){e.code!=="commander.help"&&e.code!=="commander.version"&&(pe.error(e.message||"An unexpected error occurred"),process.exit(1))}
|
package/dist/index.d.mts
CHANGED
|
@@ -28,6 +28,26 @@ interface GenerateAgentOptions {
|
|
|
28
28
|
}
|
|
29
29
|
declare function generateAgent(name: string, options: GenerateAgentOptions): Promise<void>;
|
|
30
30
|
|
|
31
|
+
interface GenerateSkillOptions {
|
|
32
|
+
description?: string;
|
|
33
|
+
output?: string;
|
|
34
|
+
plugin?: string;
|
|
35
|
+
references?: boolean;
|
|
36
|
+
global?: boolean;
|
|
37
|
+
dryRun?: boolean;
|
|
38
|
+
}
|
|
39
|
+
declare function generateSkill(name: string, options: GenerateSkillOptions): Promise<void>;
|
|
40
|
+
|
|
41
|
+
interface GeneratePluginOptions {
|
|
42
|
+
description?: string;
|
|
43
|
+
output?: string;
|
|
44
|
+
version?: string;
|
|
45
|
+
author?: string;
|
|
46
|
+
withSkill?: string;
|
|
47
|
+
dryRun?: boolean;
|
|
48
|
+
}
|
|
49
|
+
declare function generatePlugin(name: string, options: GeneratePluginOptions): Promise<void>;
|
|
50
|
+
|
|
31
51
|
interface DeployOptions {
|
|
32
52
|
platform?: 'aws' | 'gcp';
|
|
33
53
|
region?: string;
|
|
@@ -42,4 +62,4 @@ declare function loginCommand(options: LoginOptions): Promise<void>;
|
|
|
42
62
|
|
|
43
63
|
declare function statusCommand(): Promise<void>;
|
|
44
64
|
|
|
45
|
-
export { deployMCP, generateAgent, generateCommand, generateMCP, loginCommand, statusCommand };
|
|
65
|
+
export { deployMCP, generateAgent, generateCommand, generateMCP, generatePlugin, generateSkill, loginCommand, statusCommand };
|
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,26 @@ interface GenerateAgentOptions {
|
|
|
28
28
|
}
|
|
29
29
|
declare function generateAgent(name: string, options: GenerateAgentOptions): Promise<void>;
|
|
30
30
|
|
|
31
|
+
interface GenerateSkillOptions {
|
|
32
|
+
description?: string;
|
|
33
|
+
output?: string;
|
|
34
|
+
plugin?: string;
|
|
35
|
+
references?: boolean;
|
|
36
|
+
global?: boolean;
|
|
37
|
+
dryRun?: boolean;
|
|
38
|
+
}
|
|
39
|
+
declare function generateSkill(name: string, options: GenerateSkillOptions): Promise<void>;
|
|
40
|
+
|
|
41
|
+
interface GeneratePluginOptions {
|
|
42
|
+
description?: string;
|
|
43
|
+
output?: string;
|
|
44
|
+
version?: string;
|
|
45
|
+
author?: string;
|
|
46
|
+
withSkill?: string;
|
|
47
|
+
dryRun?: boolean;
|
|
48
|
+
}
|
|
49
|
+
declare function generatePlugin(name: string, options: GeneratePluginOptions): Promise<void>;
|
|
50
|
+
|
|
31
51
|
interface DeployOptions {
|
|
32
52
|
platform?: 'aws' | 'gcp';
|
|
33
53
|
region?: string;
|
|
@@ -42,4 +62,4 @@ declare function loginCommand(options: LoginOptions): Promise<void>;
|
|
|
42
62
|
|
|
43
63
|
declare function statusCommand(): Promise<void>;
|
|
44
64
|
|
|
45
|
-
export { deployMCP, generateAgent, generateCommand, generateMCP, loginCommand, statusCommand };
|
|
65
|
+
export { deployMCP, generateAgent, generateCommand, generateMCP, generatePlugin, generateSkill, loginCommand, statusCommand };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var ee=Object.create;var E=Object.defineProperty;var te=Object.getOwnPropertyDescriptor;var ie=Object.getOwnPropertyNames;var re=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var oe=(e,t)=>{for(var i in t)E(e,i,{get:t[i],enumerable:!0})},T=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ie(t))!ne.call(e,n)&&n!==i&&E(e,n,{get:()=>t[n],enumerable:!(r=te(t,n))||r.enumerable});return e};var l=(e,t,i)=>(i=e!=null?ee(re(e)):{},T(t||!e||!e.__esModule?E(i,"default",{value:e,enumerable:!0}):i,e)),se=e=>T(E({},"__esModule",{value:!0}),e);var de={};oe(de,{deployMCP:()=>J,generateAgent:()=>U,generateCommand:()=>Y,generateMCP:()=>L,generatePlugin:()=>B,generateSkill:()=>W,loginCommand:()=>X,statusCommand:()=>Z});module.exports=se(de);var f=l(require("path")),m=l(require("fs-extra")),g=require("@neural-tools/core"),_=l(require("inquirer"));async function L(e,t){g.logger.header(`Generating MCP: ${e}`),t.deployment!=="none"&&await(0,g.requireFeature)("cloud-deployment","Cloud Deployment");let i=t.description;i||(i=(await _.default.prompt([{type:"input",name:"description",message:"Description of your MCP:",default:`${e} MCP server`}])).description);let r=f.default.resolve(t.output||"./apps",e);if(t.dryRun){g.logger.info("Dry run mode - no files will be created"),g.logger.section("Configuration",[`Name: ${e}`,`Description: ${i}`,`Output: ${r}`,`Template: ${t.fastmcp?"FastMCP":"Standard"}`,`CI/CD: ${t.cicd}`,`Deployment: ${t.deployment}`]);return}if(await m.default.pathExists(r)){let{overwrite:n}=await _.default.prompt([{type:"confirm",name:"overwrite",message:`Directory ${r} already exists. Overwrite?`,default:!1}]);if(!n){g.logger.warn("Cancelled");return}await m.default.remove(r)}g.logger.startSpinner("Creating MCP structure...");try{await m.default.ensureDir(r);let n=`[project]
|
|
2
2
|
name = "mcp-${e}"
|
|
3
3
|
version = "0.1.0"
|
|
4
|
-
description = "${
|
|
4
|
+
description = "${i}"
|
|
5
5
|
requires-python = ">=3.10"
|
|
6
6
|
dependencies = [
|
|
7
7
|
"fastmcp>=2.2.0",
|
|
@@ -23,10 +23,10 @@ line-length = 100
|
|
|
23
23
|
|
|
24
24
|
[tool.ruff]
|
|
25
25
|
line-length = 100
|
|
26
|
-
`;await
|
|
26
|
+
`;await m.default.writeFile(f.default.join(r,"pyproject.toml"),n,"utf-8");let o=`"""
|
|
27
27
|
${e} MCP Server
|
|
28
28
|
|
|
29
|
-
${
|
|
29
|
+
${i}
|
|
30
30
|
"""
|
|
31
31
|
from fastmcp import FastMCP
|
|
32
32
|
|
|
@@ -82,9 +82,9 @@ def brainstorm_topic(topic: str) -> str:
|
|
|
82
82
|
|
|
83
83
|
if __name__ == "__main__":
|
|
84
84
|
mcp.run()
|
|
85
|
-
`;await
|
|
85
|
+
`;await m.default.writeFile(f.default.join(r,"server.py"),o,"utf-8");let s=`# ${e} MCP Server
|
|
86
86
|
|
|
87
|
-
${
|
|
87
|
+
${i}
|
|
88
88
|
|
|
89
89
|
## Quick Start with Docker
|
|
90
90
|
|
|
@@ -189,7 +189,7 @@ ruff check .
|
|
|
189
189
|
## License
|
|
190
190
|
|
|
191
191
|
MIT
|
|
192
|
-
`;await
|
|
192
|
+
`;await m.default.writeFile(f.default.join(r,"README.md"),s,"utf-8"),await m.default.writeFile(f.default.join(r,"Dockerfile"),`FROM python:3.11-slim
|
|
193
193
|
|
|
194
194
|
WORKDIR /app
|
|
195
195
|
|
|
@@ -205,7 +205,7 @@ RUN uv pip install --system --no-cache .
|
|
|
205
205
|
|
|
206
206
|
# Run the MCP server
|
|
207
207
|
CMD ["python", "server.py"]
|
|
208
|
-
`,"utf-8");let
|
|
208
|
+
`,"utf-8");let p=`version: '3.8'
|
|
209
209
|
|
|
210
210
|
services:
|
|
211
211
|
mcp:
|
|
@@ -218,7 +218,7 @@ services:
|
|
|
218
218
|
- .:/app
|
|
219
219
|
environment:
|
|
220
220
|
- PYTHONUNBUFFERED=1
|
|
221
|
-
`;if(await
|
|
221
|
+
`;if(await m.default.writeFile(f.default.join(r,"docker-compose.yml"),p,"utf-8"),await m.default.writeFile(f.default.join(r,".dockerignore"),`__pycache__
|
|
222
222
|
*.pyc
|
|
223
223
|
*.pyo
|
|
224
224
|
*.pyd
|
|
@@ -235,7 +235,7 @@ venv
|
|
|
235
235
|
.git
|
|
236
236
|
.github
|
|
237
237
|
README.md
|
|
238
|
-
`,"utf-8"),t.cicd==="github"){await
|
|
238
|
+
`,"utf-8"),t.cicd==="github"){await m.default.ensureDir(f.default.join(r,".github","workflows"));let $=`name: Deploy MCP
|
|
239
239
|
|
|
240
240
|
on:
|
|
241
241
|
push:
|
|
@@ -319,22 +319,22 @@ jobs:
|
|
|
319
319
|
run: |
|
|
320
320
|
gcloud builds submit --tag gcr.io/\${{ secrets.GCP_PROJECT_ID }}/mcp-${e}:latest
|
|
321
321
|
`:""}
|
|
322
|
-
`;await
|
|
322
|
+
`;await m.default.writeFile(f.default.join(r,".github","workflows","deploy.yml"),$,"utf-8")}g.logger.succeedSpinner("MCP created successfully!"),g.logger.section("Next steps",[`1. cd ${r}`,"2. docker-compose up # Start with Docker","","Or for local development:","2. uv pip install -e .","3. python server.py","","Or use MCP Inspector:","2. uv pip install -e .","3. fastmcp dev server.py","","Add to Claude Code settings to use this MCP"]),g.logger.success(`\u2728 MCP "${e}" ready to use!`)}catch(n){throw g.logger.failSpinner("Failed to create MCP"),n}}var A=l(require("path")),N=l(require("os")),O=l(require("fs-extra")),y=require("@neural-tools/core"),j=l(require("inquirer"));async function Y(e,t){y.logger.header(`Generating Claude Command: /${e}`);let i=t.description;i||(i=(await j.default.prompt([{type:"input",name:"description",message:"Description of your command:",default:`Execute ${e}`}])).description);let r;t.global?r=A.default.join(N.default.homedir(),".claude","commands"):r=A.default.resolve(t.output||"./claude/commands");let n=A.default.join(r,`${e}.md`);if(t.dryRun){y.logger.info("Dry run mode - no files will be created"),y.logger.section("Configuration",[`Name: /${e}`,`Description: ${i}`,`Output: ${n}`,`Arguments: ${t.args?.join(", ")||"none"}`,`Allowed Tools: ${t.tools?.join(", ")||"all"}`,`Global: ${t.global?"Yes":"No"}`]);return}if(await O.default.pathExists(n)){let{overwrite:o}=await j.default.prompt([{type:"confirm",name:"overwrite",message:`Command /${e} already exists. Overwrite?`,default:!1}]);if(!o){y.logger.warn("Cancelled");return}}y.logger.startSpinner("Creating Claude command...");try{await O.default.ensureDir(r);let o=["---"];t.args&&t.args.length>0&&o.push(`argument-hint: ${t.args.join(" ")}`),o.push(`description: ${i}`),t.tools&&t.tools.length>0&&(o.push("allowed-tools:"),t.tools.forEach($=>{o.push(` - ${$}`)})),o.push("---"),o.push("");let s=t.args||[],u=s.map(($,R)=>`$${R+1}`).join(" "),p=s.length>0?`
|
|
323
323
|
|
|
324
324
|
Arguments:
|
|
325
|
-
${
|
|
326
|
-
`)}`:"",
|
|
325
|
+
${s.map(($,R)=>`- $${R+1}: ${$}`).join(`
|
|
326
|
+
`)}`:"",D=`${o.join(`
|
|
327
327
|
`)}# ${e} Command
|
|
328
328
|
|
|
329
|
-
Execute the ${e} operation${
|
|
329
|
+
Execute the ${e} operation${p?":"+p:"."}
|
|
330
330
|
|
|
331
|
-
${
|
|
331
|
+
${u?`Using arguments: ${u}`:""}
|
|
332
332
|
|
|
333
333
|
Please proceed with the ${e} operation.
|
|
334
|
-
`;await
|
|
334
|
+
`;await O.default.writeFile(n,D,"utf-8"),y.logger.succeedSpinner("Claude command created successfully!"),y.logger.section("Next steps",[t.global?`Command /${e} is now available globally in Claude Code`:`Add the command to your project by copying ${n}`,"","Usage:",s.length>0?` /${e} ${s.join(" ")}`:` /${e}`]),y.logger.success(`\u2728 Command "/${e}" ready to use!`)}catch(o){throw y.logger.failSpinner("Failed to create command"),o}}var G=l(require("path")),q=l(require("os")),M=l(require("fs-extra")),h=require("@neural-tools/core"),x=l(require("inquirer"));async function U(e,t){h.logger.header(`Generating Claude Agent: ${e}`);let i=t.description;i||(i=(await x.default.prompt([{type:"input",name:"description",message:"Description of your agent:",default:`${e} specialized agent`}])).description);let r;t.global?r=G.default.join(q.default.homedir(),".claude","agents"):r=G.default.resolve(t.output||"./claude/agents");let n=G.default.join(r,`${e}.md`),o=t.model||"sonnet";if(t.dryRun){h.logger.info("Dry run mode - no files will be created"),h.logger.section("Configuration",[`Name: ${e}`,`Description: ${i}`,`Output: ${n}`,`Model: ${o}`,`Tools: ${t.tools?.join(", ")||"all"}`,`Global: ${t.global?"Yes":"No"}`]);return}if(await M.default.pathExists(n)){let{overwrite:s}=await x.default.prompt([{type:"confirm",name:"overwrite",message:`Agent ${e} already exists. Overwrite?`,default:!1}]);if(!s){h.logger.warn("Cancelled");return}}h.logger.startSpinner("Creating Claude agent...");try{await M.default.ensureDir(r);let s=["---"];s.push(`model: claude-${o}-4-5`),t.tools&&t.tools.length>0&&(s.push("tools:"),t.tools.forEach(p=>{s.push(` - ${p}`)})),s.push("---"),s.push("");let u=`${s.join(`
|
|
335
335
|
`)}# ${e} Agent
|
|
336
336
|
|
|
337
|
-
${
|
|
337
|
+
${i}
|
|
338
338
|
|
|
339
339
|
## Role
|
|
340
340
|
|
|
@@ -360,4 +360,33 @@ Provide clear, structured responses that:
|
|
|
360
360
|
- [Output requirement 3]
|
|
361
361
|
|
|
362
362
|
Focus on ${e} and deliver actionable results.
|
|
363
|
-
`;await
|
|
363
|
+
`;await M.default.writeFile(n,u,"utf-8"),h.logger.succeedSpinner("Claude agent created successfully!"),h.logger.section("Next steps",[t.global?`Agent ${e} is now available globally in Claude Code`:`Add the agent to your project by copying ${n}`,"","Customize the agent by editing:",` ${n}`,"","Use the agent via the Task tool in Claude Code"]),h.logger.success(`\u2728 Agent "${e}" ready to use!`)}catch(s){throw h.logger.failSpinner("Failed to create agent"),s}}var k=l(require("path")),K=l(require("os")),P=l(require("fs-extra")),F=l(require("inquirer")),w=require("@neural-tools/core");async function W(e,t){w.logger.header(`Generating Claude Skill: ${e}`);let i=t.description;i||(i=(await F.default.prompt([{type:"input",name:"description",message:"Description of your skill:",default:`${e} skill for Claude Code`}])).description);let r=ae(t),n=k.default.join(r,e),o=k.default.join(n,"SKILL.md"),s=k.default.join(n,"references");if(t.dryRun){w.logger.info("Dry run mode - no files will be created"),w.logger.section("Configuration",[`Name: ${e}`,`Description: ${i}`,`Output: ${o}`,`Plugin: ${t.plugin||"none"}`,`References: ${t.references?"Yes":"No"}`,`Global: ${t.global?"Yes":"No"}`]);return}if(await P.default.pathExists(o)){let{overwrite:u}=await F.default.prompt([{type:"confirm",name:"overwrite",message:`Skill ${e} already exists. Overwrite?`,default:!1}]);if(!u){w.logger.warn("Cancelled");return}}w.logger.startSpinner("Creating Claude skill...");try{await P.default.ensureDir(n),t.references&&await P.default.ensureDir(s);let u=`---
|
|
364
|
+
name: ${e}
|
|
365
|
+
description: ${i}
|
|
366
|
+
---
|
|
367
|
+
|
|
368
|
+
# ${e}
|
|
369
|
+
|
|
370
|
+
${i}
|
|
371
|
+
|
|
372
|
+
## When to use this skill
|
|
373
|
+
|
|
374
|
+
Use this skill when the request matches ${e} workflows.
|
|
375
|
+
|
|
376
|
+
## Workflow
|
|
377
|
+
|
|
378
|
+
1. Gather the relevant project context.
|
|
379
|
+
2. Apply ${e} specific checks and implementation steps.
|
|
380
|
+
3. Return concrete output and next actions.
|
|
381
|
+
`;if(await P.default.writeFile(o,u,"utf-8"),t.references){let p=`# References
|
|
382
|
+
|
|
383
|
+
Store focused reference material for the ${e} skill in this folder.
|
|
384
|
+
`;await P.default.writeFile(k.default.join(s,"README.md"),p,"utf-8")}w.logger.succeedSpinner("Claude skill created successfully!"),w.logger.section("Next steps",[`Edit the skill definition: ${o}`,t.references?`Add reference docs in: ${s}`:"Use --references to scaffold a references folder"]),w.logger.success(`\u2728 Skill "${e}" ready to use!`)}catch(u){throw w.logger.failSpinner("Failed to create skill"),u}}function ae(e){return e.plugin?k.default.resolve(e.plugin,"skills"):e.global?k.default.join(K.default.homedir(),".claude","skills"):k.default.resolve(e.output||"./claude/skills")}var b=l(require("path")),S=l(require("fs-extra")),I=l(require("inquirer")),C=require("@neural-tools/core");async function B(e,t){C.logger.header(`Generating Claude Plugin: ${e}`);let i=t.description;i||(i=(await I.default.prompt([{type:"input",name:"description",message:"Description of your plugin:",default:`${e} Claude Code plugin`}])).description);let r=i||`${e} Claude Code plugin`,n=b.default.resolve(t.output||"./claude/plugins",e),o=b.default.join(n,".claude-plugin"),s=b.default.join(o,"plugin.json"),u=b.default.join(n,"skills");if(t.dryRun){C.logger.info("Dry run mode - no files will be created"),C.logger.section("Configuration",[`Name: ${e}`,`Description: ${r}`,`Output: ${n}`,`Plugin config: ${s}`,`Version: ${t.version||"0.1.0"}`,`Author: ${t.author||"none"}`,`Starter skill: ${t.withSkill||"none"}`]);return}if(await S.default.pathExists(s)){let{overwrite:p}=await I.default.prompt([{type:"confirm",name:"overwrite",message:`Plugin ${e} already exists. Overwrite config?`,default:!1}]);if(!p){C.logger.warn("Cancelled");return}}C.logger.startSpinner("Creating Claude plugin...");try{await S.default.ensureDir(o),await S.default.ensureDir(u);let p={name:e,version:t.version||"0.1.0",description:r};if(t.author&&(p.author=t.author),await S.default.writeJSON(s,p,{spaces:2}),t.withSkill){let D=b.default.join(u,t.withSkill),$=b.default.join(D,"SKILL.md");await S.default.ensureDir(D);let R=`---
|
|
385
|
+
name: ${t.withSkill}
|
|
386
|
+
description: Starter skill for ${e}
|
|
387
|
+
---
|
|
388
|
+
|
|
389
|
+
# ${t.withSkill}
|
|
390
|
+
|
|
391
|
+
Starter skill scaffolded with the plugin.
|
|
392
|
+
`;await S.default.writeFile($,R,"utf-8")}C.logger.succeedSpinner("Claude plugin created successfully!"),C.logger.section("Next steps",[`Review plugin manifest: ${s}`,t.withSkill?`Customize skill: ${b.default.join(u,t.withSkill,"SKILL.md")}`:"Use `generate skill <name> --plugin <plugin-dir>` to add skills",`Install with Claude Code using the plugin path: ${n}`]),C.logger.success(`\u2728 Plugin "${e}" ready to use!`)}catch(p){throw C.logger.failSpinner("Failed to create plugin"),p}}var a=require("@neural-tools/core"),z=require("execa"),V=l(require("path")),H=l(require("fs-extra"));async function J(e,t){a.logger.header(`Deploying MCP: ${e}`),await(0,a.requireFeature)("cloud-deployment","Cloud Deployment");let i=t.platform||"aws",r=t.env||"dev";a.logger.info(`Platform: ${i}`),a.logger.info(`Environment: ${r}`);let n=V.default.resolve("./apps",e);if(!await H.default.pathExists(n))throw new Error(`MCP "${e}" not found at ${n}`);a.logger.startSpinner("Building MCP...");try{await(0,z.execa)("npm",["run","build"],{cwd:n,stdio:"pipe"}),a.logger.succeedSpinner("MCP built successfully"),i==="aws"?await le(e,n,t):i==="gcp"&&await ce(e,n,t),a.logger.success(`\u2728 MCP "${e}" deployed successfully!`)}catch(o){throw a.logger.failSpinner("Deployment failed"),o}}async function le(e,t,i){a.logger.startSpinner("Deploying to AWS Lambda..."),a.logger.updateSpinner("Packaging Lambda function..."),await new Promise(r=>setTimeout(r,1e3)),a.logger.updateSpinner("Uploading to S3..."),await new Promise(r=>setTimeout(r,1e3)),a.logger.updateSpinner("Creating/updating Lambda function..."),await new Promise(r=>setTimeout(r,1e3)),a.logger.succeedSpinner("Deployed to AWS Lambda"),a.logger.section("Deployment Info",[`Function: ${e}-${i.env}`,`Region: ${i.region||"us-east-1"}`,`Environment: ${i.env}`,"","Configure in Claude Code:",JSON.stringify({mcpServers:{[e]:{command:"aws",args:["lambda","invoke","--function-name",`${e}-${i.env}`,"--payload","stdin","--output","stdout"]}}},null,2)])}async function ce(e,t,i){a.logger.startSpinner("Deploying to Google Cloud Functions..."),a.logger.updateSpinner("Packaging function..."),await new Promise(r=>setTimeout(r,1e3)),a.logger.updateSpinner("Uploading to Cloud Storage..."),await new Promise(r=>setTimeout(r,1e3)),a.logger.updateSpinner("Deploying Cloud Function..."),await new Promise(r=>setTimeout(r,1e3)),a.logger.succeedSpinner("Deployed to Google Cloud Functions"),a.logger.section("Deployment Info",[`Function: ${e}-${i.env}`,`Region: ${i.region||"us-central1"}`,`Environment: ${i.env}`])}var c=require("@neural-tools/core"),Q=l(require("inquirer"));async function X(e){c.logger.header("AI Toolkit License Management");let t=e.key;if(t||(t=(await Q.default.prompt([{type:"input",name:"licenseKey",message:"Enter your license key:",validate:r=>!r||r.trim().length===0?"License key is required":!0}])).licenseKey),!t){c.logger.error("License key is required");return}c.logger.startSpinner("Validating license...");try{let i=t.split("-");if(i.length<2)throw new Error("Invalid license key format");let r=i[0],n=i[1];if(!Object.values(c.LicenseTier).includes(r))throw new Error("Invalid license tier");await c.licenseManager.saveLicense({tier:r,email:n,key:t,features:[]}),c.logger.succeedSpinner("License activated successfully!");let o=await c.licenseManager.loadLicense();c.logger.section("License Details",[`Tier: ${o.tier.toUpperCase()}`,`Email: ${o.email||"N/A"}`,"Status: Active"]);let s=ue();c.logger.section("Available Features",s),c.logger.success("\u2728 Ready to build!")}catch(i){c.logger.failSpinner("License validation failed"),c.logger.error(i.message||"Invalid license key"),c.logger.newline(),c.logger.info("All features are available for free - no license required!")}}function ue(){return["\u2713 MCP generation","\u2713 Claude commands","\u2713 Claude agents","\u2713 Vector database integration","\u2713 Semantic caching","\u2713 Fine-tuning workflows","\u2713 Cloud deployment (AWS/GCP)","\u2713 GitHub automation","\u2713 All templates"]}var d=require("@neural-tools/core");async function Z(){d.logger.header("AI Toolkit Status");try{let e=await d.licenseManager.loadLicense();d.logger.section("License Information",[`Tier: ${e.tier.toUpperCase()}`,`Email: ${e.email||"N/A"}`,`Status: ${e.expiresAt?pe(e.expiresAt):"Active"}`]);let t=[{name:"MCP Generation",key:"mcp-generation"},{name:"Claude Commands",key:"claude-commands"},{name:"Vector Database",key:"vector-db"},{name:"Semantic Cache",key:"semantic-cache"},{name:"Fine-tuning",key:"fine-tuning"},{name:"Cloud Deployment",key:"cloud-deployment"},{name:"GitHub Automation",key:"github-automation"}],i=await Promise.all(t.map(async r=>`${await d.licenseManager.checkFeature(r.key)?"\u2713":"\u2717"} ${r.name}`));d.logger.section("Feature Availability",i),d.logger.newline(),d.logger.section("Quick Start",["Generate an MCP server:"," ai-toolkit generate mcp github","","Generate a Claude command:"," ai-toolkit generate command search-kb","","View all commands:"," ai-toolkit --help"])}catch{d.logger.error("Failed to load license information"),d.logger.newline(),d.logger.info("All features are available - no license required!"),d.logger.info('Run "ai-toolkit --help" to get started')}}function pe(e){let t=new Date(e),i=new Date;if(t<i)return"Expired";let r=Math.ceil((t.getTime()-i.getTime())/(1e3*60*60*24));return r<=30?`Active (expires in ${r} days)`:"Active"}0&&(module.exports={deployMCP,generateAgent,generateCommand,generateMCP,generatePlugin,generateSkill,loginCommand,statusCommand});
|