Skip to content

Conversation

nicholascioli
Copy link
Contributor

@nicholascioli nicholascioli commented Jul 14, 2025

[0.6.0] - 2025-07-14

❗ BREAKING ❗

Replace CLI flags with a configuration file - @nicholascioli PR #162

All command line arguments are now removed and replaced with equivalent configuration
options. The Apollo MCP server only accepts a single argument which is a path to a
configuration file. An empty file may be passed, as all options have sane defaults
that follow the previous argument defaults.

All options can be overridden by environment variables. They are of the following
form:

  • Prefixed by APOLLO_MCP_
  • Suffixed by the config equivalent path, with __ marking nested options.

E.g. The environment variable to change the config option introspection.execute.enabled
would be APOLLO_MCP_INTROSPECTION__EXECUTE__ENABLED.

Below is a valid configuration file with some options filled out:

custom_scalars: /path/to/custom/scalars
endpoint: http://127.0.0.1:4000
graphos:
  apollo_key: some.key
  apollo_graph_ref: example@graph
headers:
  X-Some-Header: example-value
introspection:
  execute:
    enabled: true
  introspect:
    enabled: false
logging: 
  level: info
operations:
  source: local
  paths:
    - /path/to/operation.graphql
    - /path/to/other/operation.graphql
overrides:
  disable_type_description: false
  disable_schema_description: false
  enable_explorer: false
  mutation_mode: all
schema:
  source: local
  path: /path/to/schema.graphql
transport:
  type: streamable_http
  address: 127.0.0.1
  port: 5000

🚀 Features

Add search tool - @pubmodmatt PR #171

A new experimental search tool has been added that allows the AI model to specify a set of terms to search for in the GraphQL schema. The top types matching that search are returned, as well as enough information to enable creation of GraphQL operations involving those types.

@nicholascioli nicholascioli self-assigned this Jul 14, 2025
@apollo-librarian
Copy link

apollo-librarian bot commented Jul 14, 2025

✅ Docs preview ready

The preview is ready to be viewed. View the preview

File Changes

0 new, 4 changed, 0 removed
* (developer-tools)/apollo-mcp-server/(latest)/best-practices.mdx
* (developer-tools)/apollo-mcp-server/(latest)/command-reference.mdx
* (developer-tools)/apollo-mcp-server/(latest)/quickstart.mdx
* (developer-tools)/apollo-mcp-server/(latest)/guides/index.mdx

Build ID: 8c2d4302dcb3fab2aae22500
Build Logs: View logs

URL: https://www.apollographql.com/docs/deploy-preview/8c2d4302dcb3fab2aae22500

Copy link
Contributor

@DaleSeo DaleSeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to update our user guide to use the config file instead of the CLI flags unless, unless there's a separate PR for that. I've captured the example commands that need changes from the preview.

Shot 2025-07-23 at 11 12 59 Shot 2025-07-23 at 11 13 25 Shot 2025-07-23 at 11 13 55 Shot 2025-07-23 at 11 15 02

@nicholascioli
Copy link
Contributor Author

I've rebased and updated the docs.

@nicholascioli nicholascioli requested review from DaleSeo and alocay July 28, 2025 18:41
@nicholascioli nicholascioli marked this pull request as ready for review July 28, 2025 18:50
@nicholascioli nicholascioli requested review from a team as code owners July 28, 2025 18:50
```sh showLineNumbers=false
rover dev --supergraph-config ./graphql/TheSpaceDevs/supergraph.yaml \
--mcp \
--mcp-operations ./graphql/TheSpaceDevs/operations
--mcp-config <path to the preceding config>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Answered that question. If that solution works with you then I'll update this PR to not have the --mcp flag in this example.

Copy link
Contributor

@DaleSeo DaleSeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The config options look quite off in the preview. Can you double-check the markdown formatting?

image

Copy link
Contributor

@alocay alocay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@alocay alocay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The markdown in the deploy preview for the command reference is a bit off

Edit: Fixed now

@nicholascioli nicholascioli merged commit dc32d0b into main Jul 28, 2025
7 checks passed
@nicholascioli nicholascioli deleted the 0.6.0 branch July 28, 2025 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants