-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Allow Implementations to optionally expose a websiteUrl and iconUrl
#417
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -272,11 +272,21 @@ export interface ServerCapabilities { | |
| } | ||
|
|
||
| /** | ||
| * Describes the name and version of an MCP implementation. | ||
| * Describes the MCP implementation. | ||
| */ | ||
| export interface Implementation { | ||
| name: string; | ||
| version: string; | ||
| /** | ||
| * An optional URL of the website for this implementation. | ||
| * | ||
| * @format: uri | ||
| */ | ||
| websiteUrl?: string; | ||
| /** | ||
| * The optional URL, pointing to an icon for this implementation. The URL should be accessible over the public internet, and should return a square (1:1 aspect ratio) PNG, with recommended dimensions of 512x512. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am very open to being less opinionated about the file format - just a stake in the ground
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if quickly people would want to be able to provide different sizes to ensure proper rendering. The Web Manifest's handling if icons might be a reasonable pattern that could be useful here : https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest/Reference/icons
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My thinking here was to keep it simple and just allow folks to specify one large icon, rather than supporting many resolutions. I'm flexible on this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I started out in your camp, @timrogers , thinking one-size icon should be used and scaled appropriately as needed. It keeps things simple. But I think there's a reasonable argument to be made for allowing the definition of alternate scales, as @dsp-ant A good example comes from the Apple human interface guidelines. The Safari icon at 512x512 shows tick marks. The 16x16 version isn't just downsampled. The tick marks are removed: The nice thing about the PWA format is that it's still easy to define one single icon: |
||
| */ | ||
| iconUrl?: string; | ||
| } | ||
|
|
||
| /* Ping */ | ||
|
|
||

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.
I do wonder if this makes sense for only servers, or for clients too. I don't think there is a natural place in the spec today to put something server-specific.