Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/skills/ci-for-your-solution/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Every solution starts with a simple pipeline that runs the commands in `AGENTS.m
| `dotnet new` | `.github/workflows/ci.yml` | Restore, format, build, test and the coverage gate |
| "Use this template" on GitHub | `.github/workflows/build-pipeline.yml`, the template's own | Format, build and test. The scans and the template's pack, verify and release jobs only run in the LeanMeanCleanApps organisation, and show as not run anywhere else |

The **Set up CI** guide for your template on the [Lean Mean Clean Apps docs site](https://leanmeancleanapps.github.io/) shows both, and links the template's full Build Pipeline as a worked example of every check below.
The **Set up CI** guide for your template on the [Lean Mean Clean Apps docs site](https://leanmeanclean.dev/) shows both, and links the template's full Build Pipeline as a worked example of every check below.

## Adding a check

Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/docs-and-voice/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
| --- | --- |
| A short introduction, install, the options table and links | `README.md` and `NUGET.md` (the package page) |
| Running the app, environments, database and tests | `docs/RUN.md`, which also ships in every generated solution |
| Full guides | The docs site, <https://leanmeancleanapps.github.io>, in the `leanmeancleanapps.github.io` repository, with a home page per template |
| Full guides | The docs site, <https://leanmeanclean.dev>, in the `leanmeancleanapps.github.io` repository, with a home page per template |
| How to contribute | `CONTRIBUTING.md` |
| How agents work here | `AGENTS.md` and `.agents/` |

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ body:

A few things first:
- Can't get as far as a working solution? The **Template creation problem** form asks the right questions for that.
- The [troubleshooting page](https://leanmeancleanapps.github.io/mcp/reference/troubleshooting/) covers the usual suspects. It's short, and it might save you a form.
- The [troubleshooting page](https://leanmeanclean.dev/mcp/reference/troubleshooting/) covers the usual suspects. It's short, and it might save you a form.
- Security vulnerabilities go through the [security policy](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol/security/policy), not a public issue.
- type: textarea
id: description
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/docs_problem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ body:
value: |
Thanks. Docs that are wrong are worse than no docs at all, because at least no docs don't lie to you.

Spotted a typo? A pull request is quicker than this form, and every page on the [docs site](https://leanmeancleanapps.github.io/mcp/) is fair game.
Spotted a typo? A pull request is quicker than this form, and every page on the [docs site](https://leanmeanclean.dev/mcp/) is fair game.
- type: input
id: location
attributes:
label: Where is it?
description: A link to the page or file, ideally to the heading.
placeholder: "https://leanmeancleanapps.github.io/mcp/..."
placeholder: "https://leanmeanclean.dev/mcp/..."
validations:
required: true
- type: dropdown
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/template_problem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ body:
value: |
Sorry. The first five minutes are meant to be the easy part.

Before you fill this in, try the two things that fix most of these: run `dotnet new uninstall CleanModelContextProtocol.Template` and install it again, and check `dotnet --version` against the SDK in the [README](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol#readme). The [troubleshooting page](https://leanmeancleanapps.github.io/mcp/reference/troubleshooting/) has the rest.
Before you fill this in, try the two things that fix most of these: run `dotnet new uninstall CleanModelContextProtocol.Template` and install it again, and check `dotnet --version` against the SDK in the [README](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol#readme). The [troubleshooting page](https://leanmeanclean.dev/mcp/reference/troubleshooting/) has the rest.
- type: dropdown
id: stage
attributes:
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Thanks for stopping by. Bug reports, ideas, documentation fixes and pull requests are all welcome, roughly in that order of how quickly they get a reply.

This is a [Lean Mean Clean Apps](https://leanmeancleanapps.github.io/) project, built and looked after in spare time with strong coffee and a healthy disregard for pomp and ceremony. The team is one person at the moment, so replies are best effort, and the fastest way to get something changed is to make it easy to say yes to. If you'd like to make it two people, pull requests are how that starts.
This is a [Lean Mean Clean Apps](https://leanmeanclean.dev/) project, built and looked after in spare time with strong coffee and a healthy disregard for pomp and ceremony. The team is one person at the moment, so replies are best effort, and the fastest way to get something changed is to make it easy to say yes to. If you'd like to make it two people, pull requests are how that starts.

## Before you start

Expand All @@ -13,7 +13,7 @@ This is a [Lean Mean Clean Apps](https://leanmeancleanapps.github.io/) project,

## One template in a family of five

This repository is one of five [Lean Mean Clean Apps](https://leanmeancleanapps.github.io/) templates that share everything except the Presentation layer:
This repository is one of five [Lean Mean Clean Apps](https://leanmeanclean.dev/) templates that share everything except the Presentation layer:

- [Clean Minimal API](https://github.com/LeanMeanCleanApps/CleanMinimalApi)
- [Clean Model Context Protocol](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol)
Expand Down
14 changes: 7 additions & 7 deletions NUGET.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

A `dotnet new` template for a [Model Context Protocol](https://modelcontextprotocol.io) server using the [MCP C# SDK](https://github.com/modelcontextprotocol/csharp-sdk) in .NET 10, built with a streamlined Clean Architecture. All the layers you need, none of the ceremony you don't.

It's one of five [Lean Mean Clean Apps](https://leanmeancleanapps.github.io/) templates, for Minimal APIs, Model Context Protocol, GraphQL, Web API controllers and AWS Lambda. They share the same Application and Infrastructure layers and differ only in how they face the world. The full docs live at [leanmeancleanapps.github.io/mcp](https://leanmeancleanapps.github.io/mcp/).
It's one of five [Lean Mean Clean Apps](https://leanmeanclean.dev/) templates, for Minimal APIs, Model Context Protocol, GraphQL, Web API controllers and AWS Lambda. They share the same Application and Infrastructure layers and differ only in how they face the world. The full docs live at [leanmeanclean.dev/mcp](https://leanmeanclean.dev/mcp/).

| Template | Presentation | Package | Docs |
| --- | --- | --- | --- |
| Clean Minimal API | ASP.NET Core Minimal APIs | [CleanMinimalApi.Template](https://www.nuget.org/packages/CleanMinimalApi.Template) | [Docs](https://leanmeancleanapps.github.io/minimalapi/) |
| **Clean Model Context Protocol** | Model Context Protocol server, you are here | [CleanModelContextProtocol.Template](https://www.nuget.org/packages/CleanModelContextProtocol.Template) | [Docs](https://leanmeancleanapps.github.io/mcp/) |
| Clean GraphQL API | GraphQL with Hot Chocolate | [CleanGraphQLApi.Template](https://www.nuget.org/packages/CleanGraphQLApi.Template) | [Docs](https://leanmeancleanapps.github.io/graphql/) |
| Clean Web API | ASP.NET Core controllers | [CleanWebApi.Template](https://www.nuget.org/packages/CleanWebApi.Template) | [Docs](https://leanmeancleanapps.github.io/webapi/) |
| Clean Lambda Function | AWS Lambda | [CleanLambdaFunction.Template](https://www.nuget.org/packages/CleanLambdaFunction.Template) | [Docs](https://leanmeancleanapps.github.io/lambda/) |
| Clean Minimal API | ASP.NET Core Minimal APIs | [CleanMinimalApi.Template](https://www.nuget.org/packages/CleanMinimalApi.Template) | [Docs](https://leanmeanclean.dev/minimalapi/) |
| **Clean Model Context Protocol** | Model Context Protocol server, you are here | [CleanModelContextProtocol.Template](https://www.nuget.org/packages/CleanModelContextProtocol.Template) | [Docs](https://leanmeanclean.dev/mcp/) |
| Clean GraphQL API | GraphQL with Hot Chocolate | [CleanGraphQLApi.Template](https://www.nuget.org/packages/CleanGraphQLApi.Template) | [Docs](https://leanmeanclean.dev/graphql/) |
| Clean Web API | ASP.NET Core controllers | [CleanWebApi.Template](https://www.nuget.org/packages/CleanWebApi.Template) | [Docs](https://leanmeanclean.dev/webapi/) |
| Clean Lambda Function | AWS Lambda | [CleanLambdaFunction.Template](https://www.nuget.org/packages/CleanLambdaFunction.Template) | [Docs](https://leanmeanclean.dev/lambda/) |

## Get started

Expand Down Expand Up @@ -70,7 +70,7 @@ dotnet new update

## More help

- [Docs](https://leanmeancleanapps.github.io/mcp/) for guides, a reference and why it's built this way
- [Docs](https://leanmeanclean.dev/mcp/) for guides, a reference and why it's built this way
- [GitHub](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol) for the code, [issues](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol/issues) and [release notes](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol/releases)
- [Security policy](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol/security/policy) to report a vulnerability privately

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Clean Model Context Protocol](https://raw.githubusercontent.com/LeanMeanCleanApps/brand/main/assets/banners/png/mcp.png)](https://leanmeancleanapps.github.io/mcp/)
[![Clean Model Context Protocol](https://raw.githubusercontent.com/LeanMeanCleanApps/brand/main/assets/banners/png/mcp.png)](https://leanmeanclean.dev/mcp/)

[![Build Pipeline](https://img.shields.io/github/actions/workflow/status/LeanMeanCleanApps/CleanModelContextProtocol/build-pipeline.yml?branch=main&label=Build%20Pipeline&logo=github&style=for-the-badge)](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol/actions/workflows/build-pipeline.yml)
[![NuGet](https://img.shields.io/nuget/v/CleanModelContextProtocol.Template?label=NuGet&logo=nuget&logoColor=white&style=for-the-badge)](https://www.nuget.org/packages/CleanModelContextProtocol.Template)
Expand All @@ -7,9 +7,9 @@

A `dotnet new` template for a [Model Context Protocol](https://modelcontextprotocol.io) server using the [MCP C# SDK](https://github.com/modelcontextprotocol/csharp-sdk) in .NET 10, built with a streamlined Clean Architecture. All the layers you need, none of the ceremony you don't.

It's one of five [Lean Mean Clean Apps](https://leanmeancleanapps.github.io/) templates. They share the same Application and Infrastructure layers and differ only in how they face the world. Same genes, different haircuts.
It's one of five [Lean Mean Clean Apps](https://leanmeanclean.dev/) templates. They share the same Application and Infrastructure layers and differ only in how they face the world. Same genes, different haircuts.

The guides, the reference and the reasoning behind every opinion live at **[leanmeancleanapps.github.io/mcp](https://leanmeancleanapps.github.io/mcp/)**. This is the version for people who skim. We see you.
The guides, the reference and the reasoning behind every opinion live at **[leanmeanclean.dev/mcp](https://leanmeanclean.dev/mcp/)**. This is the version for people who skim. We see you.

## Get started

Expand Down Expand Up @@ -93,7 +93,7 @@ There are six tools shaped around jobs rather than tables: `movies_search`, `mov

