1. Conduid
  2. Browser
  3. com.joelverhagen.mcp/Knapcode.SampleMcpServer
MCP server · Browser

com.joelverhagen.mcp/Knapcode.SampleMcpServer

A sample MCP server using the MCP C# SDK. Generates random numbers and random weather.

Unclaimed browser
34Low

Scored 6 months ago · breakdown

About com.joelverhagen.mcp/Knapcode.SampleMcpServer

com.joelverhagen.mcp/Knapcode.SampleMcpServer is an MCP server in the Browser category: a sample MCP server using the MCP C# SDK. Generates random numbers and random weather.

Install

From source
git clone https://github.com/joelverhagen/Knapcode.SampleMcpServer

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about com.joelverhagen.mcp/Knapcode.SampleMcpServer

Powered by Claude · Grounded in docs

I know everything about com.joelverhagen.mcp/Knapcode.SampleMcpServer. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

MCP Server - Knapcode.SampleMcpServer

This README was created using the C# MCP server template project. It demonstrates how you can easily create an MCP server using C# and then package it in a NuGet package.

See aka.ms/nuget/mcp/guide for the full guide.

Checklist before publishing to NuGet.org

  • Test the MCP server locally using the steps below.
  • Update the package metadata in the .csproj file, in particular the <PackageId>.
  • Update .mcp/server.json to declare your MCP server's inputs.
  • Pack the project using dotnet pack.

The bin/Release directory will contain the package file (.nupkg), which can be published to NuGet.org.

Using the MCP Server in VS Code

Once the MCP server package is published to NuGet.org, you can use the following VS Code user configuration to download and install the MCP server package. See Use MCP servers in VS Code (Preview) for more information about using MCP servers in VS Code.

{
  "mcp": {
    "servers": {
      "Knapcode.SampleMcpServer": {
        "type": "stdio",
        "command": "dnx",
        "args": [
          "Knapcode.SampleMcpServer@0.4.0-beta",
          "--yes",
          "--",
          "mcp",
          "start"
        ],
        "env": {
          "WEATHER_CHOICES": "sunny,humid,freezing"
        }
      }
    }
  }
}

Now you can ask Copilot Chat for a random number, for example, Give me 3 random numbers. It should prompt you to use the get_random_number tool on the Knapcode.SampleMcpServer MCP server and show you the results.

Developing locally in VS Code

To test this MCP server from source code (locally) without using a built MCP server package, create a .vscode/mcp.json file (a VS Code workspace settings file) in your project directory and add the following configuration:

{
  "servers": {
    "Knapcode.SampleMcpServer": {
      "type": "stdio",
      "command": "dotnet",
      "args": [
        "run",
        "--project",
        "<RELATIVE PATH TO PROJECT DIRECTORY>",
        "--",
        "mcp",
        "start"
      ],
      "env": {
        "WEATHER_CHOICES": "sunny,humid,freezing"
      }
    }
  }
}

Alternatively, you can configure your VS Code user settings to use your local project:

{
  "mcp": {
    "servers": {
      "Knapcode.SampleMcpServer": {
        "type": "stdio",
        "command": "dotnet",
        "args": [
          "run",
          "--project",
          "<FULL PATH TO PROJECT DIRECTORY>"
          "--",
          "mcp",
          "start"
        ]
      },
      "env": {
        "WEATHER_CHOICES": "sunny,humid,freezing"
      }
    }
  }
}

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About com.joelverhagen.mcp/Knapcode.SampleMcpServer

How do I install com.joelverhagen.mcp/Knapcode.SampleMcpServer?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is com.joelverhagen.mcp/Knapcode.SampleMcpServer safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is com.joelverhagen.mcp/Knapcode.SampleMcpServer still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.