Skip to content

Add support for Operation Collections #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Jun 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changesets/feat_jeffrey_poll_operation_collections.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Add `--collection <COLLECTION_ID>` as another option for operation source

Use operation collections as the source of operations for your MCP server. The server will watch for changes and automatically update when you change your operation collection.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Use operation collections as the source of operations for your MCP server. The server will watch for changes and automatically update when you change your operation collection.
Use shared operation collections as the source of operations for your MCP server. The server will watch for changes and automatically update when you change your operation collection.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure how to word this, you 100% can use a sandbox or personal collection as long as your APOLLO_KEY has access to it. If you do, it is incompatible with uplink but you can still pass in a schema.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need a larger doc section, beyond just the options in the command reference, that explains this. This will be an immediate area of confusion. But that can be in a follow-on doc PR.

6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"editor.formatOnSave": true
},
"cSpell.words": [
"apollographql",
"clippy",
"graphos",
"insta",
"peekable",
"redactions",
Expand All @@ -18,6 +20,8 @@
"Subschema",
"subschemas",
"Supergraph",
"thiserror"
"thiserror",
"webbrowser",
"wiremock"
]
}
1 change: 1 addition & 0 deletions crates/apollo-mcp-registry/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub mod files;
pub(crate) mod logging;
pub mod platform_api;
pub mod uplink;
18 changes: 18 additions & 0 deletions crates/apollo-mcp-registry/src/platform_api.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
use secrecy::SecretString;
use std::fmt::Debug;
use std::time::Duration;

pub mod operation_collections;

/// Configuration for polling Apollo Uplink.
#[derive(Clone, Debug, Default)]
pub struct PlatformApiConfig {
/// The Apollo key: `<YOUR_GRAPH_API_KEY>`
pub apollo_key: SecretString,

/// The duration between polling
pub poll_interval: Duration,

/// The HTTP client timeout for each poll
pub timeout: Duration,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub mod collection_poller;
pub mod error;
pub mod event;
Loading