|
12 | 12 | "id": "abc123de-f456-7890-ghij-klmnopqrstuv"
|
13 | 13 | },
|
14 | 14 | "version_detail": {
|
15 |
| - "version": "1.0.2", |
16 |
| - "release_date": "2023-06-15T10:30:00Z" |
| 15 | + "version": "1.0.2" |
17 | 16 | },
|
18 | 17 | "packages": [
|
19 | 18 | {
|
|
33 | 32 | }
|
34 | 33 | ```
|
35 | 34 |
|
| 35 | +## Constant (fixed) arguments needed to start the MCP server |
| 36 | + |
| 37 | +Suppose your MCP server application requires a `mcp start` CLI arguments to start in MCP server mode. Express these as positional arguments like this: |
| 38 | + |
| 39 | +```json |
| 40 | +{ |
| 41 | + "name": "Knapcode.SampleMcpServer", |
| 42 | + "description": "Sample NuGet MCP server for a random number and random weather", |
| 43 | + "version_detail": { |
| 44 | + "version": "0.4.0-beta" |
| 45 | + }, |
| 46 | + "packages": [ |
| 47 | + { |
| 48 | + "registry_name": "nuget", |
| 49 | + "name": "Knapcode.SampleMcpServer", |
| 50 | + "version": "0.4.0-beta", |
| 51 | + "package_arguments": [ |
| 52 | + { |
| 53 | + "type": "positional", |
| 54 | + "value": "mcp" |
| 55 | + }, |
| 56 | + { |
| 57 | + "type": "positional", |
| 58 | + "value": "start" |
| 59 | + } |
| 60 | + ] |
| 61 | + } |
| 62 | + ] |
| 63 | +} |
| 64 | +``` |
| 65 | + |
| 66 | +This will essentially instruct the MCP client to execute `dnx [email protected] -- mcp start` instead of the default `dnx [email protected]` (when no `package_arguments` are provided). |
| 67 | + |
36 | 68 | ## Filesystem Server with Multiple Packages
|
37 | 69 |
|
38 | 70 | ```json
|
|
45 | 77 | "id": "b94b5f7e-c7c6-d760-2c78-a5e9b8a5b8c9"
|
46 | 78 | },
|
47 | 79 | "version_detail": {
|
48 |
| - "version": "1.0.2", |
49 |
| - "release_date": "2023-06-15T10:30:00Z" |
| 80 | + "version": "1.0.2" |
50 | 81 | },
|
51 | 82 | "packages": [
|
52 | 83 | {
|
|
128 | 159 | "id": "xyz789ab-cdef-0123-4567-890ghijklmno"
|
129 | 160 | },
|
130 | 161 | "version_detail": {
|
131 |
| - "version": "2.0.0", |
132 |
| - "release_date": "2024-01-20T14:30:00Z" |
| 162 | + "version": "2.0.0" |
133 | 163 | },
|
134 | 164 | "remotes": [
|
135 | 165 | {
|
|
152 | 182 | "id": "def456gh-ijkl-7890-mnop-qrstuvwxyz12"
|
153 | 183 | },
|
154 | 184 | "version_detail": {
|
155 |
| - "version": "0.5.0", |
156 |
| - "release_date": "2024-02-10T09:15:00Z" |
| 185 | + "version": "0.5.0" |
157 | 186 | },
|
158 | 187 | "packages": [
|
159 | 188 | {
|
@@ -189,11 +218,11 @@ The `dnx` tool ships with the .NET 10 SDK, starting with Preview 6.
|
189 | 218 | "description": "Sample NuGet MCP server for a random number and random weather",
|
190 | 219 | "repository": {
|
191 | 220 | "url": "https://github.com/joelverhagen/Knapcode.SampleMcpServer",
|
192 |
| - "source": "github" |
| 221 | + "source": "github", |
| 222 | + "id": "def456gh-ijkl-7890-mnop-qrstuvwxyz13" |
193 | 223 | },
|
194 | 224 | "version_detail": {
|
195 |
| - "version": "0.3.0", |
196 |
| - "release_date": "2025-07-02T18:54:28.00Z" |
| 225 | + "version": "0.3.0-beta" |
197 | 226 | },
|
198 | 227 | "packages": [
|
199 | 228 | {
|
@@ -226,8 +255,7 @@ The `dnx` tool ships with the .NET 10 SDK, starting with Preview 6.
|
226 | 255 | "id": "ghi789jk-lmno-1234-pqrs-tuvwxyz56789"
|
227 | 256 | },
|
228 | 257 | "version_detail": {
|
229 |
| - "version": "3.1.0", |
230 |
| - "release_date": "2024-03-05T16:45:00Z" |
| 258 | + "version": "3.1.0" |
231 | 259 | },
|
232 | 260 | "packages": [
|
233 | 261 | {
|
@@ -313,8 +341,7 @@ The `dnx` tool ships with the .NET 10 SDK, starting with Preview 6.
|
313 | 341 | "id": "klm012no-pqrs-3456-tuvw-xyz789abcdef"
|
314 | 342 | },
|
315 | 343 | "version_detail": {
|
316 |
| - "version": "1.5.0", |
317 |
| - "release_date": "2024-04-01T12:00:00Z" |
| 344 | + "version": "1.5.0" |
318 | 345 | },
|
319 | 346 | "packages": [
|
320 | 347 | {
|
|
0 commit comments