Skip to content
BoldCreate

Connecting MCP servers: step-by-step examples

Connect local and remote MCP servers in BoldCreate CLI using mcp.json, with examples for Syncfusion React and GitHub.

An MCP server gives the BoldCreate assistant extra tools, for example to search documentation or work with GitHub. You list your servers in a file called mcp.json, and BoldCreate connects to them when you start a chat.

What you’ll learn

  • Where to put mcp.json: in one project, or in your home folder for every project
  • How to connect a real MCP server in two ways:
    • An npm package (run with npx): the Syncfusion React MCP server
    • A remote server (HTTP): GitHub’s hosted MCP server
  • How to trust the folder so the servers can start
  • How to check the connection and use the tools in a chat

This guide is hands-on. For the full list of boldcreate mcp commands and options, see Manage MCP servers.

Which way should I choose?

WayWhat runs whereYou needGood when
npm packagenpx downloads the package and runs it on your computer. BoldCreate starts and stops it.Node.jsThe server is published on npm
Remote serverThe server runs on the internet. BoldCreate connects to its address.Only the address and usually a tokenYou don’t want to install anything

Where BoldCreate reads MCP servers from

BoldCreate reads mcp.json from a .boldcreate folder in two places. The file looks the same in both.

FileScopeUse it when
~/.boldcreate/mcp.jsonYou, in every folderYou want the servers in all your projects
<project>/.boldcreate/mcp.jsonThis project onlyThe servers belong to one project
  • ~ is your home folder: /Users/you on macOS, C:\Users\you on Windows.
  • <project> is the folder you start boldcreate in.
  • If both files have a server with the same name, the project file wins.

boldcreate mcp list shows where each server comes from (user or project), and boldcreate mcp get <name> shows the exact file.

Step 1: Create mcp.json

Create the .boldcreate folder and an empty mcp.json file in it.

For every project (home folder):

macOS:

mkdir -p ~/.boldcreate
touch ~/.boldcreate/mcp.json

Windows (PowerShell):

New-Item -ItemType Directory -Force "$HOME\.boldcreate"
New-Item -ItemType File "$HOME\.boldcreate\mcp.json"

For one project: run the same commands in the project folder, without ~/ or $HOME\:

macOS:

mkdir -p .boldcreate
touch .boldcreate/mcp.json

Windows (PowerShell):

New-Item -ItemType Directory -Force .boldcreate
New-Item -ItemType File .boldcreate\mcp.json

Open the file in your editor. Every file starts like this, with your servers inside mcpServers:

{
  "mcpServers": {}
}

Step 2: Add a server

Pick an example below and copy its entry into mcpServers. You can add as many servers as you like; separate them with commas.

Example 1: an npm package (Syncfusion React MCP)

The server is downloaded and started on your computer with npx. You need Node.js 18 or newer.

Windows:

{
  "mcpServers": {
    "sf-react-mcp": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@syncfusion/react-mcp@latest"],
      "env": {
        "Syncfusion_API_Key": "<your Syncfusion API key>"
      }
    }
  }
}

macOS:

{
  "mcpServers": {
    "sf-react-mcp": {
      "command": "npx",
      "args": ["-y", "@syncfusion/react-mcp@latest"],
      "env": {
        "Syncfusion_API_Key": "<your Syncfusion API key>"
      }
    }
  }
}

Note: On Windows, npx must be started through cmd /c, as shown above.

Example 2: a remote server (GitHub)

The server runs on the internet. Nothing is installed; BoldCreate connects to its address. You need a GitHub personal access token. Create one at GitHub → Settings → Developer settings → Personal access tokens.

{
  "mcpServers": {
    "github": {
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": {
        "Authorization": "Bearer <your GitHub token>"
      }
    }
  }
}

Keep the word Bearer and the space after it.

Example 3: both together

Add both entries inside mcpServers, separating them with a comma. This example uses the Windows command for the npm server; on macOS, use the npx command and arguments shown in Example 1.

