Apollo Router

🏢Official
by apollographql · vlatest · Repository

The Apollo Router efficiently manages GraphQL connections across multiple services, optimizing performance and simplifying data fetching for your applications.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add apollo-router npx -- -y @trustedskills/apollo-router
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "apollo-router": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/apollo-router"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill generates configuration files for the Apollo Router, a high-performance graph router used to manage GraphQL connections across multiple services when building Apollo Federation 2 supergraphs. It guides users through a series of steps to create version-correct configurations tailored to their specific needs, including selecting the target Apollo Router version (v1 or v2), environment (production or development), and desired features. The skill ensures proper configuration based on these choices.

When to use it

  • Creating an initial Apollo Router configuration for a new project.
  • Generating configurations for different environments (development vs. production).
  • Configuring specific features like JWT Authentication, CORS, operation limits, or Connectors.
  • Migrating existing router.yaml files to newer versions.
  • When needing help deciding between Apollo Router v1 and v2.

Key capabilities

  • Version Selection: Guides users through choosing between Apollo Router v1 and v2, providing recommendations based on use case.
  • Environment Configuration: Generates configurations for both production (security-hardened) and development (open defaults) environments.
  • Feature Inclusion: Allows selection of features like JWT Authentication, CORS, Operation Limits, Traffic Shaping/Rate Limiting, Telemetry, APQ, Connectors (v2 only), Subscriptions, Header Propagation.
  • Parameter Gathering: Collects necessary parameters for each selected feature.
  • Connector Support: Provides configuration templates specifically for Apollo Connectors (available in Router v2).

Example prompts

  • "Generate an Apollo Router configuration for version 2, development environment."
  • "I need a production-ready configuration with JWT authentication and CORS enabled."
  • "Which Apollo Router version should I use?"
  • “Can you help me upgrade my existing router.yaml?”

Tips & gotchas

  • Version Compatibility: Router v1 and v2 have incompatible configuration schemas, so selecting the correct version is crucial.
  • Connectors Requirement: Apollo Connectors are only supported in Router v2.
  • CORS Security: Avoid using "*" as an allowed origin for CORS in production environments.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
apollographql
Installs
135

🏢 Official

Published by the company or team that built the technology.