Skip to content

Commit 01b818f

Browse files
tadasanttoby
authored andcommitted
Address feedback
1 parent 2061151 commit 01b818f

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

docs/server-json/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ There are a variety of use cases where a _static representation of an MCP server
55
- Discoverability on a decentralized `.well-known` endpoint
66
- As a response to an initialization call, so the client knows information about the MCP server to which it is connecting
77
- As an input into crafting a [DXT file](https://www.anthropic.com/engineering/desktop-extensions)
8-
- Packaged in with the source code of an MCP server, so as to have a structured way context
8+
- Packaged in with the source code of an MCP server, so as to have a structured way to identify a server given just its source code
99

1010
All of these scenarios (and more) would benefit from an agreed-upon, standardized format that makes it easy to port around and maintain a consistent experience for consumers and developers working with the data. At the end of the day, it's all the same data (or a subset of it). MCP server maintainers should have to manage one copy of this file, and all these use cases can serve that file (or a programmatic derivative/subset of it).
1111

docs/server-json/schema.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@
5555
"description": "Version information for this server",
5656
"required": [
5757
"version",
58-
"release_date",
59-
"is_latest"
58+
"release_date"
6059
],
6160
"properties": {
6261
"version": {
@@ -129,13 +128,14 @@
129128
},
130129
"value_hint": {
131130
"type": "string",
132-
"description": "Identifier hint for the value"
131+
"description": "An identifier-like hint for the value. This is not part of the command line, but can be used by client configuration and to provide hints to users."
133132
},
134133
"description": {
135134
"type": "string"
136135
},
137136
"value": {
138-
"type": "string"
137+
"type": "string",
138+
"description": "The default value for the input. If this is not set, the user may be prompted to provide a value.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged."
139139
},
140140
"default": {
141141
"type": "string"
@@ -168,7 +168,8 @@
168168
"type": "string"
169169
},
170170
"value": {
171-
"type": "string"
171+
"type": "string",
172+
"description": "The default value for the input. If this is not set, the user may be prompted to provide a value.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged."
172173
},
173174
"is_required": {
174175
"type": "boolean",
@@ -180,6 +181,7 @@
180181
},
181182
"variables": {
182183
"type": "object",
184+
"description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
183185
"additionalProperties": {
184186
"type": "object",
185187
"properties": {
@@ -188,12 +190,14 @@
188190
},
189191
"format": {
190192
"type": "string",
193+
"description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
191194
"enum": [
192195
"string",
193196
"number",
194197
"boolean",
195198
"filepath"
196-
]
199+
],
200+
"default": "string"
197201
},
198202
"is_required": {
199203
"type": "boolean"

0 commit comments

Comments
 (0)