No Docker? `dotnet run --project src/Presentation` works too. Every other way to run it, from plain `docker run` to stamping a version into the image, is in [docs/RUN.md](docs/RUN.md).

The server is open unless you ask for authentication. Create the solution with `--include-auth --authority https://login.example.com --audience https://mcp.example.com` and `/mcp` asks for a bearer token, and the server publishes [protected resource metadata](https://modelcontextprotocol.io/specification/latest/basic/authorization) so MCP clients can find your authorization server and sign in by themselves. Leave `--include-auth` out and there's no authentication code in the solution at all, so there's nothing to leave switched off by accident. [Securing the server](https://leanmeancleanapps.github.io/mcp/guides/secure-the-server/) has the details, including how to add it later.
The server is open unless you ask for authentication. Create the solution with `--include-auth --authority https://login.example.com --audience https://mcp.example.com` and `/mcp` asks for a bearer token, and the server publishes [protected resource metadata](https://modelcontextprotocol.io/specification/latest/basic/authorization) so MCP clients can find your authorization server and sign in by themselves. Leave `--include-auth` out and there's no authentication code in the solution at all, so there's nothing to leave switched off by accident. [Securing the server](https://leanmeanclean.dev/mcp/guides/secure-the-server/) has the details, including how to add it later.

## What's inside

Expand All @@ -115,7 +115,7 @@ And around the edges:
- **The pipeline** builds, checks formatting, tests with a 95% coverage bar, makes sure the packed template still works, runs [CodeQL](https://codeql.github.com), reviews new dependencies and their licences, starts the image to check it actually answers, and scans the container and Dockerfile with [Trivy](https://trivy.dev). Then it sums the lot up in one comment on your pull request, so you know exactly who to blame. Your copy, or a solution from `dotnet new`, gets the format check, build and tests with no accounts, tokens or secrets, so it goes green the moment you push it. The scans stay switched off outside our organisation until you want them, and Jacques can switch them on with you. Trust is earned.
- **Dependabot** bundles the month's dependency updates into one pull request on the 15th.

The [architecture page](https://leanmeancleanapps.github.io/mcp/explanation/architecture/) has the long version, with full credit to [Jason Taylor's template](https://github.com/jasontaylordev/CleanArchitecture) and [Uncle Bob](https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html) for the ideas.
The [architecture page](https://leanmeanclean.dev/mcp/explanation/architecture/) has the long version, with full credit to [Jason Taylor's template](https://github.com/jasontaylordev/CleanArchitecture) and [Uncle Bob](https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html) for the ideas.

## Releases

Expand Down
4 changes: 2 additions & 2 deletions SUPPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

## Getting help

- **Using the template:** start with the [docs site](https://leanmeancleanapps.github.io/mcp/) and its [troubleshooting page](https://leanmeancleanapps.github.io/mcp/reference/troubleshooting/), then the [README](README.md) and [docs/RUN.md](docs/RUN.md). They're long because they answer the questions people actually ask.
- **Using the template:** start with the [docs site](https://leanmeanclean.dev/mcp/) and its [troubleshooting page](https://leanmeanclean.dev/mcp/reference/troubleshooting/), then the [README](README.md) and [docs/RUN.md](docs/RUN.md). They're long because they answer the questions people actually ask.
- **Can't get the template installed, or a new solution to build or run?** Open a [template creation problem](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol/issues/new?template=template_problem.yml).
- **Found a bug?** Open a [bug report](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol/issues/new?template=bug_report.yml). A clear title and a way to reproduce it will get you a faster answer than a long story.
- **Docs wrong, missing or out of date?** Open a [docs problem](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol/issues/new?template=docs_problem.yml), or just send a pull request.
- **Have an idea?** Open a [feature request](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol/issues/new?template=feature_request.yml).
- **Found a security vulnerability?** Don't open an issue. Follow the [security policy](SECURITY.md).

This is a [Lean Mean Clean Apps](https://leanmeancleanapps.github.io/) project, looked after in spare time by a team that is currently one person with a day job and a coffee habit, so responses are best effort. They do arrive.
This is a [Lean Mean Clean Apps](https://leanmeanclean.dev/) project, looked after in spare time by a team that is currently one person with a day job and a coffee habit, so responses are best effort. They do arrive.

## Supporting the project

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public static WebApplicationBuilder ConfigureApplicationBuilder(this WebApplicat
Version = assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? string.Empty,
// The docs site and a pinned brand release, not this repository: dotnet new renames the
// template's name wherever it appears, so repository links break in a new solution.
WebsiteUrl = "https://leanmeancleanapps.github.io/mcp/",
WebsiteUrl = "https://leanmeanclean.dev/mcp/",
Icons =
[
new()
Expand Down
2 changes: 1 addition & 1 deletion template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ See [docs/RUN.md](docs/RUN.md) for the ports, the database and its migrations, t
## Docs and coding agents

- [AGENTS.md](AGENTS.md): architecture rules, project map and the skills in `.agents/skills/` for coding agents.
- [Template documentation](https://leanmeancleanapps.github.io/mcp/): guides, reference pages and design decisions.
- [Template documentation](https://leanmeanclean.dev/mcp/): guides, reference pages and design decisions.
2 changes: 1 addition & 1 deletion template/template.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Authors>Stephen Walsh</Authors>
<Description>A dotnet new template for a Model Context Protocol server using the MCP C# SDK, built with a streamlined Clean Architecture on .NET 10.</Description>
<PackageTags>dotnet;csharp;dotnet-template;template;clean-architecture;cqrs;mediator;fluentvalidation;mapperly;entity-framework-core;docker;mcp;model-context-protocol;mcp-server;clean;cleanarchitecture;lmc;lmca;leanmeanclean;leanmeancleanapps;project-template;solution-template;net10;dotnet10;sqlite;efcore;serilog;opentelemetry;modelcontextprotocol;mcp-tools;ai;ai-agents;agents;llm</PackageTags>
<PackageProjectUrl>https://leanmeancleanapps.github.io/mcp/</PackageProjectUrl>
<PackageProjectUrl>https://leanmeanclean.dev/mcp/</PackageProjectUrl>
<RepositoryUrl>https://github.com/LeanMeanCleanApps/CleanModelContextProtocol</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageLicenseFile>docs/LICENSE.md</PackageLicenseFile>
Expand Down
Loading