@nekzus/mcp-server 1.24.1 → 1.25.0-alpha.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/README.md +19 -6
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -23
- package/dist/index.js.map +1 -1
- package/dist/src/http.d.ts +6 -5
- package/dist/src/http.d.ts.map +1 -1
- package/dist/src/http.js +13 -18
- package/dist/src/http.js.map +1 -1
- package/dist/src/server.d.ts +4 -0
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/server.js +5 -2
- package/dist/src/server.js.map +1 -1
- package/llms-full.txt +2 -2
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -59,12 +59,25 @@ To ensure data accuracy while maintaining high performance:
|
|
|
59
59
|
|
|
60
60
|
## Installation & Transports
|
|
61
61
|
|
|
62
|
-
###
|
|
62
|
+
### Dual-Era MCP Architecture (v1 `2025-11-25` + v2 `2026-07-28`)
|
|
63
63
|
|
|
64
|
-
This MCP server
|
|
64
|
+
This MCP server features native **Dual-Era Protocol Compatibility**, seamlessly serving both modern MCP v2 clients (`2026-07-28`) and legacy MCP v1 clients (`2025-11-25`) out of the box across both **STDIO** and **Streamable HTTP** transports:
|
|
65
65
|
|
|
66
|
-
- **STDIO Mode**:
|
|
67
|
-
- **Streamable HTTP / SSE Mode**:
|
|
66
|
+
- **STDIO Mode (`npx @nekzus/mcp-server`)**: Powered by `serveStdio({ legacy: "serve" })`. Handles modern `server/discover` probes sessionlessly and conjoins seamlessly with legacy `initialize` handshakes for local execution (Claude Desktop, Cursor, Docker).
|
|
67
|
+
- **Streamable HTTP / SSE Mode (`@nekzus/mcp-server/http`)**: Powered by `createMcpHandler({ legacy: "stateless" })`. Designed for serverless and web-standard runtimes (Cloudflare Workers, Hono, Express, Vercel API Routes, Smithery.ai).
|
|
68
|
+
|
|
69
|
+
**Example: Mounting HTTP Handler (Cloudflare Workers / Hono / Express)**
|
|
70
|
+
```typescript
|
|
71
|
+
import { createMcpHttpHandler } from '@nekzus/mcp-server/http';
|
|
72
|
+
|
|
73
|
+
const handleRequest = createMcpHttpHandler();
|
|
74
|
+
|
|
75
|
+
export default {
|
|
76
|
+
async fetch(request, env, ctx) {
|
|
77
|
+
return handleRequest(request);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
```
|
|
68
81
|
|
|
69
82
|
**Development Commands:**
|
|
70
83
|
```bash
|
|
@@ -74,13 +87,13 @@ pnpm install
|
|
|
74
87
|
# Compile TypeScript to dist/
|
|
75
88
|
pnpm run build
|
|
76
89
|
|
|
77
|
-
# Start STDIO server
|
|
90
|
+
# Start STDIO server (Dual-Era)
|
|
78
91
|
pnpm run start
|
|
79
92
|
|
|
80
93
|
# Development server with Smithery CLI playground
|
|
81
94
|
pnpm run dev
|
|
82
95
|
|
|
83
|
-
# Run unit and integration test suite (
|
|
96
|
+
# Run full unit and integration test suite (238 tests)
|
|
84
97
|
pnpm test -- --run
|
|
85
98
|
|
|
86
99
|
# Run full E2E tarball verification
|