1. Conduid
  2. Search
  3. ProjectDocsServer
MCP server · Search

ProjectDocsServer

Example implementation of an MCP server that uses MCP resources

Unclaimed last commit 11 months ago search
34Low

Scored 6 months ago · breakdown

About ProjectDocsServer

ProjectDocsServer is an MCP server published by wullemsb in the Search category: example implementation of an MCP server that uses MCP resources.

The repository has 2 stars and 0 forks, with the last commit 11 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/wullemsb/ProjectDocsServer

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 ProjectDocsServer

Powered by Claude · Grounded in docs

I know everything about ProjectDocsServer. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

# ProjectDocsServer

A Model Context Protocol (MCP) server that exposes project documentation and resources through a standardized protocol. This server demonstrates how to create an MCP server using .NET 9 and C# that provides various types of resources including static content, dynamic file access, project statistics, and progress-reporting operations.

What is MCP?

The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). This project implements an MCP server that exposes project-related resources that can be consumed by MCP clients.

Features

This MCP server exposes the following resources:

  • project://readme - Returns the project README content
  • project://config - Returns project configuration as JSON
  • project://file/{path} - Returns the content of a file at the specified path (with security restrictions)
  • project://logs/{date} - Returns application logs for a specific date (yyyy-MM-dd format)
  • project://files/list - Returns a list of all files in the project
  • project://stats - Returns project statistics (file counts, size, timestamp)
  • project://analyze - Performs deep analysis of the project with progress reporting
  • project://diagram - Returns a project architecture diagram (PNG image)

Technology Stack

  • .NET 9.0 - Target framework
  • C# 13.0 - Programming language
  • ModelContextProtocol (v0.4.1-preview.1) - Core MCP protocol implementation
  • ModelContextProtocol.AspNetCore (v0.4.1-preview.1) - ASP.NET Core integration
  • Microsoft.Extensions.Hosting - Host builder and dependency injection

Project Structure

ProjectDocsServer/
├── Program.cs              # Entry point and MCP server configuration
├── ProjectResource.cs      # Resource implementations
├── ProjectDocsServer.csproj # Project file
└── README.md              # This file

Building the Project

dotnet build

Running the Server

dotnet run

The server runs using STDIO transport, which means it communicates through standard input/output. All logging is directed to stderr to avoid interfering with the MCP protocol communication.

Testing with Model Context Inspector

The Model Context Inspector is a developer tool for testing and debugging MCP servers. Here's how to test this server:

Installation

Install the Model Context Inspector globally:

npm install -g @modelcontextprotocol/inspector

Testing the Server

  1. Start the Inspector:
npx @modelcontextprotocol/inspector dotnet run
  1. Configure the Server Connection:

In the Inspector UI, add your server configuration:

{
  "command": "dotnet",
  "args": ["run", "--project", "path/to/ProjectDocsServer/ProjectDocsServer.csproj"]
}

Or if you've already built the project:

{
  "command": "dotnet",
  "args": ["path/to/ProjectDocsServer/bin/Debug/net9.0/ProjectDocsServer.dll"]
}
  1. Connect to the Server:

Click "Connect" in the Inspector interface. You should see the server initialize and the available resources listed.

Testing Resources

Once connected, you can test each resource:

Test Static Resources

  • README: Request project://readme to get the project documentation
  • Config: Request project://config to get configuration JSON
  • Stats: Request project://stats to get project statistics

Test Dynamic Resources

  • File Access: Request project://file/Program.cs to read the Program.cs file
  • Logs: Request project://logs/2024-01-15 to get logs for January 15, 2024
  • File List: Request project://files/list to see all project files

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

Questions

About ProjectDocsServer

How do I install ProjectDocsServer?

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

Is ProjectDocsServer 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 ProjectDocsServer still maintained?

The last commit was 11 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.