nx-mcp-server 1.0.5 → 1.0.6
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/package.json +1 -1
- package/src/index.js +0 -5
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -43,14 +43,9 @@ async function startHttp(){
|
|
|
43
43
|
const {StreamableHTTPServerTransport}=await import('@modelcontextprotocol/sdk/server/streamableHttp.js');
|
|
44
44
|
const {createMcpExpressApp}=await import('@modelcontextprotocol/sdk/server/express.js');
|
|
45
45
|
const {randomUUID}=await import('node:crypto');
|
|
46
|
-
const {default:express}=await import('express');
|
|
47
46
|
|
|
48
47
|
const PORT=parseInt(process.env.MCP_PORT||'3000',10);
|
|
49
48
|
const app=createMcpExpressApp({host:'0.0.0.0'});
|
|
50
|
-
|
|
51
|
-
// 增大 body 限制 — 支持 dataUrl 等大体积图片参数
|
|
52
|
-
app.use(express.json({limit:'50mb'}));
|
|
53
|
-
app.use(express.urlencoded({limit:'50mb',extended:true}));
|
|
54
49
|
const transports={};
|
|
55
50
|
|
|
56
51
|
const mcpPostHandler=async (req,res)=>{
|