# StackPath MCP for AI Agents AI Agent Connect

> StackPath MCP. Manage edge computing workloads and CDN delivery from your AI agent. List stacks, deploy workloads, and purge cached content instantly without leaving your editor.

## Overview
- **Category:** cloud-infrastructure
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_W7U720ICzrXaXVk2m1g5O4ZTKY0wsqbGhAK2CQMo/ai-agent-connect
- **Tags:** edge-computing, cdn, content-delivery, serverless, infrastructure-as-code

## Description

This Connector lets you manage your global infrastructure and content delivery through natural conversation. Managing edge networks usually means having dozens of tabs open. You are constantly jumping from your code editor to the StackPath dashboard just to check a workload status or clear a stuck cache. This tool changes that. You can stay in your workspace and let your agent handle the logistics. If you need to deploy a new workload to the edge or purge content across multiple sites, you just tell your agent what needs doing. It handles the API calls and gives you the results immediately. It is part of the Vinkius catalog, which makes it easy to plug into your existing workflow without setting up complex custom scripts. You get a direct line to your edge network without the friction of a manual UI. This means you can handle production deployments, site audits, and cache management through a simple chat interface. Instead of navigating menus, you just describe the action you want to take. Your agent will find the right stack, perform the operation, and report back to you. It takes the manual labor out of infrastructure management so you can focus on shipping code. Whether you are dealing with a sudden traffic spike or just need to verify that your latest deployment is live across all regions, this tool gives you immediate control. It removes the need to keep the StackPath portal bookmarked and open at all times. You get a direct way to interact with your edge network that feels like a natural extension of your development environment.

## Tools

### create_cdn_site
Set up a new CDN site within your infrastructure. This lets you launch new web properties without manual portal entries.

### create_workload
Deploy a new container or VM workload to the edge. This makes it easy to put your code closer to your users.

### list_cdn_sites
Get a list of all CDN sites in a stack. This provides a quick way to audit your current site configurations.

### list_stacks
View all your StackPath stacks in a single list. This helps you see your global edge organization at a glance.

### list_workloads
See which edge workloads are running in a specific stack. Use this to check your deployment status quickly.

### purge_content
Clear your CDN cache for specific files or URLs. This ensures your users see the most recent updates immediately.

## Prompt Examples

**Prompt:** 
```
List all my StackPath stacks.
```

**Response:** 
```
I've retrieved your stacks. You have 2 active stacks:

| Stack Name | ID |
| :--- | :--- |
| Production-Edge | st-12345 |
| Staging-Global | st-67890 |
```

**Prompt:** 
```
Purge the cache for https://example.com/logo.png in stack st-12345.
```

**Response:** 
```
The purge request for 'https://example.com/logo.png' has been successfully submitted to stack st-12345. The cache will be cleared shortly.
```

**Prompt:** 
```
List all CDN sites in stack st-12345.
```

**Response:** 
```
I found 1 CDN site in stack st-12345:

* **www.example.com** (Origin: origin.example.com)
```

## Capabilities

### List all stacks
View all your StackPath stacks in a single list to see your global edge organization at a glance.

### Deploy edge workloads
Push new containerized or VM workloads to the edge to get your code closer to your users.

### Purge CDN content
Clear your CDN cache for specific files or URLs to ensure users see the most recent updates.

### Create new CDN sites
Set up new CDN sites within your infrastructure to launch new web properties without manual entries.

### Monitor active workloads
Check which edge workloads are running in a specific stack to verify your deployment status.

### Query CDN site configurations
Get a list of all CDN sites in a stack to audit your current site configurations quickly.

## Use Cases

### Emergency Cache Purge
An SRE needs to clear a broken image across the global network. They ask the agent to purge the specific URL using purge_content.

### Rapid Workload Verification
A developer just deployed a new edge container and wants to see if it is live. They ask the agent to list_workloads in the production stack.

### Infrastructure Audit
A DevOps lead needs to see every active CDN site. They ask the agent to list_cdn_sites to generate a report for the team.

### Quick Site Launch
A marketing team needs a new CDN site for a landing page. They ask the agent to create_cdn_site using the existing environment config.

## Benefits

- Instant cache clearing: Use purge_content to update your site immediately without waiting for manual TTL expirations.
- Faster deployments: Use create_workload to push new edge containers to production in seconds through a chat window.
- Better infrastructure visibility: Use list_cdn_sites and list_stacks to audit your entire network setup without opening a browser.
- Reduced context switching: Stay inside your IDE or chat client while your agent handles the heavy lifting of infrastructure management.
- Rapid site launches: Use create_cdn_site to spin up new web properties on the edge as part of your standard workflow.
- Simplified monitoring: Use list_workloads to verify that your edge containers are healthy and running correctly.

## How It Works

The bottom line is you get a chat interface for your entire edge infrastructure.

1. Subscribe to this Connector and provide your StackPath Client ID and Client Secret.
2. Connect your preferred AI client to the Vinkius platform.
3. Ask your agent to perform actions like purging cache or listing active workloads.

## Frequently Asked Questions

**How can I use StackPath MCP to manage my CDN?**
You can use it to perform actions like purging cache or creating new sites through a chat interface. It connects your StackPath account to your AI agent so you can manage your content delivery via natural language.

**Can the StackPath MCP purge my cache automatically?**
Yes, you can tell your AI agent to purge specific URLs or files. It will then execute the purge command for you, ensuring your users see the latest content without you having to log into a dashboard.

**Is the StackPath MCP good for edge computing?**
It is specifically designed for it. You can use it to deploy new workloads to the edge and monitor their status, making it much easier to manage low-latency infrastructure.

**How do I connect StackPath to my AI agent?**
Once you subscribe to this Connector on Vinkius, you just need to enter your StackPath Client ID and Secret. From there, your agent can interact with your edge network directly.

**Can I list my StackPath workloads with this Connector?**
Yes, your agent can list all workloads in a specific stack. This is great for quickly checking if your latest deployment is live and healthy.

**Does StackPath MCP support multiple CDN sites?**
Yes, it allows you to query and manage all CDN sites within a stack. You can see your entire configuration in one place through your chat interface.

**How do I clear the CDN cache for specific assets?**
You can use the `purge_content` tool. Provide the `stack_id` and a list of `urls` you want to invalidate. You can also set `recursive` to true to purge entire directories.

**Can I deploy a new container to the edge using this agent?**
Yes! Use the `create_workload` tool. You'll need to specify the `stack_id`, a `name`, `slug`, and the container `image` (e.g., 'nginx:latest').

**How do I find the ID of my infrastructure stacks?**
Simply run the `list_stacks` tool. It will return all logical stacks associated with your account along with their unique IDs.