fastly_cli
Run Fastly CLI commands securely with automated authentication. Manage Compute projects, build packages, and deploy services without exposing API keys using the MCP server for safe command execution.
Instructions
Execute Fastly CLI commands securely without exposing API keys.
This tool allows you to run Fastly CLI commands while the MCP server handles authentication automatically. The LLM never sees or needs to handle the API key directly.
USAGE EXAMPLES:
Initialize a Compute project: fastly_cli('compute init --language javascript -d -y')
Build a package: fastly_cli('compute build')
Deploy a service: fastly_cli('compute deploy --service-id SERVICE_ID -d -y')
COMMON COMMANDS:
compute init: Initialize a new Compute project
compute build: Build a Compute package
compute deploy: Deploy a Compute package
compute publish: Build and deploy in one step
whoami: Check authentication status
SECURITY NOTE: Authentication is handled automatically. Never attempt to pass API keys in commands.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
command | Yes | The Fastly CLI command to execute (without the 'fastly' prefix) | |
working_directory | No | Optional working directory for command execution |