File tree Expand file tree Collapse file tree 4 files changed +120
-14
lines changed Expand file tree Collapse file tree 4 files changed +120
-14
lines changed Original file line number Diff line number Diff line change 1- #  Ignore bin directory but keep cli.js
2- bin /* 
3- ! bin /cli.js 
4- 
51#  Dependency directories
62node_modules /
73jspm_packages /
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22
3- /** 
4-  * Flipt MCP Server CLI 
5-  * This script is the entry point for the npx command 
6-  */ 
3+ // Import the server from the compiled index.js file 
4+ const  {  startServer }  =  require ( '../dist/index.js' ) ; 
75
8- // Import the server from the compiled JavaScript 
9- require ( '../dist/index.js' ) ;  
6+ // Start the server 
7+ startServer ( ) ; 
8+ 
9+ console . log ( 'Flipt MCP Server started. Press Ctrl+C to stop.' ) ;  
Original file line number Diff line number Diff line change 11{
22  "name" : " @flipt-io/mcp-server-flipt"  ,
3-   "version" : " 0.0.1-rc.2 "  ,
3+   "version" : " 0.0.1-rc.3 "  ,
44  "description" : " Model Context Protocol server for Flipt"  ,
55  "main" : " dist/index.js"  ,
66  "type" : " commonjs"  ,
1616  },
1717  "scripts" : {
1818    "build" : " tsc"  ,
19+     "check" : " tsc --noEmit"  ,
1920    "start" : " node dist/index.js"  ,
2021    "dev" : " tsx src/index.ts"  ,
2122    "test" : " jest"  ,
2223    "lint" : " eslint 'src/**/*.ts' --ignore-pattern 'src/generated/**'"  ,
2324    "lint:fix" : " eslint 'src/**/*.ts' --ignore-pattern 'src/generated/**' --fix"  ,
2425    "fmt" : " prettier --write 'src/**/*.ts' --ignore-path .prettierignore"  ,
2526    "fmt:check" : " prettier --check 'src/**/*.ts' --ignore-path .prettierignore"  ,
26-     "prepublishOnly" : " npm run build" 
27+     "prepublishOnly" : " npm run build"  ,
28+     "postbuild" : " shx chmod +x bin/cli.js" 
2729  },
2830  "dependencies" : {
2931    "@modelcontextprotocol/sdk" : " ^1.7.0"  ,
4648    "eslint-plugin-prettier" : " ^5.2.3"  ,
4749    "jest" : " ^29.7.0"  ,
4850    "prettier" : " ^3.5.3"  ,
51+     "shx" : " ^0.3.4"  ,
4952    "ts-jest" : " ^29.1.1"  ,
5053    "tsx" : " ^4.19.3"  ,
5154    "typescript" : " ^5.3.3"  ,
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments