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
{{ message }}
Repository navigation
Commit 8f024bd
Browse filesBrowse the repository at this point in the historyBrowse files
description: Connect popular IDEs and AI clients to the Nordcraft MCP server to securely find, inspect, and update your Nordcraft projects.
3
+
description: Connect popular AI tools to Nordcraft so they can help you find projects, review changes, validate files, and make updates.
4
4
---
5
5
6
6
# MCP server
7
7
8
-
The Model Context Protocol (MCP) is an open standard that lets AI applications connect to external tools and data. With the Nordcraft MCP server, you can use an MCP-compatible AI client to find your projects, inspect branches and project files, validate changes, and edit Nordcraft projects.
8
+
[Model Context Protocol (MCP)](https://modelcontextprotocol.io/) is an open standard that connects AI assistants and coding tools to other services. With the Nordcraft MCP server, you can ask your AI tool to find your projects, explore branches, review or change files, and check your work.
9
9
10
-
The server is hosted by Nordcraft and uses the remote [Streamable HTTP transport](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports). It authenticates each user through an interactive OAuth 2.0 authorization-code flow with Proof Key for Code Exchange (PKCE).
10
+
The connection is hosted by Nordcraft. When you set it up, you sign in to Nordcraft in your browser and choose which permissions to approve. You never need to copy your Nordcraft password or another secret into your AI tool.
11
11
12
-
## Connect an MCP client
12
+
## Connect your AI tool
13
13
14
-
You need an MCP client that supports remote Streamable HTTP servers and interactive OAuth. You also need access to the Nordcraft projects and organizations that you want the client to use.
14
+
You need an AI tool that supports MCP connections, such as one of the tools listed below. You also need access to the Nordcraft projects and organizations that you want to use.
15
15
16
-
Use the following server URL in your MCP client:
16
+
All of the setup instructions use the same Nordcraft server address:
17
17
18
18
```text
19
19
https://api.nordcraft.com/mcp
20
20
```
21
21
22
-
After you add the server configuration, start the connection or use the client's authentication action. A browser window opens so you can sign in to Nordcraft, review the requested permissions, and approve access. The client stores the returned access token for future requests.
22
+
Many AI tools let you add a server from a settings screen. If yours does, paste the address there. The examples below are only needed when your tool asks you to edit a settings file.
23
+
24
+
After you add the address, your AI tool will ask you to connect. A browser window opens so you can sign in to Nordcraft, review the requested permissions, and approve access. Once approved, your AI tool can use the connection for future requests.
23
25
24
26
:::info
25
-
You do not need to create or copy an access token. Never add an access token, client secret, or `Authorization` header to an MCP configuration or project file.
27
+
You do not need an API key or a manually created access token. Never paste a password, access token, or other secret into your AI tool's settings or a Nordcraft project.
26
28
:::
27
29
28
30
### Claude Code
@@ -42,17 +44,17 @@ Then authenticate the server:
42
44
43
45
### Claude Desktop
44
46
45
-
Claude Desktop uses a custom connector for remote MCP servers. Do not add the Nordcraft server to `claude_desktop_config.json`.
47
+
Claude Desktop uses a custom connector to connect to MCP servers. Do not add the Nordcraft server to `claude_desktop_config.json`.
46
48
47
49
1. In Claude Desktop, go to **Customize > Connectors**.
48
50
2. Select **+** and then **Add custom connector**.
49
-
3. Enter `https://api.nordcraft.com/mcp` as the remote MCP server URL.
51
+
3. Enter `https://api.nordcraft.com/mcp` as the server address.
50
52
4. Add the connector, select **Connect**, and approve access in the browser.
51
53
5. Enable the connector for the conversations where you want to use it.
52
54
53
55
### VS Code with GitHub Copilot
54
56
55
-
Open the Command Palette and run **MCP: Open User Configuration**. You can also add the server to a workspace `.vscode/mcp.json` file. Add the following configuration:
57
+
Open the Command Palette and run **MCP: Open User Configuration**. You can also add the server to a workspace `.vscode/mcp.json` file. Add the following settings:
56
58
57
59
```json
58
60
{
@@ -65,11 +67,11 @@ Open the Command Palette and run **MCP: Open User Configuration**. You can also
65
67
}
66
68
```
67
69
68
-
Start or refresh the Nordcraft server from VS Code. When prompted, trust the server and complete the Nordcraft sign-in in your browser.
70
+
Start or refresh the Nordcraft server from VS Code. When prompted, trust the server and sign in to Nordcraft in your browser.
69
71
70
72
### Cursor
71
73
72
-
Create a global `~/.cursor/mcp.json` file, or a project-specific `.cursor/mcp.json` file, and add the following configuration:
74
+
Create a global `~/.cursor/mcp.json` file, or a project-specific `.cursor/mcp.json` file, and add the following settings:
73
75
74
76
```json
75
77
{
@@ -81,7 +83,7 @@ Create a global `~/.cursor/mcp.json` file, or a project-specific `.cursor/mcp.js
81
83
}
82
84
```
83
85
84
-
Reload Cursor if necessary, enable the server from **Customize**, and complete the browser authentication when Cursor first connects to it.
86
+
Reload Cursor if necessary, enable the server from **Customize**, and sign in to Nordcraft when Cursor asks you to connect.
85
87
86
88
### Windsurf
87
89
@@ -113,90 +115,108 @@ In Zed, go to **Settings > AI > MCP Servers**, select **Add Server**, and then s
113
115
}
114
116
```
115
117
116
-
Because the configuration does not include an `Authorization` header, Zed starts the standard MCP OAuth flow and prompts you to authenticate in your browser.
118
+
Zed will automatically ask you to sign in to Nordcraft when the server first connects. You do not need to add your Nordcraft login details to the settings.
119
+
120
+
### OpenCode
121
+
122
+
Run the following command to add Nordcraft to all of your OpenCode projects:
To connect only the current project, remove `--global` from the command. You can check the connection by running:
117
129
118
-
## Use the server
130
+
```bash
131
+
opencode mcp list
132
+
```
133
+
134
+
If OpenCode reports that Nordcraft needs authentication, open OpenCode, run `/mcps`, select `nordcraft`, and sign in to Nordcraft in the browser.
135
+
136
+
## Get started
137
+
138
+
Once the connection is ready, you can use the tools you already know. You do not need to enter a tool name or remember its settings.
119
139
120
140
For the best results:
121
141
122
-
1. Use `current_user` to confirm the authenticated Nordcraft account and its granted scopes.
123
-
2. Use `projects_search` to find the project short ID and organization ID.
124
-
3. Use `branches_search` to inspect existing branches.
125
-
4. Create and work on a feature branch instead of editing the read-only `main` branch.
126
-
5. Use the file tools to inspect, edit, and validate the branch, and then use `diff` to review its changes.
142
+
1. Ask your AI tool which Nordcraft account it is connected to.
143
+
2. Ask it to find your project.
144
+
3. Ask it to list the branches or create a new feature branch.
145
+
4. Ask it to inspect, update, and validate files on that branch.
146
+
5. Ask it to show you the changes before you merge them.
147
+
148
+
If your AI tool chooses the wrong project or branch, tell it the project's short ID and branch name. Both are included in the project and branch results.
127
149
128
-
All project file tools require both a project short ID and a branch name. File paths are arrays of path segments, such as `["components", "Header"]`, rather than slash-separated strings.
150
+
File changes are saved to the branch you select. The `main`branch is read-only, so ask your AI tool to create or use a feature branch for changes.
129
151
130
-
You can also ask your AI client directly, for example:
152
+
You can also ask your AI tool directly, for example:
131
153
132
-
- “Use the Nordcraft MCP server to find my projects and list the branches in my website project.”
133
-
- “Use Nordcraft to inspect the components on my latest feature branch and suggest accessibility improvements.”
134
-
- “Update the header on my feature branch, validate the files, and show me the changes before I merge them.”
154
+
- “Use Nordcraft to find my website projects and show their branches.”
155
+
- “Look at the components on my latest feature branch and suggest accessibility improvements.”
156
+
- “Update the header on my feature branch, check the files for issues, and show me the changes before I merge them.”
135
157
136
-
If your client does not select the Nordcraft tools automatically, name the **Nordcraft** server or a specific tool in your prompt.
158
+
## Available tools
137
159
138
-
## Supported tools
160
+
After you sign in, the Nordcraft tools become available to your AI tool. You will usually use them by describing what you want in everyday language. The list below explains what each tool can do and what information it needs.
139
161
140
-
The MCP client discovers the available tools after you authenticate. The Nordcraft MCP server currently provides the following tools.
|`current_user`| Checks which Nordcraft account is connected and which permissions are available. | Nothing |
167
+
|`projects_search`| Finds projects that you can access. | Optional filters for a project's short ID, name, organization, visibility, or type |
168
+
|`projects_create`| Creates a new project from Nordcraft's starter template. | A project name, short ID, organization, and whether the project is private or public |
|`current_user`| Returns the authenticated user's ID, name, username, and granted scopes. | None |
147
-
|`projects_search`| Finds Nordcraft projects that you can access. | Optional: `shortId`, `name`, `organizationId`, `isPrivate`, and `type` (`app` or `package`) |
148
-
|`projects_create`| Creates a project from Nordcraft's default starter template. |`name` (1–64 characters), `shortId` (1–40 lowercase letters or numbers), `organizationId`, and `isPrivate`|
170
+
A project name can be up to 64 characters. A short ID can contain up to 40 lowercase letters or numbers.
149
171
150
-
`projects_search` returns up to 100 accessible projects, with the most recently updated projects first. The `name` filter matches part of a project name without considering case. Other project tools use the project's `short_id` value as `projectShortId`.
172
+
`projects_search` returns up to 100 projects, with the most recently updated projects first. You can search by all or part of a project name, and the search does not consider capitalization.
|`files_glob`| Lists full paths for files that match a glob pattern. |`projectShortId`, `branchName`, and optional `pattern` (defaults to `**/*`) |
167
-
|`files_read`| Reads a project file and returns it in Nordcraft's NC format when applicable. |`projectShortId`, `branchName`, `path`, and optional `patterns`|
168
-
|`files_edit`| Applies an NC Diff patch to one new or existing file and saves it to the branch. |`projectShortId`, `branchName`, and `patch`|
169
-
|`files_validate`| Runs validation rules against one or more project files. |`projectShortId`, `branchName`, and `paths`|
170
-
171
-
Glob matching is case-sensitive. For `files_read`, `path` is an array of segments and `patterns` can filter returned sections. For `files_validate`, `paths` is an array of path arrays, such as `[["components", "Header"], ["formulas", "total"]]`, and each path must contain at least two segments.
|`files_glob`| Finds files by folder or name pattern. | The project, branch, and an optional file pattern |
189
+
|`files_read`| Reads a project file and returns it in a format that is easy for AI to understand. | The project, branch, and file |
190
+
|`files_edit`| Makes a change to one new or existing file and saves it to the branch. | The project, branch, and requested change |
191
+
|`files_validate`| Checks one or more project files for issues. | The project, branch, and files to check |
172
192
173
-
The `files_edit` patch must contain a complete NC Diff body inside a type-specific semantic XML tag. The opening tag includes the file `path`and a one-line commit `message`.
193
+
The AI tool handles the file locations and edit format for you. To point it to a specific file, you can describe the folder and name, such as `components/Header`. File searches are case-sensitive.
174
194
175
-
### Nordcraft skills
195
+
### Built-in Nordcraft guidance
176
196
177
-
These tools return reference instructions that help an AI client work correctly with Nordcraft. They do not directly change a project and do not take project inputs.
197
+
These tools do not change your project. Instead, they give your AI tool additional guidance for working with Nordcraft correctly.
The MCP server acts with the access of the Nordcraft user who approves the connection. Your Nordcraft account permissions still determine which existing projects and organizations you can use.
210
+
The AI tool acts on your behalf and can make real changes to your Nordcraft account. Only connect tools that you trust, and review the permissions and actions they request.
191
211
192
212
:::warning
193
-
Some tools can create projects and branches or change project files. Work on a feature branch, review every tool call, validate edited files, and inspect the branch diff before merging changes.
213
+
Work on a feature branch. Review every change, check edited files for issues, and inspect the branch changes before merging anything into your live project.
194
214
:::
195
215
196
-
Follow these guidelines when using the server:
216
+
Keep the connection safe by following these guidelines:
197
217
198
-
- Review the requested OAuth permissions and only approve the access you need.
199
-
- Review write operations before allowing your AI client to run them automatically.
200
-
- Do not commit access tokens, client secrets, or `Authorization` headers to source control.
201
-
- Do not store credentials in Nordcraft project files.
202
-
- Disconnect the server from your MCP client when you no longer need the access.
218
+
- Review requested permissions and only approve the access you need.
219
+
- Review changes before allowing an AI tool to make them automatically.
220
+
- Do not commit passwords, access tokens, or other secrets to source control.
221
+
- Do not store passwords, access tokens, or other secrets in Nordcraft project files.
222
+
- Disconnect the server from your AI tool when you no longer need it.
0 commit comments