frontmcp 0.3.1 → 0.4.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.
Files changed (45) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +448 -0
  3. package/package.json +5 -5
  4. package/src/args.d.ts +8 -0
  5. package/src/args.js +19 -0
  6. package/src/args.js.map +1 -0
  7. package/src/cli.d.ts +0 -1
  8. package/src/cli.js +30 -574
  9. package/src/cli.js.map +1 -1
  10. package/src/colors.d.ts +12 -0
  11. package/src/colors.js +17 -0
  12. package/src/colors.js.map +1 -0
  13. package/src/commands/build.d.ts +2 -0
  14. package/src/commands/build.js +43 -0
  15. package/src/commands/build.js.map +1 -0
  16. package/src/commands/create.d.ts +1 -0
  17. package/src/commands/create.js +204 -0
  18. package/src/commands/create.js.map +1 -0
  19. package/src/commands/dev.d.ts +2 -0
  20. package/src/commands/dev.js +49 -0
  21. package/src/commands/dev.js.map +1 -0
  22. package/src/commands/doctor.d.ts +1 -0
  23. package/src/commands/doctor.js +87 -0
  24. package/src/commands/doctor.js.map +1 -0
  25. package/src/commands/inspector.d.ts +1 -0
  26. package/src/commands/inspector.js +10 -0
  27. package/src/commands/inspector.js.map +1 -0
  28. package/src/commands/template.d.ts +13 -0
  29. package/src/commands/template.js +179 -0
  30. package/src/commands/template.js.map +1 -0
  31. package/src/templates/3rd-party-integration/src/http-client.d.ts +20 -0
  32. package/src/templates/3rd-party-integration/src/http-client.js +101 -0
  33. package/src/templates/3rd-party-integration/src/http-client.js.map +1 -0
  34. package/src/templates/3rd-party-integration/src/mcp-http-types.d.ts +199 -0
  35. package/src/templates/3rd-party-integration/src/mcp-http-types.js +51 -0
  36. package/src/templates/3rd-party-integration/src/mcp-http-types.js.map +1 -0
  37. package/src/templates/3rd-party-integration/src/tools/example.list.d.ts +125 -0
  38. package/src/templates/3rd-party-integration/src/tools/example.list.js +85 -0
  39. package/src/templates/3rd-party-integration/src/tools/example.list.js.map +1 -0
  40. package/src/tsconfig.d.ts +34 -0
  41. package/src/tsconfig.js +103 -0
  42. package/src/tsconfig.js.map +1 -0
  43. package/src/utils/fs.d.ts +11 -0
  44. package/src/utils/fs.js +104 -0
  45. package/src/utils/fs.js.map +1 -0
package/src/args.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseArgs = parseArgs;
4
+ function parseArgs(argv) {
5
+ const out = { _: [] };
6
+ for (let i = 0; i < argv.length; i++) {
7
+ const a = argv[i];
8
+ if (a === '--out-dir' || a === '-o')
9
+ out.outDir = argv[++i];
10
+ else if (a === '--entry' || a === '-e')
11
+ out.entry = argv[++i];
12
+ else if (a === '--help' || a === '-h')
13
+ out.help = true;
14
+ else
15
+ out._.push(a);
16
+ }
17
+ return out;
18
+ }
19
+ //# sourceMappingURL=args.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"args.js","sourceRoot":"","sources":["../../src/args.ts"],"names":[],"mappings":";;AASA,8BAUC;AAVD,SAAgB,SAAS,CAAC,IAAc;IACtC,MAAM,GAAG,GAAe,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IAClC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,IAAI,CAAC,KAAK,WAAW,IAAI,CAAC,KAAK,IAAI;YAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;aACvD,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI;YAAE,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;aACzD,IAAI,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI;YAAE,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;;YAClD,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACrB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["export type Command = 'dev' | 'build' | 'init' | 'doctor' | 'inspector' | 'create' | 'help' | 'template' | 'version';\n\nexport interface ParsedArgs {\n _: string[];\n outDir?: string;\n entry?: string;\n help?: boolean;\n}\n\nexport function parseArgs(argv: string[]): ParsedArgs {\n const out: ParsedArgs = { _: [] };\n for (let i = 0; i < argv.length; i++) {\n const a = argv[i];\n if (a === '--out-dir' || a === '-o') out.outDir = argv[++i];\n else if (a === '--entry' || a === '-e') out.entry = argv[++i];\n else if (a === '--help' || a === '-h') out.help = true;\n else out._.push(a);\n }\n return out;\n}\n"]}
package/src/cli.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
3
  * frontmcp - FrontMCP command line interface
4
- * Save as bin/frontmcp.ts (compile to JS with shebang preserved) or run with tsx.
5
4
  */
6
5
  export {};