@feedmob/github-issues 0.0.8 → 1.0.0

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.
package/README.md CHANGED
@@ -35,17 +35,33 @@ npm run build
35
35
 
36
36
  ### Example MCP Client Config (stdio)
37
37
 
38
- Use the built artifact (`dist/index.js`) after `npm run build`:
38
+ **Recommended (avoids completions capability issue):** run from the built artifact when you have the repo. After `npm run build` in `src/github-issues/`:
39
+
40
+ ```json
41
+ {
42
+ "mcpServers": {
43
+ "feedmob-github-issues": {
44
+ "command": "node",
45
+ "args": ["/absolute/path/to/fm-mcp-servers/src/github-issues/dist/index.js"],
46
+ "env": {
47
+ "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_xxx",
48
+ "GITHUB_DEFAULT_OWNER": "feedmob",
49
+ "AI_API_URL": "https://your-feedmob-api.example.com",
50
+ "AI_API_TOKEN": "your-feedmob-api-token"
51
+ }
52
+ }
53
+ }
54
+ }
55
+ ```
56
+
57
+ Alternatively, use `npx` (do **not** use `npm install -g @feedmob/github-issues`; global install ignores the package’s SDK override and can cause the “Server does not support completions” error):
39
58
 
40
59
  ```json
41
60
  {
42
61
  "mcpServers": {
43
62
  "feedmob-github-issues": {
44
63
  "command": "npx",
45
- "args": [
46
- "-y",
47
- "@feedmob/github-issues"
48
- ],
64
+ "args": ["-y", "@feedmob/github-issues"],
49
65
  "env": {
50
66
  "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_xxx",
51
67
  "GITHUB_DEFAULT_OWNER": "feedmob",
@@ -133,3 +149,26 @@ npx tsx index.ts
133
149
 
134
150
  ### `issues/search_schema`
135
151
  - Provides the schema definition for `search_issues`.
152
+
153
+ ## Troubleshooting
154
+
155
+ ### `Server does not support completions (required for completion/complete)`
156
+
157
+ Cursor (and other MCP clients using protocol 2025-11-25) may request the `completion/complete` capability. FastMCP 2.1 uses `@modelcontextprotocol/sdk`; SDK **1.22.0+** requires the server to advertise the completions capability when registering a completion handler, but FastMCP does not set it, so the server crashes on start.
158
+
159
+ **Fix:**
160
+
161
+ 1. **Preferred:** Run from the repo so the package’s SDK pin is used. In Cursor MCP config, use the built server instead of `npx` or a global install:
162
+ ```json
163
+ "command": "node",
164
+ "args": ["/absolute/path/to/fm-mcp-servers/src/github-issues/dist/index.js"]
165
+ ```
166
+ Run `npm install` and `npm run build` in `src/github-issues/` first.
167
+
168
+ 2. **If you use npx:** Avoid `npm install -g @feedmob/github-issues`. npm applies `overrides` only from the root project; a global install has no root `package.json`, so the pin is ignored and the crash can occur. Use `npx -y @feedmob/github-issues` (npx uses the package as root so the override applies), or switch to the local path above.
169
+
170
+ 3. **Local dev:** This package pins the SDK to **1.21.2** via `overrides` and a direct dependency. After pulling, run `npm install` in `src/github-issues/` so the pin is applied.
171
+
172
+ ### `SyntaxError: Unexpected token ':'` with JSON on stdin
173
+
174
+ If you see Node parsing the MCP `initialize` JSON as JavaScript (e.g. `Expected ';', '}' or <eof>`), the process is likely being run with **stdin as script** (e.g. `node -`). The server must be started with **stdio** so that stdin is the MCP channel, not script input. In Cursor MCP config, use a plain command such as `node /absolute/path/to/dist/index.js` or `npx -y @feedmob/github-issues` with no `-` or stdin-eval.
@@ -1,3 +1,3 @@
1
1
  // If the format of this file changes, so it doesn't simply export a VERSION constant,
2
2
  // this will break .github/workflows/version-check.yml.
3
- export const VERSION = "0.0.8";
3
+ export const VERSION = "0.0.9";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmob/github-issues",
3
- "version": "0.0.8",
3
+ "version": "1.0.0",
4
4
  "description": "MCP server for using the GitHub API",
5
5
  "license": "MIT",
6
6
  "author": "FeedMob",
@@ -19,6 +19,7 @@
19
19
  "watch": "tsc --watch"
20
20
  },
21
21
  "dependencies": {
22
+ "@modelcontextprotocol/sdk": "1.21.2",
22
23
  "@types/node": "^22",
23
24
  "@types/node-fetch": "^2.6.12",
24
25
  "date-fns": "^4.1.0",
@@ -35,5 +36,8 @@
35
36
  "repository": {
36
37
  "type": "git",
37
38
  "url": "https://github.com/feed-mob/fm-mcp-servers"
39
+ },
40
+ "overrides": {
41
+ "@modelcontextprotocol/sdk": "1.21.2"
38
42
  }
39
43
  }