Scaleway logo
Commands

Documentation for `scw mcp`

The CLI documentation pages are currently under construction

The content is up to date. We're making improvements to the site over the next few weeks for a better experience.

Commands for managing the MCP server that exposes Scaleway CLI commands as AI tools.

MCP server management commands

Commands for managing the MCP server that exposes Scaleway CLI commands as AI tools.

List available MCP resources

Lists all CLI commands that would be exposed as MCP resources by the server. Resources are read-only endpoints for list commands that can be accessed via URI. Use filters to see which resources are available for specific namespaces or resources.

Usage:

TerminalCode
scw mcp server list-resources [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
namespacesFilter by namespaces (e.g., instance, iam, object)
resourcesFilter by resources (e.g., server, volume, bucket)
read-onlyOnly list read-only resourcesDefault: false

Examples:

List all available MCP resources

TerminalCode
scw mcp server list-resources

List resources for a specific namespace

TerminalCode
scw mcp server list-resources namespaces=instance

List resources for a specific resource type

TerminalCode
scw mcp server list-resources resources=server

List only read-only resources

TerminalCode
scw mcp server list-resources read-only=true

List available MCP tools

Lists all CLI commands that would be exposed as MCP tools by the server. Use filters to see which commands are available for specific namespaces, resources, or verbs.

Usage:

TerminalCode
scw mcp server list-tools [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
namespacesFilter by namespaces (e.g., instance, iam, object)
resourcesFilter by resources (e.g., server, volume, bucket)
verbsFilter by verbs (e.g., get, list, create)
read-onlyOnly list read-only tools (get, list operations)Default: false

Examples:

List all available MCP tools

TerminalCode
scw mcp server list-tools

List tools for specific namespaces (comma-separated)

TerminalCode
scw mcp server list-tools namespaces=instance

List tools for specific resources (comma-separated)

TerminalCode
scw mcp server list-tools resources=server

List only read-only tools (get/list operations)

TerminalCode
scw mcp server list-tools read-only=true

List tools with specific verbs (comma-separated)

TerminalCode
scw mcp server list-tools verbs=get,list

Start the MCP server

Runs the MCP server, exposing all CLI commands as MCP tools for AI assistants. Supports stdio (default) and streamable HTTP transports.

Usage:

TerminalCode
scw mcp server serve [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
transportTransport mode: stdio (default) or streamable-httpDefault: stdio
addressAddress to bind for streamable-http transports (e.g., :8080)Default: :8080
read-onlyOnly register read-only commands (get, list operations)Default: false
namespacesOnly serve commands from specified namespaces (comma-separated)
resourcesOnly serve commands from specified resources (comma-separated)
verbsOnly serve commands with specified verbs (comma-separated)

Examples:

Start the MCP server with stdio transport (default)

TerminalCode
scw mcp server serve

Start the MCP server in read-only mode (only get/list operations)

TerminalCode
scw mcp server serve --read-only

Only serve commands from specific namespaces

TerminalCode
scw mcp server serve namespaces=instance,iam,object

Only serve commands from specific resources

TerminalCode
scw mcp server serve resources=server,volume,bucket

Only serve commands with specific verbs

TerminalCode
scw mcp server serve verbs=get,list,create

Combine filters to serve only instance server get/list commands

TerminalCode
scw mcp server serve namespaces=instance resources=server verbs=get,list