Skip to content
BoldCreate

Setting Up MCP Servers

Configure, inspect, trust, and authenticate Model Context Protocol servers in BoldCreate CLI.

What you’ll learn

  • What MCP servers are
  • How to add, check, and remove servers
  • How to sign in to servers that need it
  • How to manage servers inside a chat
  • Where server settings are stored

For hands-on examples connecting GitHub and Playwright, see Connect MCP servers: examples.

What is an MCP server?

MCP (Model Context Protocol) is a common way to give an AI assistant extra tools. An MCP server is a small program or web service that offers tools, for example to work with GitHub, read documentation, or query a database.

KindHow it runsExample
Command (stdio) serverBoldCreate starts a program on your computer.npx -y @playwright/mcp@latest --headless
HTTP serverBoldCreate connects to a web address.https://example.com/mcp

Command overview

CommandWhat it does
boldcreate mcp listLists all servers and checks each one.
boldcreate mcp get <name>Shows one server in detail.
boldcreate mcp add <name> … -- <command>Adds a command server.
boldcreate mcp add <name> --url <url>Adds an HTTP server.
boldcreate mcp remove <name>Removes a server.
boldcreate mcp trustAllows this folder’s project servers to start programs.
boldcreate mcp login <name>Signs in to an HTTP server.
boldcreate mcp logout <name>Forgets sign-in for a server.
boldcreate mcp --helpShows help.

All MCP commands accept --cwd DIR to act on another folder.

User servers and project servers

User servers are saved in ~/.boldcreate/mcp.json and work in every folder. This is the default.

Project servers are saved in .boldcreate/mcp.json inside the project folder and only work there. Add -l or --local to add and remove to use the project file.

Add a command (stdio) server

boldcreate mcp add <name> [-l] [--env KEY=VALUE]... [--description TEXT] -- <command> [args...]

Everything after -- is the command that starts the server.

Argument or flagWhat it does
<name>Server name: letters, digits, _, and -.
-l, --localSave to the project file instead of your user file.
--env KEY=VALUEEnvironment variable for the server. Repeat as needed.
--description TEXTOne-line note about the server.
-- <command> [args...]Program to run and its arguments.

For example:

boldcreate mcp add playwright -- npx -y @playwright/mcp@latest --headless

On Windows PowerShell, start npx through cmd /c, and quote -- and package names starting with @:

boldcreate mcp add playwright '--' cmd /c npx -y '@playwright/mcp@latest' --headless --browser msedge

Add an HTTP server

boldcreate mcp add <name> [-l] --url <url> [--header 'Name: value']... [--bearer-token-env-var VAR] [--transport http|sse] [--description TEXT]
FlagWhat it does
--url <url>Server address.
--header 'Name: value'HTTP header to send. Repeat as needed.
--bearer-token-env-var VARReads a token from environment variable VAR and sends it as a bearer token. The token itself is not saved in the file.
--transport http|sseConnection type. http is the default; use sse only if the server documentation says so.
--description TEXTOne-line note about the server.

Example:

export DOCS_TOKEN="..."
boldcreate mcp add docs --url https://example.com/mcp --bearer-token-env-var DOCS_TOKEN

In --env and --header values, ${VAR} is replaced with the environment variable each time the server starts. This keeps secrets out of the settings file.

Note: An HTTP server without an Authorization header signs in with your browser. See Sign in to a server.

Check server status

boldcreate mcp list [--json] [--no-check]
FlagWhat it does
--jsonPrints the result as JSON.
--no-checkReads settings without connecting.

The list shows each server’s name, connection type, command or address, scope (user or project), and state.

StateMeaning
✓ N toolsConnected.
✗ <reason>Could not connect.
invalid: <reason>Settings are wrong, for example, an environment variable is not set.
disabledTurned off.
needs trust: boldcreate mcp trustProject command server hasn’t been trusted yet.
needs sign-in: boldcreate mcp login <name>Server needs you to sign in.

mcp list exits with code 1 if any server is invalid, fails, or needs sign-in. If no servers are configured, it prints a command to add one.

Get server details

boldcreate mcp get <name> shows a server’s settings, state, server name and version, instructions, and tools with short descriptions. Tools marked [read-only] only read data.

boldcreate mcp get playwright
boldcreate mcp get playwright --json

Trust project servers

A project’s MCP file can name any program. To protect you, command servers from project files don’t start until you trust the folder. User servers do not need trust.

boldcreate mcp trust

Trust also covers folders inside the trusted folder. In an untrusted folder with project command servers, BoldCreate asks whether to trust the folder or run without those servers.

Note: Only trust folders whose contents you trust.

Sign in to a server

Some HTTP servers need you to sign in:

boldcreate mcp login docs

Your browser opens. If it doesn’t, BoldCreate prints a link to open. Sign in and allow access. If the browser is on another computer, paste the address it ended up on (from its address bar) into the terminal. Press Ctrl+C to cancel.

To forget the sign-in:

boldcreate mcp logout docs

Manage servers inside a chat

Type /mcp to see servers and their states, with problems shown first. Choose a server to:

  • See its tools and resources.
  • Reconnect it if its connection failed.
  • Enable or disable it.
  • Disable in this project only for a user server, without affecting other projects.
  • Trust the folder if a project server is untrusted.
  • Sign in or sign out if the server requires authentication.

Changes apply from your next message. You can also use /mcp login <server> and /mcp logout <server>.

At startup, the header lists servers under [MCP] and failures under [MCP errors]. Tool calls appear as server › tool, for example github › create_issue.

In manual approval mode, BoldCreate asks before each MCP tool call. Use approval choices or patterns to allow selected tools. See Approvals and safety.

Server settings files

BoldCreate reads server files in this order. A later file wins when two servers have the same name.

FileScope
~/.boldcreate/mcp.jsonUser (every folder)
<project>/.boldcreate/mcp.jsonProject (older location)
<project>/.mcp.jsonProject (shared with other MCP tools)
<project>/.boldcreate/mcp.jsonProject

Example:

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["-y", "@playwright/mcp@latest", "--headless"]
    },
    "docs": {
      "url": "https://example.com/mcp",
      "headers": { "Authorization": "Bearer ${DOCS_TOKEN}" }
    }
  }
}
KeyForMeaning
commandCommand serversProgram name, not a whole shell line.
argsCommand serversList of arguments.
envCommand serversEnvironment variables for the program.
cwdCommand serversWorking folder, relative to workspace (~/ means your home folder).
urlHTTP serversServer address.
headersHTTP serversHTTP headers to send.
typeBothOptional: stdio, http, streamable-http, or sse.
enabledBothfalse keeps the entry but doesn’t connect.
timeoutBothSeconds to wait for each request (default 60).
descriptionBothOne-line note.

If a ${VAR} in env or headers isn’t set, that server is listed as invalid. Other servers continue to work.