
NOC.McpServer
io.github.mr-rahulmauryaPublished by GitHub account mr-rahulmauryav1.0.6Updated Oct 26, 2026
MCP server exposing NiceOneCode's JSON-to-C# converter as an AI-callable tool.
Overview
Local MCP server that lets an assistant convert a JSON sample into C# class definitions using NiceOneCode's converter.
- What you can do
- Convert JSON to C# classes: send a JSON sample to the json_to_c_sharp tool and get back equivalent C# class definitions generated by NiceOneCode's converter.
- Authenticate automatically: the server logs in to the NiceOneCode account on first use, caches the JWT and re-authenticates when it expires.
- When to use it
- Useful when you want an assistant to turn JSON payloads, API responses or config samples into C# model classes without pasting them into a web form by hand.
- Requirements
- Runs as a local stdio process installed from NuGet (dotnet tool install -g NOC.McpServer, giving the noc-mcp command). Needs the .NET 9 SDK or later, or the .NET 10 SDK to run it on demand with dnx. Requires a NiceOneCode account, supplied through the NOC_USERID and NOC_PASSWORD environment variables, and network access to the NiceOneCode service.
Installation
In SourceWeft
- Open NOC.McpServer in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
NOC.McpServer
An MCP (Model Context Protocol) server that exposes NiceOneCode's JSON → C# class converter as a tool AI assistants can call directly — no more pasting JSON into a web form.
Built with the official ModelContextProtocol C# SDK, running over stdio transport. Published on NuGet.org under the McpServer package type.
What it does
Exposes a single tool, json_to_c_sharp, which takes a JSON sample and returns the equivalent C# class definitions, generated by NiceOneCode's converter.
Authentication is handled transparently: the server logs in to your NiceOneCode account on first use, caches the JWT, and automatically re-authenticates if it expires.
Prerequisites
- A NiceOneCode account (userid + password)
- .NET 9 SDK or later, to install/run the tool
- .NET 10 SDK if you want to use
dnx(VS Code, one-shot execution) instead of a persistent install - .NET 9 SDK specifically if building from source
Creating an Account
If you don't already have a NiceOneCode account, you can register one via API:
Important: the response body is a plain string, not a JSON object — for example:
Use this returned value as NOC_USERID (not necessarily assumed to always match the UserName you submitted — always use the value the API actually returns, rather than the value you sent).
Install
This gives you the noc-mcp command, used in every client config below.
Configuration
The server reads two required environment variables:
Never commit real credentials. Set them via your MCP client's config (see below) or your local shell environment.
Connecting to an MCP client
Claude Desktop
Edit claude_desktop_config.json (Windows: %APPDATA%\Claude\claude_desktop_config.json, macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
Fully quit and reopen Claude Desktop after editing.
Claude Code
Verify with claude mcp list.
Codex
Verify inside a session with /mcp.
VS Code
Add to .vscode/mcp.json in your workspace, or your global VS Code MCP settings:
VS Code will prompt for your userid and password the first time the server starts. Requires the .NET 10 SDK for dnx, which downloads and runs the latest published version on demand — no separate install step needed. Pin a specific version with "[email protected]" instead of "NOC.McpServer" if you want reproducible behavior rather than always-latest.
Note: a global.json in your working directory pinning an SDK below .NET 10 will cause dnx to fail with a confusing "unrecognized argument" error rather than a clear version mismatch — check for one if this happens.
Gemini CLI
Edit ~/.gemini/settings.json (global) or .gemini/settings.json (project-specific):
Restart Gemini CLI, then run /mcp to confirm it's connected.
Windows note: if the server fails to start directly, wrap it through cmd:
Windsurf
Edit ~/.codeium/windsurf/mcp_config.json (macOS/Linux) or %USERPROFILE%\.codeium\windsurf\mcp_config.json (Windows), or open it via the MCPs icon in the Cascade panel → Configure:
Fully quit and reopen Windsurf after saving.
Devin
Devin (cloud): Settings → Connections → MCP servers → Add a custom MCP:
Devin for Terminal: add to .devin/config.json:
Devin Desktop shares Windsurf's mcp_config.json — no separate setup needed if already configured above.
Building from source
If you'd rather build locally instead of installing from NuGet:
Then point any client above at the compiled DLL instead of noc-mcp, e.g. for Claude Desktop:
Use forward slashes in the path even on Windows. The same substitution (dotnet + DLL path in place of noc-mcp) applies to any client config in this README.
Testing locally with the MCP Inspector
This opens a browser UI where you can invoke json_to_c_sharp manually and inspect the raw request/response. Set your credentials under the Inspector's Environment Variables panel before connecting.
Project structure
Source: README.md at commit 0da867e
Tools
0Version history
1- v1.0.6LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts