mcp-filter 1.0.0 → 1.0.1

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/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.1] - 2026-03-15
9
+
10
+ ### Fixed
11
+ - Logger was writing info/success messages to stdout, corrupting MCP JSON-RPC stream and causing "not valid JSON" errors in clients like Cursor
12
+
8
13
  ## [1.0.0] - 2026-03-14
9
14
 
10
15
  ### Added
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,mCAEjB,CAAC"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,mCAGjB,CAAC"}
package/dist/logger.js CHANGED
@@ -1,6 +1,8 @@
1
1
  import { createConsola } from "consola";
2
- // Create logger that outputs to stderr to not interfere with MCP JSON-RPC on stdout
2
+ // Force ALL output to stderr so nothing interferes with MCP JSON-RPC on stdout.
3
+ // By default consola sends info/success/log to stdout — we must override both streams.
3
4
  export const logger = createConsola({
5
+ stdout: process.stderr,
4
6
  stderr: process.stderr,
5
7
  });
6
8
  //# sourceMappingURL=logger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,oFAAoF;AACpF,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC;IAClC,MAAM,EAAE,OAAO,CAAC,MAAM;CACvB,CAAC,CAAC"}
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,gFAAgF;AAChF,uFAAuF;AACvF,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC;IAClC,MAAM,EAAE,OAAO,CAAC,MAAM;IACtB,MAAM,EAAE,OAAO,CAAC,MAAM;CACvB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-filter",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "MCP server proxy to filter tools, resources, and prompts from upstream MCP servers",
5
5
  "type": "module",
6
6
  "bin": {
@@ -18,6 +18,14 @@
18
18
  "CHANGELOG.md",
19
19
  "LICENSE"
20
20
  ],
21
+ "scripts": {
22
+ "build": "tsc",
23
+ "dev": "tsc --watch",
24
+ "test": "vitest run",
25
+ "test:watch": "vitest --watch",
26
+ "test:coverage": "vitest --coverage",
27
+ "prepublishOnly": "pnpm test && pnpm run build"
28
+ },
21
29
  "keywords": [
22
30
  "mcp",
23
31
  "model-context-protocol",
@@ -53,12 +61,5 @@
53
61
  },
54
62
  "engines": {
55
63
  "node": ">=20"
56
- },
57
- "scripts": {
58
- "build": "tsc",
59
- "dev": "tsc --watch",
60
- "test": "vitest run",
61
- "test:watch": "vitest --watch",
62
- "test:coverage": "vitest --coverage"
63
64
  }
64
- }
65
+ }