Start MCP server for AI tool integration.
The mcp command starts a Model Context Protocol (MCP) server that exposes Semifold tools to AI assistants. This enables AI tools to interact with Semifold programmatically.
| Option | Short | Description |
|---|---|---|
--current-dir <DIR> |
-C |
Change to directory before starting |
The Semifold MCP server provides the following tools:
Get all available tags from the Semifold configuration.
Returns: JSON object mapping tag keys to descriptions
Get all packages from the Semifold configuration with their paths and resolvers.
Returns: JSON object with package details
Create a new changeset programmatically.
Parameters:
| Parameter | Type | Description |
|---|---|---|
name |
string | Changeset filename |
packages |
string[] | List of package names to include |
level |
string | Bump level: "major", "minor", or "patch" |
summary |
string | Changeset summary/description |
tag |
string (optional) | Tag category |
The server communicates over stdio. Configure your MCP client to spawn smif mcp as a subprocess.
Add to your Claude config file:
Add to your OpenCode config file (~/.config/opencode/opencode.json or ./opencode.json):
The server communicates over stdio. Configure your MCP client to spawn smif mcp as a subprocess.