fa-mcp-sdk 0.2.99 → 0.2.101

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 (2) hide show
  1. package/bin/fa-mcp.js +14 -2
  2. package/package.json +1 -1
package/bin/fa-mcp.js CHANGED
@@ -464,8 +464,8 @@ certificate's public and private keys`,
464
464
  case 'logger.useFileLogger': {
465
465
  const enabled = await ask.yn(title, name, defaultValue);
466
466
  config[name] = String(enabled);
467
+ const nm = 'logger.dir';
467
468
  if (enabled) {
468
- const nm = 'logger.dir';
469
469
  const p = this.optionalParams.find(({ name: n }) => n === nm);
470
470
  value = await ask.optional(p.title, nm, config[nm] || p.defaultValue);
471
471
  if (value) {
@@ -613,7 +613,19 @@ certificate's public and private keys`,
613
613
  // Check if directory is empty
614
614
  try {
615
615
  const files = await fs.readdir(targetPath);
616
- const allowedFiles = ['.git', '.idea', '.vscode', '.swp', '.swo', '.DS_Store', '.sublime-project', '.sublime-workspace', 'node_modules', 'dist'];
616
+ const allowedFiles = [
617
+ '.git',
618
+ '.idea',
619
+ '.vscode',
620
+ '.swp',
621
+ '.swo',
622
+ '.DS_Store',
623
+ '.sublime-project',
624
+ '.sublime-workspace',
625
+ 'node_modules',
626
+ 'dist',
627
+ '~last-cli-config.json'
628
+ ];
617
629
  const hasOtherFiles = files.some(file => !allowedFiles.includes(file));
618
630
 
619
631
  if (hasOtherFiles) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fa-mcp-sdk",
3
3
  "productName": "FA MCP SDK",
4
- "version": "0.2.99",
4
+ "version": "0.2.101",
5
5
  "description": "Core infrastructure and templates for building Model Context Protocol (MCP) servers with TypeScript",
6
6
  "type": "module",
7
7
  "main": "dist/core/index.js",