mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This PR integrates an MCP server into the Next.js development server at `/_next/mcp`, enabling AI agents to programmatically interact with Next.js projects. We're including an initial `get_project_path.` tool as an example that returns the project's absolute path - this serves as a starting point to demonstrate how tools can expose project information to MCP clients, with plans to expand the available tools for richer AI-assisted development experiences.
12 lines
167 B
TypeScript
12 lines
167 B
TypeScript
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<html lang="en">
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|