Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

MCP server
isb-ik
#1 Posted : Thursday, March 19, 2026 10:07:10 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/26/2016(UTC)
Posts: 5
Location: Germany

Was thanked: 1 time(s) in 1 post(s)
I use AI as a support tool. After each change the AI implements, it runs the relevant unit tests. However, ncrunch does the same thing in parallel. It would be helpful to have an ncrunch MCP server that the AI could query.
1 user thanked isb-ik for this useful post.
sumodev on 4/13/2026(UTC)
Remco
#2 Posted : Thursday, March 19, 2026 11:45:53 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,570

Thanks: 1035 times
Was thanked: 1389 time(s) in 1289 post(s)
isb-ik;18742 wrote:
I use AI as a support tool. After each change the AI implements, it runs the relevant unit tests. However, ncrunch does the same thing in parallel. It would be helpful to have an ncrunch MCP server that the AI could query.


Yes, I have been looking at this. Allowing AI to query NCrunch has much potential, especially with RDI.
1 user thanked Remco for this useful post.
sumodev on 4/13/2026(UTC)
GreenMoose
#3 Posted : Monday, March 30, 2026 2:34:12 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 511

Thanks: 149 times
Was thanked: 68 time(s) in 65 post(s)
Quote:
Allowing AI to query NCrunch has much potential

+1!
Nowadays it feels there is a big traction to "sell in" NCrunch internally with colleagues. I used to use NCrunch to demonstrate TDD, but nowadays when AI agents "can write" the tests for you trying to persuade devs to do "TDD manually" feels a bit outdated.

If one could let AI agents use NCrunch engine via MCP; Maybe we can get argue that this will result to even better code, e.g. better "TDD cycle" logic, easily add tests where code is missing coverage, troubleshoot test issues with help of the RDI etc., I think this would be a really big sellpoint.

I hope it happens :)
2 users thanked GreenMoose for this useful post.
Remco on 3/30/2026(UTC), sumodev on 4/13/2026(UTC)
arkiaconsulting
#4 Posted : Tuesday, April 21, 2026 7:35:49 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 11/30/2019(UTC)
Posts: 33
Location: France

Thanks: 8 times
Was thanked: 20 time(s) in 13 post(s)
That would be a MASSIVE +1 !!

Running tests the standard way is so slow. An agent that could benefit from NCrunch would greatly increase my productivity.

@Remco: need to expose some APIs for MCP to consume ?
Remco
#5 Posted : Tuesday, April 21, 2026 11:24:56 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,570

Thanks: 1035 times
Was thanked: 1389 time(s) in 1289 post(s)
Yes, in concept this isn't too complicated. NCrunch just needs to expose an MCP server containing the APIs that allow the agent to pull data directly from the engine, and give it basic instructions (i.e. run specific tests, etc).

Where I expect it will be more complicated is in finding sensible ways to represent the data so that the models can make sense of it. This is going to require trial and error to get right, but I'm excited about it.

When you consider how much of a productivity improvement we get from running tests continuously and working with features like RDI, it's reasonable to expect that an intelligent agent could see the same benefits. Building more reliable applications for a fraction of the tokens would be a big win.
1 user thanked Remco for this useful post.
talbrecht on 5/4/2026(UTC)
Magnus Lidbom
#6 Posted : Monday, June 29, 2026 11:28:18 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 8/30/2012(UTC)
Posts: 55

Thanks: 11 times
Was thanked: 11 time(s) in 11 post(s)
I came specifically to ask about NCrunch exposing an MCP server and found this post.
I can hardly tell you how much I want this. Even if it is far from perfect to start with, getting anything out there would probably be revolutionary when working with an agent.

I think a minimal, hugely useful, first release would only need something like this:

1. Current overall status. Number of tests per category [Detected, Successful, Pending, Failed]
2. List failed test.
3. Get the failure message for a specific failed test.

Important to me but probably not to most developers:
1. Enabling the agent to disambiguate by open solution path. (I often work in multiple git worktrees for the same solution at the same time....)

It would be fantastic if something like the above was to turn up!

Really hope this happens.
Remco
#7 Posted : Monday, June 29, 2026 11:58:30 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,570

Thanks: 1035 times
Was thanked: 1389 time(s) in 1289 post(s)
It's happening. Right now as I type this I have an OpenClaw agent adding tool methods to the MCP server. Using the NCrunch MCP server.

I underestimated this task though, both in its scope and its potential. An MCP server is actually a full blown API that harnesses the engine and allows an agent to use it the same as a user would in an IDE. When you think about what NCrunch offers (build system, test runner, metrics, in-memory solution model), it's actually pretty close to a full blown headless IDE. So an MCP server is actually about empowering an agent to work with a live executed in-memory solution, with ability to make code changes, examine build issues, run tests, read performance info and metrics, and even troubleshoot tests using RDI.

Current plan involves two runtime modes:

1. IDE integrated mode that exposes tools to an IDE-hosted agent (i.e. Copilot, JB AI assistant, etc) so that they can read things from NCrunch and steer it. I think this represents the original intention in this thread. It seems silly that an agent can't run tests with NCrunch or read their results. So this is basically a stdio based system that hooks into the existing NCrunch session.

2. Headless engine exposed via JSON HTTP RPC. A multi-session capable server that exposes MCP capabilities to an agent with the ability to connect to it. This is designed for server-hosted agents like OpenClaw and Hermes. They can talk direct with the MCP server, telling it to start an NCrunch engine session for a given solution file, then fully interact with that engine, telling it to run tests, reading full engine state (build issues, tasks, metrics, etc). No IDE required. Because the engine auto syncs with files on disk, the agent can freely develop the source code and the engine will continuously run tests. The agent can then poll the various APIs for info on when it breaks things. The server supports multiple engines running 24/7, so in theory you can have an always-on coding agent equipped with a script to automatically pull git changes. You could give it instructions to automatically review or refactor code as it gets committed, or run other tasks that involve using NCrunch for verification steps.

I have most of 2 already implemented. I still need to surface the tool methods to the IDE to make 1 a reality.

Current challenges include trying to explain to the agent that NCrunch is an engine, not a static test runner. It seems to want to treat it like 'dotnet test', when NCrunch needs to load a whole solution and build a bunch of stuff before it can even discover the tests and how to run them. It's getting better. My current coding agent has made this project a world easier. It's both exciting and rather strange to watch it improve its own capabilities through the MCP interface while it extends it.

Right now the source code is read only, and the agent can't change configuration. I think that both of those things will need to be configurable when they eventually get added, since there are clear trust limits with this sort of thing.

I also still need to figure out how to expose RDI data. I think I will do this in a later update.

It's hard to make promises on timeframes. I wanted this to be out as part of the 5.22 release, but the pending Rider 2026.2 release might force me to push 5.22 before the MCP system is fully production ready. It would also be nice if the first build is somewhat battle tested before everyone points their agents at it, since I have watched some remarkable stupidity happen around it too :) We'll have to see how it goes over the next week. Maybe 5.23 will be released shortly after 5.22.
1 user thanked Remco for this useful post.
GreenMoose on 7/16/2026(UTC)
Magnus Lidbom
#8 Posted : Monday, June 29, 2026 12:03:33 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 8/30/2012(UTC)
Posts: 55

Thanks: 11 times
Was thanked: 11 time(s) in 11 post(s)
That all sounds absolutely fantastic!

I can't wait to use it :)
1 user thanked Magnus Lidbom for this useful post.
Remco on 6/29/2026(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.155 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download