{
  "mcpServers": {
    "sf-react-mcp": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@syncfusion/react-mcp@latest"],
      "env": {
        "Syncfusion_API_Key": "<your Syncfusion API key>"
      }
    },
    "github": {
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": {
        "Authorization": "Bearer <your GitHub token>"
      }
    }
  }
}

Important: The file now contains your keys. The file in your home folder is outside every project, so it’s safe from git. A project’s .boldcreate/mcp.json is inside the repository: don’t commit it. To keep git from picking it up, run this once in the project folder:

echo ".boldcreate/mcp.json" >> .git/info/exclude

The fields

FieldUsed forMeaning
commandPrograms on your computerThe program to start (one program, not a whole command line)
argsPrograms on your computerThe program’s arguments, one string each
envPrograms on your computerSettings the server reads, such as an API key
urlRemote serversThe server’s address
headersRemote serversSent with every request, such as Authorization
enabledBothfalse keeps the entry but doesn’t connect
descriptionBothA short note shown in boldcreate mcp get

Step 3: Trust the folder (project file only)

Skip this step if you used ~/.boldcreate/mcp.json.

Servers in a project’s .boldcreate/mcp.json that start a program on your computer (command) run only after you trust the folder. Run this once in the project folder:

boldcreate mcp trust
Trusted D:\my-project: MCP servers in its config may now start commands.

Remote servers (url) and servers in ~/.boldcreate/mcp.json don’t need this.

Step 4: Check the connection

Run this in the project folder (for the home folder file, any folder works):

boldcreate mcp list
github        http   https://api.githubcopilot.com/mcp/            project  ✓ N tools
sf-react-mcp  stdio  cmd /c npx -y @syncfusion/react-mcp@latest    project  ✓ 1 tool

✓ means the server is connected. The first check can take a minute while npx downloads the package.

The fourth column shows which file the server comes from:

Column showsFile
user~/.boldcreate/mcp.json
project<project>/.boldcreate/mcp.json

To see one server’s details, its exact file, and its tools:

boldcreate mcp get sf-react-mcp
sf-react-mcp  (project, D:\my-project\.boldcreate\mcp.json)
  transport   stdio
  target      cmd /c npx -y @syncfusion/react-mcp@latest
  state       ✓ 1 tool
  server      sf-react-mcp 2.0.1
  tools (1)
    search_docs — Search Syncfusion React documentation …  [read-only]

Step 5: Use the tools in a chat

Start a chat in the project folder:

boldcreate

Ask for something that needs the tools:

  • Search the Syncfusion docs for how to enable sorting in the React Grid.
  • List the open issues in my repository and summarize the three newest.

Tool calls appear as server › tool, for example sf-react-mcp › search_docs. BoldCreate asks before each MCP tool call; choose always allow all <server> tools to stop the questions for that server.

Type /mcp in the chat to see each server’s state, its tools, and to reconnect, disable, or enable it.

Change or remove a server

Edit the mcp.json file and save it (boldcreate mcp get <name> shows which file). To turn a server off without deleting it, add "enabled": false to its entry. To remove it, delete its entry. Changes apply from your next message in the chat.

Common problems

What you seeCauseFix
needs trust: boldcreate mcp trustThe folder isn’t trusted yetRun boldcreate mcp trust in the project folder
No MCP servers configured.The file uses "servers" (VS Code’s format) instead of "mcpServers"; the file isn’t inside a .boldcreate folder; or you’re in a different project folderRename the key to mcpServers; check the path is .boldcreate/mcp.json; start boldcreate in the project folder
invalid JSON (…)A // comment, a missing or extra commaRemove comments; check the commas. The message gives the line and column.
invalid JSON (Unexpected token '' …)The file was saved as “UTF-8 with BOM”Save it as plain UTF-8 (in VS Code, click the encoding in the status bar)
✗ Connection closedThe server started and quit, often because a key is missing or wrongCheck the values in env
✗ for an npx server on Windowsnpx was started directlyUse "command": "cmd" and "args": ["/c", "npx", …]
✗ … Authorization header is badly formattedThe header isn’t Bearer <token>Write "Authorization": "Bearer <your GitHub token>"
✗ … (HTTP 401)The token is wrong or expiredCreate a new token on GitHub