Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"programmatic-mcp-server": {
"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.
Programmatic MCP Server is a .NET library for building MCP servers that are meant to be used through generated code, not only through direct tool calls.
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 other
Pi Coding Agent extension (CLI-first) — routes bash/read/grep/find/ls through lean-ctx CLI for strong token savings. Optional MCP bridge can register advanced tools.
Apify MCP Server
97% token reduction for AI coding sessions — zero deps, 21 languages, MCP server
MCP proxy that compresses prose fields (tool descriptions, etc.) using caveman rules. Same accuracy, fewer context tokens.
MCP Security Weekly
Get CVE alerts and security updates for Programmatic Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Programmatic MCP Server is a .NET library for building MCP servers that are meant to be used through generated code, not only through direct tool calls.
The library is built around one idea: an agent should be able to discover a focused capability surface, generate code against that surface, run the code in a constrained runtime, and keep large intermediate results out of model context whenever possible.
The current implementation provides:
resources/list and resources/readJintTraditional MCP usage is tool-call-first: clients load tools, pick one, call it, and repeat. This repository supports a different model:
In this model, MCP is still the protocol, but the client experience is code-first.
At a high level, the implemented flow is:
initializetools/listresources/list and resources/read for read-only supplemental contextcapabilities.search to discover relevant capabilities/types when the client wants stronger code generation supportglobalThis.programmaticcode.executeprogrammatic.client.sample(...) inside explicitly scoped read-only executionsartifact.readmutation.list, mutation.apply, and mutation.cancelFor a fuller explanation of the execution model, artifact flow, approval flow, transport model, and supported scope, see docs/overview.md.
The repository currently ships three library packages and one sample server:
ProgrammaticMcp
Core abstractions, capability metadata, resource and sampling-tool registration, schema generation, hashing, approvals, artifacts, and shared contracts.ProgrammaticMcp.Jint
The Jint-backed execution runtime, generated namespace bootstrap including programmatic.client.sample(...), bridge logic, and runtime diagnostics.ProgrammaticMcp.AspNetCore
ASP.NET Core and C# MCP SDK integration, MCP tool and resource exposure, live sampling integration, caller binding, HTTP-specific behavior, and /types.samples/ProgrammaticMcp.SampleServer
A reference host used to prove the full loop end to end.Package-specific notes live under docs/packages.
The smallest useful host wires the builder, registers a read-only capability, and maps the MCP route:
using ProgrammaticMcp;
using ProgrammaticMcp.AspNetCore;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddProgrammaticMcpServer(options =>
{
options.Builder
.AddCapability<WeatherInput, WeatherResult>(
"weather.current",
capability => capability
.WithDescription("Returns the current weather.")
.UseWhen("You need a read-only weather lookup.")
... [View full README on GitHub](https://github.com/tonyredondo/programmatic-mcp-server#readme)