Built for AI-assisted development
Coding agents work best with a fast, strict feedback loop, and the C# compiler is one. Hallucinated
members, wrong argument types and a client that's out of step with the server all fail
dotnet build, so they never reach a browser.
- Models have seen a huge amount of C#, and the code they write is checked by a compiler they can run.
- A full feature fits in one context: the record, the endpoint and the UI that uses it, all in one language.
- Typed bindings mean an agent can only call JavaScript APIs that actually exist, and our binding skill lets it generate new ones.
- Every
dotnet newtemplate ships anAGENTS.mdand agent skills, so your agent knows the project's conventions from the first prompt.
// agent: "add paging to product search"
agent › edit Client.cs
await Remoting.Search(query, page)
$ dotnet build
error CS1501: No overload for method
'Search' takes 2 arguments
Client.cs(14,25)
agent › edit Remoting.cs
[Remote] Search(string query, int page)
$ dotnet build
Build succeeded. Server and client agree.
Your agent can ask the compiler
dotnet ws mcp connects coding agents to the
WebSharper Booster over MCP.
Instead of guessing, the agent can look up what your last build reported, how a member translates to JavaScript and which RPC methods the server exposes.
Booster Pro adds
get_signature: exact C# signatures from your project and
its references, with a warning when a .NET API has no JavaScript translation, so the agent doesn't write client code that can't compile.
// .mcp.json
{
"mcpServers": {
"websharper-csharp": {
"command": "dotnet",
"args": ["ws", "mcp",
"--lang", "csharp"]
}
}
}
Needs WebSharper 11 and the dotnet-ws tool. Build once to start the Booster and give it something to answer about.