Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"mcpservertemplate": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
This repository contains a C# project used as a template for building Model‑Context‑Protocol (MCP) servers. The template can be installed via dotnet new and provides a starting point for projects that expose tools, prompts and resources to language models over the
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in developer-tools
Manage Supabase projects — databases, auth, storage, and edge functions
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Asynchronous coordination layer for AI coding agents: identities, inboxes, searchable threads, and advisory file leases over FastMCP + Git + SQLite
MCP Security Weekly
Get CVE alerts and security updates for McpServerTemplate and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
dotnet new TemplateThis repository contains a C# project used as a template for building
Model‑Context‑Protocol (MCP) servers. The template can be installed
via dotnet new and provides a starting point for projects that
expose tools, prompts and resources to language models over the
MCP HTTP/stdio transports.
PackageType=Template).template.config/template.json defines identity, short name, etc.McpServerTemplate/
├── .template.config/
│ └── template.json # template configuration
├── docs/ # explanatory documentation
├── src/ # the template project itself
│ ├── McpServerTemplate.csproj
│ ├── Program.cs
│ ├── Tools/ # sample tools for LLMs
│ ├── Resources/ # sample resources
│ └── Prompts/ # sample prompts
└── README.md # this file
From the workspace root you can build the project with the SDK:
cd src
dotnet build
The project is intentionally packable so that it can produce a NuGet
package which dotnet new can consume. To create the package run:
dotnet pack -c Debug
The resulting .nupkg file will appear in src/bin/Debug:
src/bin/Debug/Manus.Templates.McpServer.1.0.0.nupkg
If you want to install the template locally for testing:
dotnet new -i src/bin/Debug/Manus.Templates.McpServer.1.0.0.nupkg
Then create a new project based on the template:
dotnet new mcp-server -n MyMcpApp
cd MyMcpApp
dotnet run
When you're ready to share the template with others, push the
.nupkg to NuGet or your internal feed. Consumers will then install
with dotnet new -i <packageName>. Remember to update the
<Version> in McpServerTemplate.csproj for each release.
The .template.config/template.json file contains metadata used by
the dotnet new engine:
{
"$schema": "http://json.schemastore.org/template",
"author": "Manus AI",
"classifications": ["MCP", "AI", "Server", "C#"],
"name": "MCP Server Template",
"identity": "Manus.Templates.McpServer",
"shortName": "mcp-server",
"tags": {"language": "C#", "type": "project"},
"sourceName": "McpServerTemplate",
"preferNameDirectory": true
}
Adjust the fields as appropriate when updating the template.
The scaffolded project includes a minimal Program.cs that sets up
an MCP server with console logging, stdio and HTTP transports,
and automatically discovers tools, prompts, and resources in the
assembly. You can extend it by adding more classes under the Tools/,
Prompts/ or Resources/ folders.
See src/Tools/DiagnosticTools.cs for an example of exposing a tool
via the [McpServerTool] attribute.
PackageId, Version, Authors, and other NuGet properties
in the .csproj before packing for release.IsPackable set to true and include the .template.config in
the package as shown in the csproj.dotnet new --list to see installed templates.This README should contain all instructions required to build, test, pack, and use the template. Adjust and extend as the project grows.