Skip to content

Commit e57586f

Browse files
committed
fix: add postbuild step and bin in package.json
1 parent 148afd8 commit e57586f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
"version": "0.0.0-development",
44
"description": "A Model Context Protocol server that provides web content fetching capabilities",
55
"type": "module",
6-
"main": "dist/index.js",
6+
"main": "dist/main.js",
7+
"bin": "dist/main.js",
78
"scripts": {
89
"start": "node dist/main.js",
910
"dev": "tsx watch src/main.ts",
1011
"build": "tsc",
12+
"postbuild": "chmod +x dist/main.js",
1113
"lint": "eslint src/**",
1214
"lint:fix": "eslint src/** --fix",
1315
"format": "prettier --write \"**/*.{ts,json,md,yml,js}\"",

src/main.ts

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env node
2+
13
import { FastMCP } from 'fastmcp';
24
import { fetchPrompt } from './prompts/fetch.prompt.js';
35
import { fetchTool } from './tools/fetch.tool.js';

0 commit comments

Comments
 (0)