Skip to content

Commit 7ef1e7f

Browse files
committed
feat: update to latest version of mcp protocol
1 parent d518113 commit 7ef1e7f

20 files changed

+501
-1282
lines changed

Cargo.lock

Lines changed: 207 additions & 1159 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ keywords = [
1515
]
1616
homepage = "https://rust-mcp-stack.github.io/mcp-discovery"
1717
license = "MIT"
18-
edition = "2021"
18+
edition = "2024"
1919

2020
[lib]
2121
name = "mcp_discovery"
@@ -31,9 +31,10 @@ eula = false
3131
all-features = true # Build with all features
3232

3333
[dependencies]
34-
rust-mcp-sdk = { version = "0.4", default-features = false, features = [
34+
rust-mcp-sdk = { version = "0.7", default-features = false, features = [
3535
"client",
36-
"2024_11_05",
36+
"stdio",
37+
"2025_06_18"
3738
] }
3839

3940
clap = { version = "4.5", features = ["derive"] }

Makefile.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ dependencies = ["fmt", "clippy", "test"]
2121
command = "cargo"
2222
args = ["clippy", "--fix", "--allow-dirty"]
2323

24+
[tasks.check]
25+
dependencies = ["fmt", "clippy", "test"]
26+
27+
28+
2429

2530
[tasks.generate-examples]
2631
dependencies = [
@@ -130,3 +135,20 @@ args = [
130135
"-y",
131136
"@modelcontextprotocol/server-everything",
132137
]
138+
139+
140+
[tasks.example-update-json]
141+
command = "cargo"
142+
args = [
143+
"run",
144+
"--",
145+
"update",
146+
"-f",
147+
"docs/examples/json.txt",
148+
"-s",
149+
"{{json}}",
150+
"--",
151+
"npx",
152+
"-y",
153+
"@modelcontextprotocol/server-everything",
154+
]

docs/examples/create-md-plain.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
## example-servers/everything 1.0.0
2-
| 🟢 Tools (8) | 🟢 Prompts (3) | 🟢 Resources (10) | 🟢 Logging | <span style="opacity:0.6">🔴 Experimental</span> |
3-
| --- | --- | --- | --- | --- |
4-
## 🛠️ Tools (8)
2+
| 🟢 Tools (10) | 🟢 Prompts (3) | 🟢 Resources (10) | 🟢 Logging | 🟢 Completions | <span style="opacity:0.6">🔴 Experimental</span> |
3+
| --- | --- | --- | --- | --- | --- |
4+
5+
## 🛠️ Tools (10)
56

67

78
- **add**
@@ -21,6 +22,11 @@
2122
- **Inputs:**
2223
- <code>message</code> : string<br />
2324

25+
- **getResourceLinks**
26+
- Returns multiple resource links that reference different types of resources
27+
- **Inputs:**
28+
- <code>count</code> : number<br />
29+
2430
- **getResourceReference**
2531
- Returns a resource reference that can be used by MCP clients
2632
- **Inputs:**
@@ -44,6 +50,11 @@
4450
- <code>maxTokens</code> : number<br />
4551
- <code>prompt</code> : string<br />
4652

53+
- **structuredContent**
54+
- Returns structured content along with an output schema for client data validation
55+
- **Inputs:**
56+
- <code>location</code> : string<br />
57+
4758

4859
## 📝 Prompts (3)
4960

docs/examples/create-md.md

Lines changed: 42 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
## example-servers/everything 1.0.0
2-
| 🟢 Tools (8) | 🟢 Prompts (3) | 🟢 Resources (10) | 🟢 Logging | <span style="opacity:0.6">🔴 Experimental</span> |
3-
| --- | --- | --- | --- | --- |
4-
## 🛠️ Tools (8)
2+
| 🟢 Tools (10) | 🟢 Prompts (3) | 🟢 Resources (10) | 🟢 Logging | 🟢 Completions | <span style="opacity:0.6">🔴 Experimental</span> |
3+
| --- | --- | --- | --- | --- | --- |
4+
5+
## 🛠️ Tools (10)
56

67
<table style="text-align: left;">
78
<thead>
@@ -21,8 +22,8 @@
2122
<td>Adds two numbers</td>
2223
<td>
2324
<ul>
24-
<li style="white-space: nowrap;"> <code>a</code> : number<br /></li>
25-
<li style="white-space: nowrap;"> <code>b</code> : number<br /></li>
25+
<li> <code>a</code> : number<br /></li>
26+
<li> <code>b</code> : number<br /></li>
2627
</ul>
2728
</td>
2829
</tr>
@@ -34,8 +35,8 @@
3435
<td>Demonstrates how annotations can be used to provide metadata about content</td>
3536
<td>
3637
<ul>
37-
<li style="white-space: nowrap;"> <code>includeImage</code> : boolean<br /></li>
38-
<li style="white-space: nowrap;"> <code>messageType</code> : error|success|debug<br /></li>
38+
<li> <code>includeImage</code> : boolean<br /></li>
39+
<li> <code>messageType</code> : error|success|debug<br /></li>
3940
</ul>
4041
</td>
4142
</tr>
@@ -47,24 +48,36 @@
4748
<td>Echoes back the input</td>
4849
<td>
4950
<ul>
50-
<li style="white-space: nowrap;"> <code>message</code> : string<br /></li>
51+
<li> <code>message</code> : string<br /></li>
5152
</ul>
5253
</td>
5354
</tr>
5455
<tr>
5556
<td>4.</td>
57+
<td>
58+
<code><b>getResourceLinks</b></code>
59+
</td>
60+
<td>Returns multiple resource links that reference different types of resources</td>
61+
<td>
62+
<ul>
63+
<li> <code>count</code> : number<br /></li>
64+
</ul>
65+
</td>
66+
</tr>
67+
<tr>
68+
<td>5.</td>
5669
<td>
5770
<code><b>getResourceReference</b></code>
5871
</td>
5972
<td>Returns a resource reference that can be used by MCP clients</td>
6073
<td>
6174
<ul>
62-
<li style="white-space: nowrap;"> <code>resourceId</code> : number<br /></li>
75+
<li> <code>resourceId</code> : number<br /></li>
6376
</ul>
6477
</td>
6578
</tr>
6679
<tr>
67-
<td>5.</td>
80+
<td>6.</td>
6881
<td>
6982
<code><b>getTinyImage</b></code>
7083
</td>
@@ -75,20 +88,20 @@
7588
</td>
7689
</tr>
7790
<tr>
78-
<td>6.</td>
91+
<td>7.</td>
7992
<td>
8093
<code><b>longRunningOperation</b></code>
8194
</td>
8295
<td>Demonstrates a long running operation with progress updates</td>
8396
<td>
8497
<ul>
85-
<li style="white-space: nowrap;"> <code>duration</code> : number<br /></li>
86-
<li style="white-space: nowrap;"> <code>steps</code> : number<br /></li>
98+
<li> <code>duration</code> : number<br /></li>
99+
<li> <code>steps</code> : number<br /></li>
87100
</ul>
88101
</td>
89102
</tr>
90103
<tr>
91-
<td>7.</td>
104+
<td>8.</td>
92105
<td>
93106
<code><b>printEnv</b></code>
94107
</td>
@@ -99,15 +112,27 @@
99112
</td>
100113
</tr>
101114
<tr>
102-
<td>8.</td>
115+
<td>9.</td>
103116
<td>
104117
<code><b>sampleLLM</b></code>
105118
</td>
106119
<td>Samples from an LLM using MCP's sampling feature</td>
107120
<td>
108121
<ul>
109-
<li style="white-space: nowrap;"> <code>maxTokens</code> : number<br /></li>
110-
<li style="white-space: nowrap;"> <code>prompt</code> : string<br /></li>
122+
<li> <code>maxTokens</code> : number<br /></li>
123+
<li> <code>prompt</code> : string<br /></li>
124+
</ul>
125+
</td>
126+
</tr>
127+
<tr>
128+
<td>10.</td>
129+
<td>
130+
<code><b>structuredContent</b></code>
131+
</td>
132+
<td>Returns structured content along with an output schema for client data validation</td>
133+
<td>
134+
<ul>
135+
<li> <code>location</code> : string<br /></li>
111136
</ul>
112137
</td>
113138
</tr>

docs/examples/print_terminal.jpg

65.2 KB
Loading
4.58 KB
Loading

docs/examples/server-info.html

Lines changed: 44 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -121,22 +121,25 @@ <h1>example-servers/everything 1.0.0</h1> </section>
121121
<th>Prompts</th>
122122
<th>Resources</th>
123123
<th>Logging</th>
124+
<th>Completions</th>
124125
<th>Experimental</th>
125126
</tr>
126127
</thead>
127128
<tbody>
128129
<tr>
129-
<td>🟢 Tools (8)</td>
130+
<td>🟢 Tools (10)</td>
130131
<td>🟢 Prompts (3)</td>
131132
<td>🟢 Resources (10)</td>
132133
<td>🟢 Logging</td>
134+
<td>🟢 Completions</td>
133135
<td><span style="opacity:0.6">🔴 Experimental</span></td>
134136
</tr>
135137
</tbody>
136-
</table> </section>
138+
</table>
139+
</section>
137140

138141
<section class="mcp-section">
139-
<h2>🛠️ Tools (8)</h2>
142+
<h2>🛠️ Tools (10)</h2>
140143
<table style="text-align: left;">
141144
<thead>
142145
<tr>
@@ -155,8 +158,8 @@ <h2>🛠️ Tools (8)</h2>
155158
<td>Adds two numbers</td>
156159
<td>
157160
<ul>
158-
<li style="white-space: nowrap;"> <code>a</code> : number<br /></li>
159-
<li style="white-space: nowrap;"> <code>b</code> : number<br /></li>
161+
<li style=""> <code>a</code> : number<br /></li>
162+
<li style=""> <code>b</code> : number<br /></li>
160163
</ul>
161164
</td>
162165
</tr>
@@ -168,8 +171,8 @@ <h2>🛠️ Tools (8)</h2>
168171
<td>Demonstrates how annotations can be used to provide metadata about content</td>
169172
<td>
170173
<ul>
171-
<li style="white-space: nowrap;"> <code>includeImage</code> : boolean<br /></li>
172-
<li style="white-space: nowrap;"> <code>messageType</code> : error|success|debug<br /></li>
174+
<li style=""> <code>includeImage</code> : boolean<br /></li>
175+
<li style=""> <code>messageType</code> : error|success|debug<br /></li>
173176
</ul>
174177
</td>
175178
</tr>
@@ -181,24 +184,36 @@ <h2>🛠️ Tools (8)</h2>
181184
<td>Echoes back the input</td>
182185
<td>
183186
<ul>
184-
<li style="white-space: nowrap;"> <code>message</code> : string<br /></li>
187+
<li style=""> <code>message</code> : string<br /></li>
185188
</ul>
186189
</td>
187190
</tr>
188191
<tr>
189192
<td>4.</td>
193+
<td>
194+
<code><b>getResourceLinks</b></code>
195+
</td>
196+
<td>Returns multiple resource links that reference different types of resources</td>
197+
<td>
198+
<ul>
199+
<li style=""> <code>count</code> : number<br /></li>
200+
</ul>
201+
</td>
202+
</tr>
203+
<tr>
204+
<td>5.</td>
190205
<td>
191206
<code><b>getResourceReference</b></code>
192207
</td>
193208
<td>Returns a resource reference that can be used by MCP clients</td>
194209
<td>
195210
<ul>
196-
<li style="white-space: nowrap;"> <code>resourceId</code> : number<br /></li>
211+
<li style=""> <code>resourceId</code> : number<br /></li>
197212
</ul>
198213
</td>
199214
</tr>
200215
<tr>
201-
<td>5.</td>
216+
<td>6.</td>
202217
<td>
203218
<code><b>getTinyImage</b></code>
204219
</td>
@@ -209,20 +224,20 @@ <h2>🛠️ Tools (8)</h2>
209224
</td>
210225
</tr>
211226
<tr>
212-
<td>6.</td>
227+
<td>7.</td>
213228
<td>
214229
<code><b>longRunningOperation</b></code>
215230
</td>
216231
<td>Demonstrates a long running operation with progress updates</td>
217232
<td>
218233
<ul>
219-
<li style="white-space: nowrap;"> <code>duration</code> : number<br /></li>
220-
<li style="white-space: nowrap;"> <code>steps</code> : number<br /></li>
234+
<li style=""> <code>duration</code> : number<br /></li>
235+
<li style=""> <code>steps</code> : number<br /></li>
221236
</ul>
222237
</td>
223238
</tr>
224239
<tr>
225-
<td>7.</td>
240+
<td>8.</td>
226241
<td>
227242
<code><b>printEnv</b></code>
228243
</td>
@@ -233,15 +248,27 @@ <h2>🛠️ Tools (8)</h2>
233248
</td>
234249
</tr>
235250
<tr>
236-
<td>8.</td>
251+
<td>9.</td>
237252
<td>
238253
<code><b>sampleLLM</b></code>
239254
</td>
240255
<td>Samples from an LLM using MCP's sampling feature</td>
241256
<td>
242257
<ul>
243-
<li style="white-space: nowrap;"> <code>maxTokens</code> : number<br /></li>
244-
<li style="white-space: nowrap;"> <code>prompt</code> : string<br /></li>
258+
<li style=""> <code>maxTokens</code> : number<br /></li>
259+
<li style=""> <code>prompt</code> : string<br /></li>
260+
</ul>
261+
</td>
262+
</tr>
263+
<tr>
264+
<td>10.</td>
265+
<td>
266+
<code><b>structuredContent</b></code>
267+
</td>
268+
<td>Returns structured content along with an output schema for client data validation</td>
269+
<td>
270+
<ul>
271+
<li style=""> <code>location</code> : string<br /></li>
245272
</ul>
246273
</td>
247274
</tr>

docs/examples/update-md-inline.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<br/>
1515
<b>Version: </b>1.0.0
1616
<br/>
17-
<b>Number of tools:</b> 8
17+
<b>Number of tools:</b> 10
1818
<h2>Summary:</h2>
1919
<table>
2020
<thead>
@@ -23,15 +23,17 @@
2323
<th>Prompts</th>
2424
<th>Resources</th>
2525
<th>Logging</th>
26+
<th>Completions</th>
2627
<th>Experimental</th>
2728
</tr>
2829
</thead>
2930
<tbody>
3031
<tr>
31-
<td>🟢 Tools (8)</td>
32+
<td>🟢 Tools (10)</td>
3233
<td>🟢 Prompts (3)</td>
3334
<td>🟢 Resources (10)</td>
3435
<td>🟢 Logging</td>
36+
<td>🟢 Completions</td>
3537
<td><span style="opacity:0.6">🔴 Experimental</span></td>
3638
</tr>
3739
</tbody>

0 commit comments

Comments
 (0)