-
Notifications
You must be signed in to change notification settings - Fork 6k
Add quickstart for minimal MCP Server using .NET and publish to NuGet #47007
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
Open
JonDouglas
wants to merge
46
commits into
main
Choose a base branch
from
mcp-nuget
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+408
−84
Open
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
0898b44
Initial draft
JonDouglas 0929dc4
Fix image path
JonDouglas cfd6d95
Add to ToC
JonDouglas 2e218fc
Fix NuGet link
JonDouglas 881fdb4
Fix download link
JonDouglas 67feebd
Add VS docs
JonDouglas 15e1148
Update docs/ai/quickstarts/build-mcp-server-publish-nuget.md
JonDouglas 3b81b04
Update docs/ai/quickstarts/build-mcp-server-publish-nuget.md
JonDouglas 7da8068
Update docs/ai/quickstarts/build-mcp-server-publish-nuget.md
JonDouglas 73dcd40
Update docs/ai/quickstarts/build-mcp-server-publish-nuget.md
JonDouglas 36301eb
Update docs/ai/quickstarts/build-mcp-server-publish-nuget.md
JonDouglas d57afb3
Update docs/ai/quickstarts/build-mcp-server-publish-nuget.md
JonDouglas 2eebf55
Add to list
JonDouglas 9b44d02
Update pkg args
JonDouglas 3b6816e
Fix indention, use auto-number, fix tool name based on latest templat…
joelverhagen 9238f77
Undo
joelverhagen 4a6351d
Update docs/ai/quickstarts/build-mcp-server-publish-nuget.md
joelverhagen f2e4f02
Update image with new tool name
joelverhagen c04f9e7
Merge into existing quickstart
joelverhagen a525a33
Improve
joelverhagen eb6d4e4
Fix lint issues
joelverhagen 790d356
Fix up
joelverhagen a9e8b7d
Improve sample, suggest int environment as an option
joelverhagen c402d78
Fix
joelverhagen b145877
Fix method name
joelverhagen 12f65e1
Word
joelverhagen 5f63725
Fix lint
joelverhagen 7950495
Update docs/ai/quickstarts/build-mcp-server.md
joelverhagen 72323e6
Update docs/ai/quickstarts/build-mcp-server.md
joelverhagen 2903727
Update docs/ai/quickstarts/build-mcp-server.md
joelverhagen 5aaf9ca
Update docs/ai/quickstarts/build-mcp-server.md
joelverhagen 62b7731
Update docs/ai/quickstarts/build-mcp-server.md
joelverhagen 444dda7
Update docs/ai/quickstarts/build-mcp-server.md
joelverhagen 6aa8a64
Update docs/ai/quickstarts/build-mcp-server.md
joelverhagen 98b668b
Update docs/ai/quickstarts/build-mcp-server.md
joelverhagen af7bb13
Update docs/ai/quickstarts/build-mcp-server.md
joelverhagen e7eef78
Update docs/ai/quickstarts/build-mcp-server.md
joelverhagen 384ca48
Indent and polish
joelverhagen 5ece1ef
Move to snippet
joelverhagen 3720db2
Use full snippet
joelverhagen 1c7b5ee
Lint
joelverhagen 6e6d072
Fix rename references
joelverhagen 13d8f52
Update docs/ai/quickstarts/build-mcp-server.md
joelverhagen d6ece12
Fix URLs
joelverhagen cff7ef1
Add NuGet.org screenshots
joelverhagen 5d71c33
Bigger screenshots
joelverhagen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"description": "<your description here>", | ||
"name": "io.github.<your GitHub username here>/<your repo name>", | ||
"packages": [ | ||
{ | ||
"registry_name": "nuget", | ||
"name": "SampleMcpServer", | ||
"version": "0.1.0-beta", | ||
"package_arguments": [], | ||
"environment_variables": [ | ||
{ | ||
"name": "WEATHER_CHOICES", | ||
"description": "Comma separated list of weather descriptions to randomly select.", | ||
"is_required": true, | ||
"is_secret": false | ||
} | ||
] | ||
} | ||
], | ||
"repository": { | ||
"url": "https://github.com/<your GitHub username here>/<your repo name>", | ||
"source": "github" | ||
}, | ||
"version_detail": { | ||
"version": "0.1.0-beta" | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"servers": { | ||
"SampleMcpServer": { | ||
"type": "stdio", | ||
"command": "dotnet", | ||
"args": [ | ||
"run", | ||
"--project", | ||
"." | ||
], | ||
"env": { | ||
"WEATHER_CHOICES": "sunny,humid,freezing" | ||
} | ||
} | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
docs/ai/quickstarts/snippets/mcp-server/MinimalMcpServer.csproj
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.