Skip to content

Commit 8455cd2

Browse files
committed
chore: make executable
Signed-off-by: Mark Phelps <[email protected]>
1 parent dc944e3 commit 8455cd2

File tree

4 files changed

+120
-14
lines changed

4 files changed

+120
-14
lines changed

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# Ignore bin directory but keep cli.js
2-
bin/*
3-
!bin/cli.js
4-
51
# Dependency directories
62
node_modules/
73
jspm_packages/

bin/cli.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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.');

package-lock.json

Lines changed: 109 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",
@@ -16,14 +16,16 @@
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",
@@ -46,6 +48,7 @@
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",

0 commit comments

Comments
 (0)