Initialize a new MCPB package in a directory. With no arguments it runs interactively in the current directory. When run against an existing project, it detects the server type, transport, and entry point automatically and generates aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/superradcompany/tool-cli/llms.txt
Use this file to discover all available pages before exploring further.
manifest.json without touching your code.
Synopsis
Options
Directory to initialize. Defaults to the current directory.
Package name. Defaults to the directory name.
Server runtime type. One of
node, python, rust, or binary. (rust is accepted as an alias for binary.)Package description written into the manifest.
Author name written into the manifest.
License identifier in SPDX format (e.g.,
MIT, Apache-2.0).Use HTTP transport instead of stdio. Adds a
system_config.port entry to the manifest automatically.Create a reference manifest only — no scaffolding, no entry point bundled. Use this to wrap
npx/uvx commands or remote HTTP servers.Skip all interactive prompts and accept defaults.
Package manager to use. Node.js options:
npm, pnpm, bun, yarn. Python options: uv, pip, poetry.Override the detected entry point. Useful when auto-detection picks the wrong file in an existing project.
Override the detected transport for an existing project. One of
stdio or http.Overwrite an existing
manifest.json without prompting.After generating the manifest, start the server and send an MCP
initialize request to confirm the server responds correctly.Reference mode options
These flags configureserver.mcp_config in the manifest. Passing --command implies stdio reference mode; passing --url implies HTTP reference mode.
Command to execute (e.g.,
npx, uvx). Implies stdio reference mode.Arguments for the command as a single space-separated string (e.g.,
"@anthropic/mcp-server --port 3000").Environment variable in
KEY=VALUE format. Repeatable — pass the flag multiple times to set more than one variable.Remote HTTP MCP endpoint URL. Implies HTTP reference mode.
HTTP header in
KEY=VALUE format. Repeatable.Pre-registered OAuth client ID for HTTP servers.
Custom OAuth authorization endpoint URL.
Custom OAuth token endpoint URL.
OAuth scopes to request, as a comma-separated string (e.g.,
"read,write").Examples
Bundled vs. reference mode
tool init produces one of two manifest shapes depending on how you use it.
Bundled mode (the default) includes a server.entry_point that points to your code. When packed with tool pack, the entry point and its dependencies are bundled into the .mcpb archive. Use this for Node.js, Python, and binary servers that ship their own runtime code.
Reference mode (--reference, --command, or --url) omits server.entry_point. The manifest points to an external executable or a remote URL instead. Nothing is bundled. Reference manifests produce .mcpbx archives rather than .mcpb because they use features beyond the base MCPB spec (HTTP transport, external commands, OAuth).
After scaffolding a bundled server, run
tool build to install dependencies before using tool info or tool call.