Skip to content

Guidance MCP server for coding agents ​

FacioQuo.Stock.Indicators.Guidance is a local MCP server that lets coding agents such as Claude Code and GitHub Copilot answer questions about the library from the documentation of the version your project restores, not from what the agent remembers: signatures, parameters, validation, results, warmup, C# examples, migration notes, and the guides. Each answer names its source.

Add it to your agent ​

The server needs the .NET 10 SDK or later, which provides the dnx command. Add it to .mcp.json at your repository root, which Claude Code, GitHub Copilot in VS Code, and the GitHub Copilot CLI all read:

json
{
  "mcpServers": {
    "stock-indicators-guidance": {
      "type": "stdio",
      "command": "dnx",
      "args": ["--yes", "FacioQuo.Stock.Indicators.Guidance"]
    }
  }
}
  • Other MCP clients take the same command and arguments. The server reads only the projects below the folder it starts in, so start it in your repository root; a client with a user-level configuration needs a working-folder setting such as cwd.
  • Keep --yes. It lets dnx download the tool without a prompt, which an agent's client can't answer.
  • On Windows, if your client can't start dnx, use "command": "dotnet" with "dnx" as the first argument.

Restore or build your project before you start your agent, and restart your agent's MCP server after a first restore or a library upgrade: the server reads your version from each project's obj/project.assets.json when it starts.

To check the setup, ask your agent to call get_library_version. It answers with the library version your project restores.

How it matches your version ​

The entry names no version and stays the same through library upgrades. It starts the latest server, which starts the server released with your version, through dotnet dnx from your own NuGet sources, and hands the session to it.

  • The first start for a version downloads its server, and your client waits for it. If your client gives up first, raise its MCP startup timeout.
  • When your projects restore different versions, the latest server answers for each one itself. Pass a tool's project argument to pick the project.
  • When your version's server doesn't start within two minutes, or doesn't exist because your version predates the server, the latest server answers for your version itself. The catalog, signatures, and XML docs still come from your restored package, and documentation pages from another release are reported missing. The server's log line starting Serving here: says why; a restart retries.

Pinning a version ​

An entry has no pinned version by default. A pin only saves the second download and process at start, and then needs an edit with each library upgrade: until the pin matches the version your project restores, that version's documentation pages are reported missing. To pin, name your version and pass --no-handoff:

json
"args": ["--yes", "[email protected]", "--no-handoff"]

Tools ​

ToolAnswers
get_library_versionThe version your project restores, the target frameworks it ships, and the source commit it was built from
find_indicatorsThat version's indicators, one line each, optionally filtered by id or name
describe_indicatorOne indicator for that version: signatures, parameters, validation, results, warmup, examples, and migration notes
read_guideThat version's guides: getting started, the Series, Buffer, and Stream styles, chaining, custom indicators, utilities, and migration

Each tool takes an optional project: a project file, solution, or folder below the workspace.

What to expect ​

  • Read-only. The tools read only the projects below the folder the server starts in, their restore output, and the restored package, and make no network calls. Only dnx, starting a server, reaches your NuGet sources.
  • It runs your package's code. It loads the restored library assembly to read its catalog, as a build of your project would, and only from NuGet's global packages folder (.nuget/packages in your home folder, or the folder NUGET_PACKAGES names), so a cloned repository can't plant a package for it to run. If your restore uses another folder, such as one a globalPackagesFolder setting names, set NUGET_PACKAGES to that folder in the server's environment, for example with an env entry in your client's MCP configuration.
  • It reads restore output only from obj/. A moved BaseIntermediateOutputPath or the artifacts output layout isn't searched, and the answer says so.
  • To run it without dnx, install it with dotnet tool install FacioQuo.Stock.Indicators.Guidance as a local or global tool and use the stock-indicators-guidance command in your entry. It hands off to your version's server the same way.