You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+41-19Lines changed: 41 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
6
6
7
7
This is an MCP (Model Context Protocol) server that provides Next.js development tools for AI coding assistants. The server exposes tools, prompts, and resources to help with Next.js upgrades, Cache Components setup, documentation search, browser testing, and runtime diagnostics.
8
8
9
+
The server is built using the standard `@modelcontextprotocol/sdk` package with TypeScript and ES modules.
10
+
9
11
## Build and Development Commands
10
12
11
13
```bash
@@ -46,15 +48,18 @@ Test files are located in `test/e2e/` and use test fixtures from `test/fixtures/
46
48
47
49
### MCP Server Structure
48
50
49
-
The main server is generated by `xmcp` (configured in `xmcp.config.ts`) and uses stdio transport. The server automatically registers:
50
-
-**Tools** (`src/tools/`): Callable functions for automation
51
-
-**Prompts** (`src/prompts/`): Pre-configured prompts for common tasks
52
-
-**Resources** (`src/resources/`): Knowledge base articles and documentation
51
+
The main server entry point is `src/index.ts` which uses the standard MCP SDK with stdio transport. The server manually registers:
52
+
-**Tools** (`src/tools/`): Callable functions for automation - each exports `inputSchema`, `metadata`, and `handler`
53
+
-**Prompts** (`src/prompts/`): Pre-configured prompts for common tasks - each exports `inputSchema`, `metadata`, and `handler`
54
+
-**Resources** (`src/resources/`): Knowledge base articles and documentation - each exports `metadata` and `handler`
55
+
56
+
All tools, prompts, and resources are explicitly imported and registered in `src/index.ts`.
53
57
54
58
### Key Components
55
59
56
60
**MCP Tools** (`src/tools/`):
57
-
- Tools are automatically discovered and registered by xmcp from `src/tools/`
0 commit comments