-
Notifications
You must be signed in to change notification settings - Fork 38
[docs] breakout the transport config into their own sections #231
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
Conversation
@ronan-apollo: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/ |
✅ Docs preview readyThe preview is ready to be viewed. View the preview File Changes 0 new, 6 changed, 2 removed
Build ID: 4262bf242cc7d0742279ced4 URL: https://www.apollographql.com/docs/deploy-preview/4262bf242cc7d0742279ced4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Left a small note on fixing formatting.
docs/source/command-reference.mdx
Outdated
| Option | Value | Value Type | Description | | ||
| :-------- | :------------------ | :------------ | :----------------------------------------------------------------------------------------------------------------------- | | ||
| `type` | `"sse"` | | Host the MCP server on the supplied config, using SSE for communication. Deprecated in favor of `StreamableHTTP` | | ||
| `address` | `127.0.0.1 (default)` | `IpAddr` | The IP address to bind to | | ||
| `port` | `5000 (default)` | `u16` | The port to bind to | | ||
|
||
### StreamableHTTP | ||
|
||
| Option | Value | Value Type | Description | | ||
| :-------- | :------------------ | :------------ | :----------------------------------------------------------------------------------------------------------------------- | | ||
| `type` | `"streamable_http"` | | Host the MCP server on the configuration, using streamable HTTP messages. | | ||
| `address` | `127.0.0.1 (default)` | `IpAddr` | The IP address to bind to | | ||
| `port` | `5000 (default)` | `u16` | The port to bind to | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you fix the formatting here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicholascioli I pushed some tweaks, im not sure if I addressed this - what formatting specifics?
@ronan-apollo mind if we land these after the |
Signed-off-by: Ronan Flynn-Curran <[email protected]>
no problem |
docs/source/command-reference.mdx
Outdated
| :-------- | :------------------ | :------------ | :----------------------------------------------------------------------------------------------------------------------- | | ||
| `type` | `"stdio"` | \* | Use standard IO for communication between the server and client | | ||
|
||
##### SSE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While the SSE transport is still supported for now, it doesn't not receive new features and may be removed in a future release. How about we move the deprecation warning out of the table and add a note here that this transport is now deprecated and we recommend using Streamable HTTP instead? (see the spec here)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++ Let's move this down after Streamable HTTP and add "(Deprecated)" to the heading
docs/source/command-reference.mdx
Outdated
|
||
The available fields depend on the value of the nested `type` key: | ||
|
||
##### STDIO (default) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use lowercase here to match with the spec? stdio
docs/source/command-reference.mdx
Outdated
| :-------- | :------------------ | :------------ | :----------------------------------------------------------------------------------------------------------------------- | | ||
| `type` | `"stdio"` | \* | Use standard IO for communication between the server and client | | ||
|
||
##### SSE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++ Let's move this down after Streamable HTTP and add "(Deprecated)" to the heading
docs/source/command-reference.mdx
Outdated
| `address` | `127.0.0.1` (default) | `IpAddr` | The IP address to bind to | | ||
| `port` | `5000` (default) | `u16` | The port to bind to | | ||
|
||
##### StreamableHTTP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
##### StreamableHTTP | |
##### Streamable HTTP |
Signed-off-by: Ronan Flynn-Curran <[email protected]>
Co-authored-by: Michelle Mabuyo <[email protected]>
Signed-off-by: Ronan Flynn-Curran <[email protected]>
Suggestions applied! Thx |
Update the
transport
type config table here - splitting it out into seperate tables pertype
to make the parent/child config clearer/simpler to parseBefore changes | After changes (preview)