roslyn-codelens-mcp
Roslyn-based MCP server that gives AI agents deep semantic understanding of .NET codebases — navigation, call graphs, diagnostics, refactoring, code-quality auditing, test intelligence, and IL inspection.
npm · fingerprint de8c7f6b0f8c31c1b1d523de · repository · RSS
What changed
Changed 2026-12-03 07:10 UTC
2 descriptions rewritten.
--- pinned/find_async_violations +++ observed/find_async_violations { - "description": "Detect six classes of async/await misuse across all production projects: sync-over-async (.Result, .Wait*, GetAwaiter().GetResult()), async void outside event handlers, missing await in async methods, and fire-and-forget tasks. Returns a summary plus a per-violation list (severity error/warning, location, containing method, snippet). Skips test projects and generated code. Static analysis only — no fix suggestions. A .Result or GetResult() read is skipped only when the tool recognizes a completion check on the same local, parameter or field (IsCompleted, IsCompletedSuccessfully, Status == RanToCompletion) and can show the receiver is not replaced before the read. The match is conservative: a guarded read it cannot prove safe is still reported. It does not track other threads, unsafe code, reflection, Unsafe or MemoryMarshal: a task replaced that way between the check and the read is not seen. A completion check never skips .Wait().", + "description": "Detect six classes of async/await misuse across all production projects: sync-over-async (.Result, .Wait*, GetAwaiter().GetResult()), async void outside event handlers, missing await in async methods, and fire-and-forget tasks. Returns a summary plus a per-violation list (severity error/warning, location, containing method, snippet). Skips test projects and generated code. Static analysis only — no fix suggestions. A .Result, .Wait(...) or GetResult() read is skipped when the tool can show its task is the completed antecedent of the framework's Task.ContinueWith: the continuation's first parameter, or that of a private method or local function that receives only such antecedents. That match is conservative: an antecedent read it cannot prove, for example through an awaiter local, a parameter that is written, or a helper that is not private, gets no exemption. Apart from a recognized antecedent read, a .Result or GetResult() read is skipped only when the tool recognizes a completion check on the same local, parameter or field (IsCompleted, IsCompletedSuccessfully, Status == RanToCompletion) and can show the receiver is not replaced before the read. The match is conservative: a guarded read it cannot prove safe is still reported. It does not track other threads, unsafe code, reflection, Unsafe or MemoryMarshal: a task replaced that way between the check and the read is not seen. A completion check never skips .Wait().", "inputSchema": { "properties": { "solution": {
--- pinned/find_disposable_misuse +++ observed/find_disposable_misuse { - "description": "Detect IDisposable / IAsyncDisposable instances at risk of leaking. Two patterns: local variables holding a disposable that aren't wrapped in using/await using/returned/assigned-to-field-or-out-parameter (warning), and bare-expression-statement discards of a disposable creator/factory (error). Returns a summary plus a per-violation list (severity error/warning, location, containing method, snippet). Skips test projects and generated code. Tasks are not reported, generic and derived ones included, since a task needs no disposing. Scope: methods only (not constructors/accessors/operators); ownership transfer via method/constructor argument is not detected. Static analysis only — no fix suggestions.", + "description": "Detect IDisposable / IAsyncDisposable instances at risk of leaking. Patterns: local variables holding a disposable the method created (by new or a method call, also through ?:, ??, switch, ?. or await, where at least one arm creates a value and each other arm creates one or yields null, default or throw) that aren't wrapped in using/await using/returned/assigned-to-field-or-out-parameter, or disposed by Dispose(), DisposeAsync(), ?.Dispose(), using (x) or await using of x.ConfigureAwait(false), also as the only statement of an if with no else on `x != null`, `x is not null` or `x is {}`, or of each branch of an if with an else, on every path: in a later statement of the same block or switch section, or in the finally of one, with no return, throw, jump, yield or reassignment before it (DisposableNotDisposed, warning); bare-expression-statement discards of a disposable creator/factory (DisposableDiscarded, error); and created values passed to a constructor whose result is itself returned by the method, not by a lambda or query clause in it, stored in a field, property, element or out parameter of something that outlives the method (a local does when it may hold an object the method did not create, or holds one that itself outlives the method, after `var b = a;` through either local; a field of a struct local does when the local is returned, stored or disposed after the store, and a field of a by-value struct parameter never does), disposed, or put in an array, collection, tuple or initialized object of which that holds, before any reassignment; `x = new BufferedStream(x)` keeps the link (OwnershipTransferred, info: the wrapper may have been told to leave it open). A local read from a field, property, element or parameter is not reported, nor one taken out of such a location by Interlocked.Exchange/CompareExchange, or stored into one that outlives the method by Interlocked.Exchange, or by a CompareExchange of the form `if (Interlocked.CompareExchange(ref _x, s, null) != null) s.Dispose();`. A lambda or Dispose method group that disposes or returns the local releases it when the delegate is returned or stored and the local is not written again. Returns a summary plus a per-violation list (severity error/warning/info, location, containing method, snippet). Skips test projects and generated code. Tasks are not reported, generic and derived ones included, since a task needs no disposing. A value of a generic type parameter counts as disposable when one of its constraints does, and as a task when one of them is a task. Scope: methods only (not constructors/accessors/operators); ownership transfer via a method argument is not detected, except to a call or user-defined conversion whose result, or awaited result, can hold it (not void, a string, a scalar, nullable or not, or an array of those, at any depth) and is returned or stored, a fluent call on it, one returning its own type, included; a hand-off to a wrapper on only some paths still counts. Static analysis only — no fix suggestions.", "inputSchema": { "properties": { "solution": {
Changed 2026-12-02 02:11 UTC
2 descriptions rewritten.
--- pinned/find_async_violations +++ observed/find_async_violations { - "description": "Detect six classes of async/await misuse across all production projects: sync-over-async (.Result, .Wait*, GetAwaiter().GetResult()), async void outside event handlers, missing await in async methods, and fire-and-forget tasks. Returns a summary plus a per-violation list (severity error/warning, location, containing method, snippet). Skips test projects and generated code. Static analysis only — no fix suggestions.", + "description": "Detect six classes of async/await misuse across all production projects: sync-over-async (.Result, .Wait*, GetAwaiter().GetResult()), async void outside event handlers, missing await in async methods, and fire-and-forget tasks. Returns a summary plus a per-violation list (severity error/warning, location, containing method, snippet). Skips test projects and generated code. Static analysis only — no fix suggestions. A .Result or GetResult() read is skipped only when the tool recognizes a completion check on the same local, parameter or field (IsCompleted, IsCompletedSuccessfully, Status == RanToCompletion) and can show the receiver is not replaced before the read. The match is conservative: a guarded read it cannot prove safe is still reported. It does not track other threads, unsafe code, reflection, Unsafe or MemoryMarshal: a task replaced that way between the check and the read is not seen. A completion check never skips .Wait().", "inputSchema": { "properties": { "solution": {
--- pinned/find_unused_symbols +++ observed/find_unused_symbols { - "description": "Find potentially unused types and members (dead code detection). Checks public symbols for references across the solution. Filters out test methods, MCP tools, source-generator output, MEF-composed services, and interop-laid-out fields. Returns an envelope with items, totalCount, truncated, limit (default 500), and a summary including byKind + filteredOut counts.", + "description": "Find potentially unused types and members (dead code detection). Checks public symbols for references across the solution. Filters out test methods, MCP tools, source-generator output, MEF-composed services, interop-laid-out fields, and BenchmarkDotNet entry points. Returns an envelope with items, totalCount, truncated, limit (default 500), and a summary including byKind + filteredOut counts.", "inputSchema": { "properties": { "includeInternal": {
Changed 2026-11-30 19:08 UTC
2 descriptions rewritten.
--- pinned/find_disposable_misuse +++ observed/find_disposable_misuse { - "description": "Detect IDisposable / IAsyncDisposable instances at risk of leaking. Two patterns: local variables holding a disposable that aren't wrapped in using/await using/returned/assigned-to-field-or-out-parameter (warning), and bare-expression-statement discards of a disposable creator/factory (error). Returns a summary plus a per-violation list (severity error/warning, location, containing method, snippet). Skips test projects and generated code. Scope: methods only (not constructors/accessors/operators); ownership transfer via method/constructor argument is not detected. Static analysis only — no fix suggestions.", + "description": "Detect IDisposable / IAsyncDisposable instances at risk of leaking. Two patterns: local variables holding a disposable that aren't wrapped in using/await using/returned/assigned-to-field-or-out-parameter (warning), and bare-expression-statement discards of a disposable creator/factory (error). Returns a summary plus a per-violation list (severity error/warning, location, containing method, snippet). Skips test projects and generated code. Tasks are not reported, generic and derived ones included, since a task needs no disposing. Scope: methods only (not constructors/accessors/operators); ownership transfer via method/constructor argument is not detected. Static analysis only — no fix suggestions.", "inputSchema": { "properties": { "solution": {
--- pinned/find_tests_for_symbol +++ observed/find_tests_for_symbol { - "description": "List test methods that exercise the given production symbol. Recognises xUnit, NUnit, and MSTest. Set transitive=true to follow helper methods up to maxDepth levels (default 3, max 5).", + "description": "List test methods that exercise the given production symbol. Recognises xUnit, NUnit, and MSTest. Set transitive=true to follow helper methods up to maxDepth levels (default 3, max 5). Calls through an interface member the symbol implements or a base member it overrides count too. A test has viaDispatch=true when every route found from it to the symbol passes through such a call, because it then runs the symbol only when the runtime type is the symbol's type. viaDispatch=false means at least one route binds directly at every call; in transitive mode that route may go through a helper, also for a test listed as direct, and a transitive test's callChain shows it.", "inputSchema": { "properties": { "maxDepth": {
Changed 2026-11-29 15:39 UTC
1 description rewritten.
--- pinned/get_project_health +++ observed/get_project_health { - "description": "Aggregate 7 health dimensions per project in one call: complexity hotspots, large classes, naming violations, unused symbols, reflection usage, async violations, and disposable misuse. Returns counts per dimension plus the top-N hotspots inline (default 5) so the caller can prioritise without follow-up calls. Use this when answering 'how is this project doing?' / 'where should I focus?' / 'what's the technical debt picture?'. Underlying defaults: complexity threshold 10, large-class limits 20 members / 500 lines, unused symbols excludes internals. Test projects are skipped. Project filter is case-insensitive. Sort: projects ASC by name; hotspots sorted by severity proxy per dimension (cyclomatic complexity desc, line count desc, severity enum desc for async/disposable).", + "description": "Aggregate 7 health dimensions per project in one call: complexity hotspots, large classes, naming violations, unused symbols, reflection usage, async violations, and disposable misuse. Returns counts per dimension plus the top-N hotspots inline (default 5) so the caller can prioritise without follow-up calls. Use this when answering 'how is this project doing?' / 'where should I focus?' / 'what's the technical debt picture?'. Underlying defaults: complexity threshold 10, large-class limits 20 members / 500 lines, unused symbols excludes internals. Test projects are skipped. Project filter is case-insensitive. Sort: projects ASC by name; hotspots sorted by severity proxy per dimension (cyclomatic complexity desc, line count desc, errors before warnings for async/disposable).", "inputSchema": { "properties": { "hotspotsPerDimension": {
Changed 2026-11-28 15:43 UTC
2 descriptions rewritten, 59 schema or annotation changes with the description left byte-identical.
--- pinned/analyze_change_impact +++ observed/analyze_change_impact { "description": "Analyze the blast radius of changing a symbol — shows every file, project, and call site affected. Combines find_references and find_callers into a single impact summary. Use before renaming, changing signatures, or removing a type/method.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "Symbol name to analyze (type name, 'Type.Method', etc.)", "type": "string"
--- pinned/analyze_control_flow +++ observed/analyze_control_flow { "description": "Analyze control flow within a range of statements in a C# method. Returns reachability of start/end points, return statements, and exit points. Useful for detecting unreachable code and understanding branching.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "startLine": { "description": "First line of the statement range (1-based)", "type": "integer"
--- pinned/analyze_data_flow +++ observed/analyze_data_flow { "description": "Analyze data flow within a range of statements in a C# method. Returns variables declared, read, written, captured by lambdas, and flowing in/out of the region. Useful for understanding variable lifecycle before extracting code.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "startLine": { "description": "First line of the statement range (1-based)", "type": "integer"
--- pinned/analyze_method +++ observed/analyze_method { "description": "Get a comprehensive analysis of a method in one call: signature, location, all callers, and all outgoing calls (methods this method invokes). More efficient than calling find_callers separately.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "Method symbol (e.g. 'Greeter.Greet' or 'MyNamespace.MyClass.MyMethod')", "type": "string"
--- pinned/apply_code_action +++ observed/apply_code_action { "description": "Apply a code action (refactoring or fix) by its title. Use get_code_actions first to discover available actions. Defaults to preview mode (returns diff without writing files). Set preview=false to apply changes to disk.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "required": [
--- pinned/change_signature +++ observed/change_signature { "description": "Add, remove, or reorder a method's or constructor's parameters and update every call site (Roslyn's own change-signature engine). A type name or `Type.Type` targets the type's primary constructor (positional record, record struct, or C# 12 class/struct parameter list), else its only constructor declared in source; several constructors and no primary one is ambiguous. For a positional record, `Warnings` lists what the engine does not rewrite: removed generated properties with their references, deconstructions and positional patterns that bind by position (a reorder of two same-typed parameters still compiles but binds the other value), and string literals or serialized names; read it before applying. Cascades to overrides and interface implementations, rewrites named and optional arguments, and preserves an extension method's `this` parameter; the overrides and implementations it also rewrote are listed in `CascadedTo`. Operations apply in order: `remove` drops `parameter`; `reorder` takes `order`, a full permutation of the parameters surviving at that point; `add` appends `name` plus `type` and REQUIRES `callSiteValue` — the expression every existing call site will pass, since the tool never guesses call-site semantics — with an optional `defaultValue` that instead makes the parameter optional and leaves existing calls untouched. Rejected as unsafe: an added name that is not a valid C# identifier or collides with an existing parameter; a `type` that does not resolve, or resolves ambiguously (qualify it); moving or removing an extension method's `this` parameter (it must stay first); and any signature that would leave a surviving `params` array anywhere but last — add the parameter and reorder it before the `params` array, or remove that array. Defaults to preview mode (returns edits without writing files); set `preview=false` to apply. New compiler errors the change would introduce are reported as Conflicts, and apply mode refuses to write them unless `force=true`. Source-defined methods and constructors only; overloaded names must be disambiguated.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "required": [
--- pinned/check_architecture +++ observed/check_architecture { "description": "Check user-supplied layering rules against the solution's real semantic type graph (resolved symbols, not `using` directives — so a fully qualified reference with no `using` is still caught, and an unused `using` is not reported). Rule kinds: `forbid` (a dependency from `from` to `to` is a violation) and `allowOnly` (a dependency from `from` to anything outside `to` is a violation). TWO SEMANTICS YOU MUST KNOW TO READ AN EMPTY RESULT CORRECTLY. (1) `allowOnly` evaluates ONLY solution-internal, non-generated targets: references to framework and NuGet namespaces such as `System.Collections.Generic` are ignored (otherwise every file would violate every `allowOnly` rule), and so are types declared entirely in generated code, which the caller cannot remove. To restrict a framework or generated namespace, write an explicit `forbid` — that path DOES evaluate metadata and generated targets. (2) Self-references are always allowed: a scope depending on itself is never a violation, under either kind. Results are grouped per violated `rule` plus `sourceScope` plus `targetScope` edge, each with a full `referenceCount` and the first `maxSitesPerViolation` sites. Sorted by rule order, then by descending reference count. Generated code is never reported as the SOURCE of a violation under either kind. Envelope adds a `byRule` / `totalReferences` / `rulesEvaluated` summary.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "required": [
--- pinned/find_async_violations +++ observed/find_async_violations { "description": "Detect six classes of async/await misuse across all production projects: sync-over-async (.Result, .Wait*, GetAwaiter().GetResult()), async void outside event handlers, missing await in async methods, and fire-and-forget tasks. Returns a summary plus a per-violation list (severity error/warning, location, containing method, snippet). Skips test projects and generated code. Static analysis only — no fix suggestions.", "inputSchema": { - "properties": {}, + "properties": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + } + }, "type": "object" }, "name": "find_async_violations"
--- pinned/find_attribute_usages +++ observed/find_attribute_usages { "description": "Find all types and members decorated with a specific attribute (e.g., Obsolete, Authorize, Serializable). Returns an envelope with items, totalCount, truncated, limit, and a byProject summary.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "required": [
--- pinned/find_breaking_changes +++ observed/find_breaking_changes { "description": "Diff the current solution's public API surface against a baseline (JSON snapshot from a prior get_public_api_surface run, or a baseline .dll file). Reports five change kinds: Removed/KindChanged/AccessibilityNarrowed (Breaking) plus Added/AccessibilityWidened (NonBreaking). Returns a summary plus a per-change list (kind, severity, fully-qualified name, entity kind, project, file, line, details). Sort: Breaking before NonBreaking, then name ASC. Limitations: return type changes, sealed-ness changes, and nullable annotation changes are not detected (PublicApiEntry schema doesn't capture them).", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "required": [
--- pinned/find_callers +++ observed/find_callers { "description": "Find every call site for a method. Returns an envelope with items, totalCount, truncated, limit, and a byProject summary.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "Method name as Type.Method (simple or fully qualified)", "type": "string"
--- pinned/find_catch_blocks +++ observed/find_catch_blocks { "description": "Find the `catch` clauses that handle an exception type across the solution, and say what each one does with it. Each item reports `hasFilter` (a `when` clause, so the handler may decline at runtime), `rethrows` (the body contains a bare `throw;`) and `isEmpty` (an empty handler body) — together these answer 'who is silently swallowing this exception?' in a single call. By default only clauses declaring exactly the requested type match; set `includeBaseClauses` to also surface handlers that catch a base type, including `catch (Exception)` and bare `catch`, since those bind the requested type too. `caughtType` is null for a bare `catch`. The exception type may live in source or in metadata. Returns an envelope with items, totalCount, truncated, limit and a `byType` / `byProject` summary, sorted by file, line, column.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "required": [
--- pinned/find_circular_dependencies +++ observed/find_circular_dependencies { "description": "Detect circular dependencies in the project reference graph or namespace dependency graph. Returns an envelope with items sorted by cycle length desc, totalCount, truncated, and limit (default 100).", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "type": "object"
--- pinned/find_disposable_misuse +++ observed/find_disposable_misuse { "description": "Detect IDisposable / IAsyncDisposable instances at risk of leaking. Two patterns: local variables holding a disposable that aren't wrapped in using/await using/returned/assigned-to-field-or-out-parameter (warning), and bare-expression-statement discards of a disposable creator/factory (error). Returns a summary plus a per-violation list (severity error/warning, location, containing method, snippet). Skips test projects and generated code. Scope: methods only (not constructors/accessors/operators); ownership transfer via method/constructor argument is not detected. Static analysis only — no fix suggestions.", "inputSchema": { - "properties": {}, + "properties": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + } + }, "type": "object" }, "name": "find_disposable_misuse"
--- pinned/find_event_subscribers +++ observed/find_event_subscribers { "description": "Find every += and -= site for an event symbol across the solution. Accepts source events (e.g. 'MyClass.Clicked') or metadata events (e.g. 'System.Diagnostics.Process.Exited'). Each result reports the source location, the resolved handler (method FQN, or a synthetic name like 'lambda at File.cs:N' for inline handlers), and the subscription kind (Subscribe for +=, Unsubscribe for -=). Use this for memory-leak audits (compare subscribe/unsubscribe pairs), UI event subscriber inspection, or when Grep over '+= EventName' would miss qualified or fully-typed subscription sites. Returns an envelope with items sorted by file path then line, totalCount, truncated, and limit (default 500).", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "Event symbol (e.g. 'MyClass.Clicked' or 'System.Diagnostics.Process.Exited')", "type": "string"
--- pinned/find_god_objects +++ observed/find_god_objects { "description": "Find types that combine high size with high coupling — 'god classes' that violate single-responsibility and become refactoring nightmares. Sharper signal than find_large_classes alone: a 1000-line internal helper used only by its own namespace is not flagged, but a 200-line class called from 15 different namespaces is. Two axes: size (lines/members/fields) and coupling (incoming/outgoing namespace counts). A type qualifies when it crosses ALL THREE size thresholds AND at least one coupling threshold — keeps DTOs (high field count only) and dispatchers (high member count only) off the list. Defaults: lines >= 300, members >= 15, fields >= 10, incoming-namespaces >= 5, outgoing-namespaces >= 5. Each threshold is independently configurable. BCL namespaces (System.*, Microsoft.*) excluded from outgoing count. Test projects, generated code, interfaces, and nested types are skipped. Sort: total axes exceeded DESC, then line count DESC.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "type": "object"
--- pinned/find_implementations +++ observed/find_implementations { "description": "Find all classes/structs implementing an interface or extending a class. Returns an envelope with items, totalCount, truncated, and limit.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "Type name (simple or fully qualified)", "type": "string"
--- pinned/find_large_classes +++ observed/find_large_classes { "description": "Find classes and structs that exceed member count or line count thresholds. Returns an envelope with items sorted worst-first (highest size first), totalCount, truncated, and limit (default 100).", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "type": "object"
--- pinned/find_naming_violations +++ observed/find_naming_violations { "description": "Check .NET naming convention compliance: PascalCase types/methods/properties, camelCase parameters, I-prefix interfaces, _ prefix private fields. Returns an envelope with items, totalCount, truncated, limit (default 500), and a byRule summary.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "type": "object"
--- pinned/find_obsolete_usage +++ observed/find_obsolete_usage { "description": "Find every call site referencing [Obsolete]-marked symbols in the solution, grouped by deprecation message and severity. Sharper than find_attribute_usages for migration-planning workflows: tells you 'we have 5 distinct deprecations pending; this one has 80 sites and is an error; that one has 3 sites and is a warning.' Includes both source-marked and metadata-marked obsoletes (third-party NuGet deprecations are surfaced too). Symbols with zero usages are omitted (no migration needed). Sort: errors first, then by usage count descending, then by symbol name. Test projects skipped. Project filter is case-insensitive.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "type": "object"
--- pinned/find_references +++ observed/find_references { "description": "Find all references to a symbol (type, method, property, field, or event) across the solution, each tagged with a kind. Kinds: `read`, `write`, `readwrite` (compound assignment / `++` / `ref`), `invocation`, `method_group`, `object_creation`, `cast`, `type_check` (`is` / patterns / `as`-tests), `typeof`, `base_type`, `type_constraint`, `type_argument`, `declaration`, `attribute`, `nameof`, `xml_doc`, and `usage` (rare fallback). Pass `kinds` to return only some (e.g. `[\"write\",\"readwrite\"]` for mutation sites). Envelope adds a `byKind` summary. Multiple references on one line are reported separately with a `column`.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "Symbol name: simple type (`MyClass`), fully qualified (`Namespace.MyClass`), or member (`MyClass.MyProperty`)", "type": "string"
--- pinned/find_reflection_usage +++ observed/find_reflection_usage { "description": "Detect dynamic/reflection-based usage like Type.GetType, Activator.CreateInstance, MethodInfo.Invoke. Returns an envelope with items, totalCount, truncated, limit (default 500), and a byKind summary.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "default": null, "description": "Optional type name to filter results (omit to scan entire solution)",
--- pinned/find_tests_for_symbol +++ observed/find_tests_for_symbol { "description": "List test methods that exercise the given production symbol. Recognises xUnit, NUnit, and MSTest. Set transitive=true to follow helper methods up to maxDepth levels (default 3, max 5).", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "Symbol name as Type.Method (simple or fully qualified)", "type": "string"
--- pinned/find_throw_sites +++ observed/find_throw_sites { "description": "Find every place an exception type is thrown across the solution — `throw new T(...)`, `throw expr;` and bare `throw;` rethrows (whose type comes from the enclosing `catch`). The exception type may live in source or in metadata, so `System.ArgumentNullException` works as well as your own `MyApp.DomainException`. Set `includeDerived` to also match subclasses of the requested type. Every throw in the file is reported, including throws inside lambdas and local functions, attributed to the member that contains them — use `get_exception_flow` instead when the question is which exceptions escape a specific method. Returns an envelope with items, totalCount, truncated, limit and a `byType` / `byProject` summary, sorted by file, line, column.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "required": [
--- pinned/find_uncovered_symbols +++ observed/find_uncovered_symbols { "description": "Report public methods and properties that no test method transitively reaches (within 3 helper hops). Output sorted by cyclomatic complexity descending, with a coverage summary including a riskHotspotCount (uncovered with complexity >= 5). Recognises xUnit, NUnit, MSTest. Reference-based static analysis — does not parse runtime coverage data.", "inputSchema": { - "properties": {}, + "properties": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + } + }, "type": "object" }, "name": "find_uncovered_symbols"
--- pinned/find_unused_symbols +++ observed/find_unused_symbols { "description": "Find potentially unused types and members (dead code detection). Checks public symbols for references across the solution. Filters out test methods, MCP tools, source-generator output, MEF-composed services, and interop-laid-out fields. Returns an envelope with items, totalCount, truncated, limit (default 500), and a summary including byKind + filteredOut counts.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "type": "object"
--- pinned/generate_test_skeleton +++ observed/generate_test_skeleton { "description": "Emits a test-class skeleton (parseable C#) for a method or type. Pass a type FQN like 'MyApp.Services.OrderService' to get a full test class with one stub per public method, or a method FQN like 'MyApp.Services.OrderService.PlaceOrder' to get a single stub. Returns framework, suggested file path, class name, full file contents (as text), and TodoNotes for things to wire up (e.g. constructor dependencies). The tool does NOT write to disk — agent decides what to do with the text. Pairs naturally with find_uncovered_symbols / get_test_summary. Stubs include happy-path Fact, Theory + InlineData for primitive-param methods, and Assert.Throws assertions per distinct direct-throw exception type. Async (Task-returning) methods detected automatically. Properties, indexers, operators, and constructors are excluded from per-method enumeration. Framework auto-detected from solution test projects (tie → xUnit); override with framework='xunit' / 'nunit' / 'mstest'.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "FQN of a type or method to generate a test skeleton for.", "type": "string"
--- pinned/get_call_graph +++ observed/get_call_graph { "description": "Transitive caller and/or callee graph for a method symbol, depth-bounded with cycle detection. Output is an adjacency-list dict per direction (callees and/or callers), where each visited symbol maps to its outgoing edges. Direction: 'callees' (what this method transitively calls), 'callers' (who reaches this method), or 'both'. External (BCL/NuGet) callees appear as terminal leaves with isExternal=true. Declared signature only on callee side — no virtual dispatch resolution; agent uses find_implementations separately if needed. Callers side resolves dispatch naturally via Roslyn SymbolFinder. Hard cap on total visited nodes (default 500) — sets truncated=true if hit; edges to truncated targets are still recorded against the source node. Use this instead of recursive find_callers / analyze_method calls when you need depth > 1.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "Method symbol (e.g. 'Greeter.Greet' or 'MyNamespace.MyClass.MyMethod')", "type": "string"
--- pinned/get_code_actions +++ observed/get_code_actions { "description": "List available code actions (refactorings and fixes) at a position in a C# file. Optionally specify endLine/endColumn to select a range for extract-method style refactorings. Returns action titles that can be passed to apply_code_action. Returns an envelope with items sorted by kind then title, totalCount, truncated, and limit (default 100).", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "required": [
--- pinned/get_code_fixes +++ observed/get_code_fixes { "description": "Get available code fixes for a specific diagnostic at a file location. Returns structured text edits that can be reviewed and applied. Returns an envelope with items sorted by title, totalCount, truncated, and limit (default 100).", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "required": [
--- pinned/get_complexity_metrics +++ observed/get_complexity_metrics { "description": "Calculate complexity for members (methods, constructors, properties, indexers, operators). Reports both 'complexity' (cyclomatic - the number of paths, starts at 1) and 'cognitive' (how hard the code is to follow, starts at 0 - a 0 is not a bug), plus 'maxNesting'. The 'metric' parameter selects which of the two the threshold filters on and the sort uses. Returns an envelope with items sorted worst-first, totalCount, truncated, limit (default 100), and a summary with max/avg/overThreshold plus maxCognitive.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "threshold": { "default": 10, "description": "Minimum complexity threshold, applied to the selected metric (default: 10)",
--- pinned/get_di_registrations +++ observed/get_di_registrations { "description": "Scan IServiceCollection extension methods for DI registrations of a type. Returns an envelope with items sorted by service name, totalCount, truncated, and limit (default 200).", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "Type name to search for (simple or fully qualified)", "type": "string"
--- pinned/get_diagnostics +++ observed/get_diagnostics { "description": "List compiler errors and warnings across the solution, optionally including analyzer diagnostics. Analyzer diagnostics require the solution to be trusted (see 'trust_solution'). Returns an envelope with items, totalCount, truncated, limit, and a severity summary.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "type": "object"
--- pinned/get_exception_flow +++ observed/get_exception_flow { "description": "Which exceptions can escape a method — the 'is calling this safe?' question. Walks the method's callees depth-first (cycle-safe, depth- and node-bounded) collecting every explicit throw, then propagates each one back up the call chain, testing the enclosing `try`/`catch` at the throw and at every call site on the way out. Each item reports `escapes`, the `path` of methods from the analysed method to the one that raises it, and — when it is stopped — `caughtIn`, `caughtFile`, `caughtLine`. A handler with a `when` filter sets `hasFilter` and the exception is still reported as escaping, because the filter may decline at runtime. `origin` is `thrown` for a real throw site in source, or `documented` for an `exception` XML doc tag on a metadata (BCL/NuGet) callee — set `includeDocumented` to false to drop the latter. Throws inside lambdas and local functions are excluded: they escape when that body runs, not at this method's boundary — use `find_throw_sites` for a plain textual scan of throws. Static analysis only: no reflection, no virtual-dispatch resolution, and no implicit runtime failures such as null dereferences. Hitting `maxDepth` or `maxNodes` sets `truncated`.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "required": [
--- pinned/get_extension_methods +++ observed/get_extension_methods { "description": "Answer 'what extension members can I call on this type?' — every extension method and C# 14 extension property applicable to a receiver type, from solution source AND referenced metadata (so BCL LINQ such as `Where`, `Select`, `Chunk` is included). Applicability is decided by the compiler's own reduction, not by name matching: `this IEnumerable<T>` is reported for `string` (which is `IEnumerable<char>`) while `this IEnumerable<string>` is not. Each entry carries the reduced call-site signature (receiver dropped, generic inference applied, return type first: `IEnumerable<int> Where<int>(Func<int, bool>)`, `int Tripled`), kind (`method` or `property`), declaring type, namespace, origin (`source` or `metadata`), source file/line for source members, XML doc summary, and `isStatic`. Read `isStatic` before writing the call: false means an instance call (`value.Doubled()`) and is the normal case even though every extension method is DECLARED static; true means a C# 14 static extension member, called on the type itself (`int.Zero`). Results are NOT filtered by `using` scope — the tool has no call-site position, so every applicable member is reported and its namespace is given for you to add the import. Pass a type name: simple (`Widget`), fully qualified (`MyApp.Widget`), a C# keyword (`int`, `string`), a constructed generic (`List<int>`), an array (`string[]`), a nullable (`int?`), or a tuple (`(int, string)`). Sort: source before metadata, then declaring type, then name.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "type": { "description": "Receiver type — e.g. `Widget`, `MyApp.Widget`, `int`, `List<int>`, `string[]`, `int?`, `(int, string)`", "type": "string"
--- pinned/get_file_overview +++ observed/get_file_overview { "description": "Get a summary of a C# file: which types are defined in it and any compiler diagnostics. Useful for quickly understanding a file's contents without reading it. Also accepts .razor/.cshtml markup, resolving it to the C# document its source generator produced.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "required": [
--- pinned/get_generated_code +++ observed/get_generated_code { "description": "Inspect generated source code from source generators. Returns an envelope with items sorted by project then file path, totalCount, truncated, and limit (default 200).", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "type": "object"
--- pinned/get_instantiation_options +++ observed/get_instantiation_options { "description": "Answer 'how do I construct this type?' in one call — accessible constructors, static factory methods declared anywhere in the solution, and DI registrations. Constructors report every parameter's type and name, declared accessibility, whether the constructor is compiler-supplied (`isImplicit` — a struct or a class with no declared constructor still has a usable parameterless one), and whether it is obsolete. Factories are static members returning the type, including ones declared on a DIFFERENT type such as `WidgetFactory.Create()`, with `Task<T>`/`ValueTask<T>` unwrapped and flagged `isAsync`. Instance builder methods are excluded because the builder itself would need constructing. Pass `fromProject` to get `accessible` computed for that project, which honours `InternalsVisibleTo` — this is how you find out whether your test project can reach an internal constructor. Without it, `accessible` is null, meaning NOT COMPUTED — which is not the same as false, so do not read a null as 'you cannot call this'. `requiredMembers` lists members that must be set in an object initializer. `diRegistrations` shows where the type is registered in a container — a registered type is usually meant to be resolved rather than constructed by hand. For interfaces, abstract classes and static classes, `instantiable` is false and `note` explains why; use `find_implementations` to find concrete types.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "Type to construct — simple (`Widget`) or fully qualified (`MyApp.Widget`).", "type": "string"
--- pinned/get_method_source +++ observed/get_method_source { "description": "Return the full declaration source (XML docs, attributes, signature, body — original formatting) of one or more members by name: methods (all overloads returned), constructors (request as `Widget.Widget` or fully qualified `Ns.Widget.Widget`; nested types need full qualification), properties, indexers (request as `Type.this` or `Type.this[]`), fields, events. Batch-friendly: pass many names in one call instead of reading whole files. Per-item statuses: ok, notFound, ambiguous (with candidates), metadata (use `peek_il` or `inspect_external_assembly`), unsupportedKind (whole types — use `get_type_overview`). Items keep request order.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbols": { "description": "Member names: simple (`MyClass.MyMethod`) or fully qualified (`Ns.MyClass.MyMethod`)", "items": {
--- pinned/get_nuget_dependencies +++ observed/get_nuget_dependencies { "description": "List NuGet package references for projects in the solution", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "type": "object"
--- pinned/get_operators +++ observed/get_operators { "description": "Return every user-defined operator and conversion operator on a type in one call — source AND metadata. Each entry includes the operator kind (such as +, ==, implicit, explicit, plus all comparison and bitwise operators), full signature, parameter names/types/modifiers, return type, accessibility, an IsCheckedVariant flag for .NET 7+ checked operators (op_CheckedAddition etc.), XML doc summary, and source location (empty for metadata). Includes compiler-synthesized record equality operators. Returns declared operators only — operators do not inherit in C#. Pass a type name, simple or fully qualified (e.g. 'Vector2', 'MyApp.Money', 'System.Decimal'). Sort: kind ordinal ASC, then parameter count ASC, then signature ordinal ASC.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "Type name (simple or fully qualified) — e.g. Vector2, MyApp.Money", "type": "string"
--- pinned/get_overloads +++ observed/get_overloads { "description": "Return every overload of a method (or constructor) in one call — source AND metadata. Each overload includes the full signature, parameter names/types/modifiers (ref/out/in/params/optional with defaults), return type, accessibility, modifiers (static/virtual/abstract/override/async/extension), generic type parameters, XML doc summary, and source location (empty for metadata). Pass 'Type.Method' for ordinary methods or 'Type.Type' for constructors. Operator overloads are excluded — use get_operators for those. Sort: parameter count ASC, then signature ordinal ASC.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "Method or constructor symbol (e.g. 'Greeter.Greet', 'Greeter.Greeter', 'System.Console.WriteLine').", "type": "string"
--- pinned/get_project_dependencies +++ observed/get_project_dependencies { "description": "Return the project reference graph (direct and transitive dependencies)", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "required": [
--- pinned/get_project_health +++ observed/get_project_health { "description": "Aggregate 7 health dimensions per project in one call: complexity hotspots, large classes, naming violations, unused symbols, reflection usage, async violations, and disposable misuse. Returns counts per dimension plus the top-N hotspots inline (default 5) so the caller can prioritise without follow-up calls. Use this when answering 'how is this project doing?' / 'where should I focus?' / 'what's the technical debt picture?'. Underlying defaults: complexity threshold 10, large-class limits 20 members / 500 lines, unused symbols excludes internals. Test projects are skipped. Project filter is case-insensitive. Sort: projects ASC by name; hotspots sorted by severity proxy per dimension (cyclomatic complexity desc, line count desc, severity enum desc for async/disposable).", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "type": "object"
--- pinned/get_public_api_surface +++ observed/get_public_api_surface { - "description": "Enumerate every public and protected type and member declared in production projects of the active solution. Returns a deterministically-sorted (name ASC) flat list of API entries (kind, fully-qualified name, accessibility, project, file, line) plus per-kind/per-project/per-accessibility summary buckets. Skips test projects, generated code, compiler-generated members, internal symbols, and protected members on sealed types (unreachable). Inherited members are not repeated under derived types — only declared members appear.", + "description": "Enumerate every public and protected type and member declared in production projects of the solution (the active one unless `solution` names another). Returns a deterministically-sorted (name ASC) flat list of API entries (kind, fully-qualified name, accessibility, project, file, line) plus per-kind/per-project/per-accessibility summary buckets. Skips test projects, generated code, compiler-generated members, internal symbols, and protected members on sealed types (unreachable). Inherited members are not repeated under derived types — only declared members appear.", "inputSchema": { - "properties": {}, + "properties": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + } + }, "type": "object" }, "name": "get_public_api_surface"
--- pinned/get_source_generators +++ observed/get_source_generators { "description": "List source generators and their output per project. Returns an envelope with items sorted by project then generator name, totalCount, truncated, and limit (default 100).", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "type": "object"
--- pinned/get_symbol_context +++ observed/get_symbol_context { "description": "One-shot context dump for a type: namespace, base class, interfaces, injected dependencies, public members", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "Type name (simple or fully qualified)", "type": "string"
--- pinned/get_test_summary +++ observed/get_test_summary { "description": "Per-project inventory of test methods. Each test reports framework (xUnit/NUnit/MSTest), attribute kind ([Fact]/[Theory]/[Test]/[TestCase]/[TestMethod]/[DataTestMethod]), data-driven row count, location, and the production symbols it references. Complements find_tests_for_symbol (which goes test → production); this goes project → tests. Use to answer 'what does this test suite cover?' or to break down test counts by framework/attribute. Production projects, generated code, and BCL/framework calls are filtered out of the per-test referenced-symbols list. Project filter is case-insensitive. Sort: tests by (file, line); projects by name ASC.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "type": "object"
--- pinned/get_type_hierarchy +++ observed/get_type_hierarchy { "description": "Walk up (base classes, interfaces) and down (derived types) from a type", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "Type name (simple or fully qualified)", "type": "string"
--- pinned/get_type_overview +++ observed/get_type_overview { "description": "Get a comprehensive overview of a type in one call: full context (namespace, base class, interfaces, members, DI dependencies), type hierarchy (bases, interfaces, derived types), and diagnostics in the file. More efficient than calling get_symbol_context + get_type_hierarchy + get_diagnostics separately.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "typeName": { "description": "Type name (simple name or fully qualified)", "type": "string"
--- pinned/go_to_definition +++ observed/go_to_definition { "description": "Find the source file and line where a symbol is defined. Returns an envelope with items, totalCount, truncated, and limit.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "Symbol name: simple type (MyClass), fully qualified (Namespace.MyClass), or member (MyClass.DoWork)", "type": "string"
--- pinned/inspect_external_assembly +++ observed/inspect_external_assembly { "description": "Inspect a referenced closed-source assembly. mode='summary' returns namespaces + type counts; mode='namespace' returns public types and members for the given namespace.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "required": [
--- pinned/load_solution +++ observed/load_solution { - "description": "Load a .sln/.slnx solution at runtime and make it the active solution. Both `include` and `rootProjects` match against the project FILE NAME without extension (the .csproj/.vbproj base name), NOT the assembly name. Pass `include` (case-insensitive glob array, supporting only `*` and `?` wildcards — character classes like `[...]` are NOT supported) or `rootProjects` (EXACT, case-sensitive file names) to load only a subset; the loader walks ProjectReference transitively from those seeds to keep the workspace semantically complete. A filter that matches NO project is an ERROR (the call fails) — it does NOT silently fall back to a full load; if unsure of exact names, do a no-filter load first and call list_solutions to discover them. If the same `path` is already loaded, providing a new filter disposes the previous workspace (replace semantics). If the solution is already loaded with no filter, it simply activates it (~instant). New solutions take ~3 seconds to load and compile. For very large solutions (hundreds of projects) that take minutes to open, pass `background: true` to return a taskId immediately instead of blocking; wait on it with get_task_status and waitSeconds until it succeeds (its result carries the loaded/skipped counts). The new solution only becomes active once the background load finishes, so other tools keep working against the current solution meanwhile.", + "description": "Load a .sln/.slnx solution at runtime and make it the active solution. Both `include` and `rootProjects` match against the project FILE NAME without extension (the .csproj/.vbproj base name), NOT the assembly name. Pass `include` (case-insensitive glob array, supporting only `*` and `?` wildcards — character classes like `[...]` are NOT supported) or `rootProjects` (EXACT, case-sensitive file names) to load only a subset; the loader walks ProjectReference transitively from those seeds to keep the workspace semantically complete. A filter that matches NO project is an ERROR (the call fails) — it does NOT silently fall back to a full load; if unsure of exact names, do a no-filter load first and call list_solutions to discover them. If the same `path` is already loaded, providing a new filter disposes the previous workspace (replace semantics). If the solution is already loaded with no filter, it simply activates it (~instant). New solutions take ~3 seconds to load and compile. For very large solutions (hundreds of projects) that take minutes to open, pass `background: true` to return a taskId immediately instead of blocking; wait on it with get_task_status and waitSeconds until it succeeds (its result carries the loaded/skipped counts). Unless `activate` is false, the new solution only becomes active once the background load finishes, so other tools keep working against the current solution meanwhile. Pass `activate: false` to load without switching the active solution for other callers. A filtered re-load of an already-loaded solution unloads it until the new load finishes.", "inputSchema": { "properties": { + "activate": { + "default": true, + "description": "If false, load without changing the active solution for other callers; pass the returned path as `solution` on later calls. Default true. When no solution is active, it becomes active anyway.", + "type": "boolean" + }, "background": { "default": false, "description": "If true, load on a background task and return a taskId immediately (wait with get_task_status and waitSeconds) instead of blocking until the solution is ready. Default false.",
--- pinned/peek_il +++ observed/peek_il { "description": "Return ilasm-style IL for a single method in a referenced closed-source assembly. Input must be a fully-qualified method name with parameter types.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "required": [
--- pinned/rebuild_solution +++ observed/rebuild_solution { "description": "Force a full reload of the analyzed solution — re-opens the .sln, recompiles all projects, and rebuilds all indexes. Use after changing Directory.Build.props, adding/removing NuGet packages, or when diagnostics seem stale.", "inputSchema": { - "properties": {}, + "properties": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + } + }, "type": "object" }, "name": "rebuild_solution"
--- pinned/rename_symbol +++ observed/rename_symbol { "description": "Safely rename a type or member across the entire solution (Roslyn Renamer). Cascades to references, constructors, overrides, nameof, and XML doc crefs. Defaults to preview mode (returns edits without writing files); set preview=false to apply. New compiler errors the rename would introduce are reported as Conflicts, and apply mode refuses to write them unless force=true. Locals/parameters and file renames are not supported.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "symbol": { "description": "Symbol to rename: simple type (MyClass), fully qualified (Namespace.MyClass), or member (MyClass.MyMethod)", "type": "string"
--- pinned/resolve_stack_trace +++ observed/resolve_stack_trace { "description": "Map a pasted .NET stack trace to file/line/symbol against the loaded solution, undoing compiler name mangling: async/iterator state machines (`<M>d__N.MoveNext`), lambdas (`<>c` / `<>c__DisplayClass`), local functions (`g__Name|`), generic arity. Handles Exception.ToString() output, log-prefixed lines, inner-exception chains, and Ben.Demystifier-style traces. Frames without 'in file:line' get the declaration site; frames with it keep the exact location. External frames resolve with origin=metadata. Items are in original trace order.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "stackTrace": { "description": "The stack trace text, pasted as-is (multi-line)", "type": "string"
--- pinned/search_symbols +++ observed/search_symbols { "description": "Search for types, methods, properties, and fields by name (case-insensitive substring match). Returns an envelope with items sorted by match quality (exact → prefix → substring), totalCount, truncated, limit (default 200), and a byKind summary.", "inputSchema": { + }, + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] } }, "required": [
--- pinned/set_active_solution +++ observed/set_active_solution { "description": "Switch the active solution. All subsequent tool calls will operate on the selected solution. Use a partial, case-insensitive name (e.g. 'MyProject' matches 'C:/code/MyProject/MyProject.sln'). Returns the full path of the newly active solution.", "inputSchema": { - "description": "Partial or full solution name/path to match", + "description": "Solution to match: an absolute path matches exactly; otherwise an exact file name (e.g. `App.sln`) wins, then a case-insensitive substring of the path", "type": "string" } },
--- pinned/start_background_task +++ observed/start_background_task { "description": "Queue a long-running tool to run in the background. Returns a taskId; wait with get_task_status and waitSeconds. Allowed tools: rebuild_solution.", "inputSchema": { + "solution": { + "default": null, + "description": "Optional loaded solution to run against, matched like set_active_solution. Defaults to the active solution. Pass it when several agents share this server.", + "type": [ + "string", + "null" + ] + }, "toolName": { "description": "Tool name to run in the background. Currently allowed: rebuild_solution.", "type": "string"
--- pinned/unload_solution +++ observed/unload_solution { "description": "Unload a previously loaded solution to free memory. Use a partial, case-insensitive name (e.g. 'DcpCore' matches the full path). If the unloaded solution was active, another loaded solution becomes active. Use this when you're done analyzing a codebase and want to reclaim memory.", "inputSchema": { - "description": "Partial or full solution name/path to match", + "description": "Solution to match: an absolute path matches exactly; otherwise an exact file name (e.g. `App.sln`) wins, then a case-insensitive substring of the path", "type": "string" } },
Changed 2026-11-27 16:50 UTC
4 descriptions rewritten, 1 schema or annotation change with the description left byte-identical.
--- pinned/change_signature +++ observed/change_signature { - "description": "Add, remove, or reorder a method's parameters and update every call site (Roslyn's own change-signature engine). Cascades to overrides and interface implementations, rewrites named and optional arguments, and preserves an extension method's `this` parameter; the overrides and implementations it also rewrote are listed in `CascadedTo`. Operations apply in order: `remove` drops `parameter`; `reorder` takes `order`, a full permutation of the parameters surviving at that point; `add` appends `name` plus `type` and REQUIRES `callSiteValue` — the expression every existing call site will pass, since the tool never guesses call-site semantics — with an optional `defaultValue` that instead makes the parameter optional and leaves existing calls untouched. Rejected as unsafe: an added name that is not a valid C# identifier or collides with an existing parameter; a `type` that does not resolve, or resolves ambiguously (qualify it); moving or removing an extension method's `this` parameter (it must stay first); and any signature that would leave a surviving `params` array anywhere but last — add the parameter and reorder it before the `params` array, or remove that array. Defaults to preview mode (returns edits without writing files); set `preview=false` to apply. New compiler errors the change would introduce are reported as Conflicts, and apply mode refuses to write them unless `force=true`. Source-defined methods only; overloaded names must be disambiguated.", + "description": "Add, remove, or reorder a method's or constructor's parameters and update every call site (Roslyn's own change-signature engine). A type name or `Type.Type` targets the type's primary constructor (positional record, record struct, or C# 12 class/struct parameter list), else its only constructor declared in source; several constructors and no primary one is ambiguous. For a positional record, `Warnings` lists what the engine does not rewrite: removed generated properties with their references, deconstructions and positional patterns that bind by position (a reorder of two same-typed parameters still compiles but binds the other value), and string literals or serialized names; read it before applying. Cascades to overrides and interface implementations, rewrites named and optional arguments, and preserves an extension method's `this` parameter; the overrides and implementations it also rewrote are listed in `CascadedTo`. Operations apply in order: `remove` drops `parameter`; `reorder` takes `order`, a full permutation of the parameters surviving at that point; `add` appends `name` plus `type` and REQUIRES `callSiteValue` — the expression every existing call site will pass, since the tool never guesses call-site semantics — with an optional `defaultValue` that instead makes the parameter optional and leaves existing calls untouched. Rejected as unsafe: an added name that is not a valid C# identifier or collides with an existing parameter; a `type` that does not resolve, or resolves ambiguously (qualify it); moving or removing an extension method's `this` parameter (it must stay first); and any signature that would leave a surviving `params` array anywhere but last — add the parameter and reorder it before the `params` array, or remove that array. Defaults to preview mode (returns edits without writing files); set `preview=false` to apply. New compiler errors the change would introduce are reported as Conflicts, and apply mode refuses to write them unless `force=true`. Source-defined methods and constructors only; overloaded names must be disambiguated.", "inputSchema": { "properties": { "force": { - "description": "Method to change: `MyClass.MyMethod` or fully qualified `Namespace.MyClass.MyMethod`", + "description": "Method to change: `MyClass.MyMethod` or fully qualified `Namespace.MyClass.MyMethod`. For a constructor, the type name (`MyRecord`, `Namespace.MyRecord`) or `MyRecord.MyRecord`", "type": "string" }, "operations": {
--- pinned/get_generated_code +++ observed/get_generated_code { "description": "Inspect generated source code from source generators. Returns an envelope with items sorted by project then file path, totalCount, truncated, and limit (default 200).", "inputSchema": { - "description": "Generator name to filter by", + "description": "Generator full type name to filter by, as reported by get_source_generators (e.g. System.Text.RegularExpressions.Generator.RegexGenerator)", "type": [ "string", "null"
--- pinned/get_task_status +++ observed/get_task_status { - "description": "Get the current status of a background task by its taskId.", + "description": "Get the current status of a background task by its taskId. Pass waitSeconds to wait on the server while the task is Running: the call returns as soon as the task finishes, or after waitSeconds with the task still Running. Prefer one call with a generous waitSeconds (the 50 second cap) over polling. Values above 50 are clamped to 50.", "inputSchema": { "properties": { "taskId": { + }, + "waitSeconds": { + "default": 0, + "description": "Seconds to wait for a running task to finish. Default 0 returns immediately; negative is treated as 0; values above 50 are clamped to 50.", + "type": "integer" } }, "required": [
--- pinned/load_solution +++ observed/load_solution { - "description": "Load a .sln/.slnx solution at runtime and make it the active solution. Both `include` and `rootProjects` match against the project FILE NAME without extension (the .csproj/.vbproj base name), NOT the assembly name. Pass `include` (case-insensitive glob array, supporting only `*` and `?` wildcards — character classes like `[...]` are NOT supported) or `rootProjects` (EXACT, case-sensitive file names) to load only a subset; the loader walks ProjectReference transitively from those seeds to keep the workspace semantically complete. A filter that matches NO project is an ERROR (the call fails) — it does NOT silently fall back to a full load; if unsure of exact names, do a no-filter load first and call list_solutions to discover them. If the same `path` is already loaded, providing a new filter disposes the previous workspace (replace semantics). If the solution is already loaded with no filter, it simply activates it (~instant). New solutions take ~3 seconds to load and compile. For very large solutions (hundreds of projects) that take minutes to open, pass `background: true` to return a taskId immediately instead of blocking; poll it with get_task_status until it succeeds (its result carries the loaded/skipped counts). The new solution only becomes active once the background load finishes, so other tools keep working against the current solution meanwhile.", + "description": "Load a .sln/.slnx solution at runtime and make it the active solution. Both `include` and `rootProjects` match against the project FILE NAME without extension (the .csproj/.vbproj base name), NOT the assembly name. Pass `include` (case-insensitive glob array, supporting only `*` and `?` wildcards — character classes like `[...]` are NOT supported) or `rootProjects` (EXACT, case-sensitive file names) to load only a subset; the loader walks ProjectReference transitively from those seeds to keep the workspace semantically complete. A filter that matches NO project is an ERROR (the call fails) — it does NOT silently fall back to a full load; if unsure of exact names, do a no-filter load first and call list_solutions to discover them. If the same `path` is already loaded, providing a new filter disposes the previous workspace (replace semantics). If the solution is already loaded with no filter, it simply activates it (~instant). New solutions take ~3 seconds to load and compile. For very large solutions (hundreds of projects) that take minutes to open, pass `background: true` to return a taskId immediately instead of blocking; wait on it with get_task_status and waitSeconds until it succeeds (its result carries the loaded/skipped counts). The new solution only becomes active once the background load finishes, so other tools keep working against the current solution meanwhile.", "inputSchema": { "properties": { "background": { - "description": "If true, load on a background task and return a taskId immediately (poll with get_task_status) instead of blocking until the solution is ready. Default false.", + "description": "If true, load on a background task and return a taskId immediately (wait with get_task_status and waitSeconds) instead of blocking until the solution is ready. Default false.", "type": "boolean" }, "include": {
--- pinned/start_background_task +++ observed/start_background_task { - "description": "Queue a long-running tool to run in the background. Returns a taskId; poll with get_task_status. Allowed tools: rebuild_solution.", + "description": "Queue a long-running tool to run in the background. Returns a taskId; wait with get_task_status and waitSeconds. Allowed tools: rebuild_solution.", "inputSchema": { "properties": { "toolName": {
Current tools
Show all 67 tool fingerprints
Watch this server yourself
If you run this server, put the proxy in front of it. It pins these exact fingerprints on first connect and stops the session if they move.
npx -y mcp-pin@0.2.4 -- <your roslyn-codelens-mcp command>
Or subscribe to this page's RSS feed to be told when it changes.
Badge
The badge states one fact about time and nothing else. It never claims a server is safe.
[](https://mcp-pin.gautamkhosla.com/servers/7ec920cbe5dd9275.html)