Skip to main content
Glama
purpleax

Fastly NGWAF MCP Server

by purpleax

list_corps

Retrieve all corporations accessible to your authenticated account for managing web application security configurations in Fastly's Next-Gen WAF.

Instructions

List all corporations accessible to the authenticated user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • server.js:50-53 (handler)
    Core implementation of listing corporations via Fastly NGWAF API GET /corps endpoint.
    async listCorps() {
        const response = await this.api.get('/corps');
        return response.data;
    }
  • MCP CallToolRequestSchema handler dispatch for the 'list_corps' tool, invoking the client method.
    case 'list_corps':
        result = await client.listCorps();
        break;
  • Tool schema definition including name, description, and empty input schema for list_corps.
        name: 'list_corps',
        description: 'List all corporations accessible to the authenticated user',
        inputSchema: {
            type: 'object',
            properties: {},
        },
    },
  • server.js:814-816 (registration)
    Registration handler for ListToolsRequestSchema that returns the tools list including list_corps.
    server.setRequestHandler(ListToolsRequestSchema, async () => {
        return { tools };
    });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/purpleax/FastlyMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server