// "Internal error" see https://www.jsonrpc.org/specification
code:-32603,
message,
},
id:null,
})
)
return{finished:true}
}
if(!mcpSecret){
Log.error('Next.js MCP server is not enabled')
Log.info(
'To enable it, set the NEXT_EXPERIMENTAL_MCP_SECRET environment variable to a secret value. This will make the MCP server available at /_next/mcp?{NEXT_EXPERIMENTAL_MCP_SECRET}'