SharpLens
NUGET · SHARPLENSMCP · 2 COMPONENTS · SCANNED AUG 3
67 semantic C#/.NET analysis tools via Roslyn: navigation, refactoring, codegen, audit.
Available components
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →
Supply Chain Security100
- No malware found by supply-chain analysis.Pass
- No known CVEs affecting this package version or its production dependencies.Pass
- No install/post-install scripts declared.Pass
- No production dependencies, so there is no dependency health to assess. View diagnostics → Pass
Provenance & Transparency45
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- Clear OSI-approved license (MIT).Pass
- Actively maintained (last published 30 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability0
- Schema quality not yet verified: our sandbox run of this package did not complete, so we have no schema to assess.Unverified
Stability & Change Management0
- Stability not yet verified: our sandbox run of this package did not complete, so we have no schema to compare.Unverified
Tool Coverage0
- Tool coverage not yet verified: our sandbox run of this package did not complete, so we have no tool definitions to assess.Unverified
Capabilities0
- Protocol version not yet verified: our sandbox run of this package did not complete, so we never saw its MCP handshake.Unverified
Unverified: 4 categories
Categories scored 0 because our sandbox run of this package has not given us the schema these checks need to read. That is a gap on our side rather than a finding about the package, and we only credit what we can confirm, so the score stands at 0 until the capture succeeds. We are working through the fleet, so this normally clears without any action from you. How we score packages →
Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.
nuget · SharpLensMcp
claude mcp add pzalutski-pixel-sharplens -- dnx [email protected] --yes
codex mcp add pzalutski-pixel-sharplens -- dnx [email protected] --yes
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"pzalutski-pixel-sharplens": {
"type": "local",
"command": [
"dnx",
"[email protected]",
"--yes"
],
"enabled": true
}
}
} mcp_servers:
pzalutski-pixel-sharplens:
command: "dnx"
args: ["[email protected]", "--yes"] {
"mcpServers": {
"pzalutski-pixel-sharplens": {
"command": "dnx",
"args": [
"[email protected]",
"--yes"
]
}
}
} Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 2 Aug 26 +15
- Malware scan: unverified → pass ▲ security
- 31 Jul 26 −5
- We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
- 30 Jul 26 −18
- Malware scan: pass → unverified ▼ security
- 27 Jul 26 0
- Tool coverage: Tool coverage not yet verified: our sandbox run of this package did not complete, so we have no tool definitions to assess. functional
- Schema quality: Schema quality not yet verified: our sandbox run of this package did not complete, so we have no schema to assess. functional
- 26 Jul 26 47
First indexed and scored.
- We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 3 Aug 2026 · Analysed nuget/[email protected]
Provenance none
Ecosystem: nuget · Outcome: none
Reason: nuget_signature_unverified
Dependencies 0 packages
0 packages in the resolved dependency tree.
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.
roslyn:get_symbol_info ~124
Get detailed semantic information about a symbol at a specific position. IMPORTANT: Uses ZERO-BASED coordinates. If your editor shows 'Line 14, Column 5', pass line=13, column=4. Returns symbol kind, type, namespace, documentation, and location.
| Name | Type | Req | Description |
|---|---|---|---|
| column | integer | yes | Zero-based column number (Visual Studio col 5 = col 4 here) |
| filePath | string | yes | Absolute path to source file |
| line | integer | yes | Zero-based line number (Visual Studio line 14 = line 13 here) |
No output schema declared.
No examples provided.
roslyn:get_type_hierarchy ~118
Get the inheritance hierarchy (base types and derived types) for a type. Returns baseTypes chain and derivedTypes list. IMPORTANT: Uses ZERO-BASED coordinates (editor line - 1).
| Name | Type | Req | Description |
|---|---|---|---|
| column | integer | yes | Zero-based column number |
| filePath | string | yes | Absolute path to source file |
| line | integer | yes | Zero-based line number |
| maxDerivedTypes | integer | — | Maximum number of derived types to return (default: 50). Results are truncated with a hint if limit is exceeded. |
No output schema declared.
No examples provided.
roslyn:get_type_members ~238
Get all members (methods, properties, fields, events) of a type BY NAME. USAGE PATTERNS: - Basic: get_type_members("MyClass") - list all members - With inheritance: get_type_members("MyService", includeInherited=true) - Filter by kind: get_type_members("MyClass", memberKind="Method") - Verbosity control: verbosity="summary" (names only), "compact" (default, + signatures), "full" (+ docs, attrs) WORKS WITH: Fully-qualified ("MyNamespace.MyClass"), simple ("MyClass"), or partial names.
| Name | Type | Req | Description |
|---|---|---|---|
| includeInherited | boolean | — | Include members from base classes (default: false) |
| maxResults | integer | — | Maximum members to return (default: 100) |
| memberKind | string | — | Filter: 'Method', 'Property', 'Field', 'Event' |
| typeName | string | yes | Type name (e.g., 'MyClass', 'MyNamespace.MyService') |
| verbosity | string | — | 'summary' (names only), 'compact' (default), 'full' (+ docs, attrs) |
No output schema declared.
No examples provided.
roslyn:get_type_members_batch ~169
Get members for multiple types in a single call (batch optimization). USAGE: get_type_members_batch(typeNames: ['ServiceA', 'ServiceB', 'ControllerC']) OUTPUT: Results for each type with members, or error if type not found BENEFIT: One call instead of multiple - reduces context usage for AI agents
| Name | Type | Req | Description |
|---|---|---|---|
| includeInherited | boolean | — | Include inherited members (default: false) |
| maxResultsPerType | integer | — | Max members per type (default: 50) |
| memberKind | string | — | Filter: 'Method', 'Property', 'Field', 'Event' |
| typeNames | array | yes | Array of type names to look up |
| verbosity | string | — | 'summary', 'compact' (default), or 'full' |
No output schema declared.
No examples provided.
roslyn:get_type_overview ~66
Get comprehensive type overview in ONE CALL: type info + base types (first 3) + member counts. USAGE: get_type_overview("MyService") - returns everything you need to understand a type quickly.
| Name | Type | Req | Description |
|---|---|---|---|
| typeName | string | yes | Type name |
No output schema declared.
No examples provided.
roslyn:go_to_definition ~96
Fast navigation to symbol definition. Returns the definition location without finding all references. IMPORTANT: Uses ZERO-BASED coordinates (editor line 10 = pass line 9).
| Name | Type | Req | Description |
|---|---|---|---|
| column | integer | yes | Zero-based column number (editor column - 1) |
| filePath | string | yes | Absolute path to source file containing the symbol |
| line | integer | yes | Zero-based line number (editor line - 1) |
No output schema declared.
No examples provided.
roslyn:health_check ~51
Check the health and status of the Roslyn MCP server and workspace. Returns: server status, solution loaded state, project count, and memory usage. Call this first to verify the server is ready.
Input schema present but exposes no named parameters.
No output schema declared.
No examples provided.
roslyn:implement_missing_members ~114
Generate stub implementations for interface/abstract members. USAGE: Position cursor on class declaration that implements interface or extends abstract class. OUTPUT: Generated stub code for all missing members. IMPORTANT: Uses ZERO-BASED coordinates (editor line - 1).
| Name | Type | Req | Description |
|---|---|---|---|
| column | integer | yes | Zero-based column number |
| filePath | string | yes | Absolute path to source file |
| line | integer | yes | Zero-based line number on the class declaration |
| preview | boolean | — | Preview mode (default: true) |
No output schema declared.
No examples provided.
roslyn:inline_variable ~108
Inline a variable, replacing all usages with its value. USAGE: Position cursor on a variable declaration or usage. OUTPUT: Variable removed and all usages replaced with the expression. IMPORTANT: Uses ZERO-BASED coordinates (editor line - 1).
| Name | Type | Req | Description |
|---|---|---|---|
| column | integer | yes | Zero-based column number |
| filePath | string | yes | Absolute path to source file |
| line | integer | yes | Zero-based line number |
| preview | boolean | — | Preview mode (default: true) |
No output schema declared.
No examples provided.
roslyn:load_solution ~69
Load a .NET solution for analysis. MUST be called before using any other analysis tools. Returns: projectCount, documentCount, and load time. Use health_check to verify current state.
| Name | Type | Req | Description |
|---|---|---|---|
| solutionPath | string | yes | Absolute path to .sln or .slnx file |
No output schema declared.
No examples provided.
roslyn:organize_usings ~52
Sort and remove unused using directives in a file. Returns the modified file content. Automatically removes unused usings and sorts alphabetically.
| Name | Type | Req | Description |
|---|---|---|---|
| filePath | string | yes | Absolute path to source file |
No output schema declared.
No examples provided.
roslyn:organize_usings_batch ~142
Organize using directives for multiple files in a project. Supports file pattern filtering (e.g., '*.cs', 'Services/*.cs'). PREVIEW mode by default - set preview=false to apply changes.
| Name | Type | Req | Description |
|---|---|---|---|
| filePattern | string | — | Optional: Glob pattern to filter files (e.g., '*.cs', 'Services/*.cs', '*Repository.cs'). Matches against file names, not full paths. |
| preview | boolean | — | Preview mode (default: true). Set to false to apply changes to disk. ALWAYS preview first! |
| projectName | string | — | Optional: Project name to process. If omitted, processes all projects in solution. |
No output schema declared.
No examples provided.
roslyn:rename_symbol ~229
Safely rename a symbol (type, method, property, etc.) across the entire solution. Uses Roslyn's semantic analysis to ensure all references are updated. SUPPORTS PREVIEW MODE - always preview first! IMPORTANT: Uses ZERO-BASED coordinates. Default shows first 20 files with summary verbosity.
| Name | Type | Req | Description |
|---|---|---|---|
| column | integer | yes | Zero-based column number (editor column - 1) |
| filePath | string | yes | Absolute path to source file containing the symbol |
| line | integer | yes | Zero-based line number (editor line - 1) |
| maxFiles | integer | — | Max files to show in preview (default: 20, prevents large outputs) |
| newName | string | yes | New name for the symbol |
| preview | boolean | — | Preview changes without applying (default: true). ALWAYS preview first! |
| verbosity | string | — | Output detail level: 'summary' (default, file paths + counts only ~200 tokens/file), 'compact' (add locations ~500 tokens/file), 'full' (include old/new text ~3000+ tokens/file) |
No output schema declared.
No examples provided.
roslyn:search_symbols ~255
Search for types, methods, properties, etc. by name across the solution. Supports glob patterns (e.g., '*Handler' finds classes ending with 'Handler', 'Get*' finds symbols starting with 'Get'). Use ? for single character wildcard. PAGINATION: Returns totalCount and hasMore. Use offset to paginate through results.
| Name | Type | Req | Description |
|---|---|---|---|
| kind | string | — | Optional: filter by symbol kind. For types use: Class, Interface, Struct, Enum, Delegate. For members use: Method, Property, Field, Event. Other: Namespace. Case-insensitive. |
| maxResults | integer | — | Maximum number of results per page (default: 50) |
| namespaceFilter | string | — | Optional: filter by namespace (supports wildcards). Examples: 'MyApp.Core.*', '*.Services', 'MyApp.*.Handlers'. Case-insensitive. |
| offset | integer | — | Offset for pagination (default: 0). Use pagination.nextOffset from previous response to get next page. |
| query | string | yes | Search query - supports wildcards: * (any characters), ? (single character). Examples: 'Handler', '*Handler', 'Get*', 'I?Service'. Case-insensitive. |
No output schema declared.
No examples provided.
roslyn:semantic_query ~419
Advanced semantic code query with multiple filters. Find symbols based on their semantic properties. EXAMPLES: - Async methods without CancellationToken: isAsync=true, parameterExcludes=["CancellationToken"] - Public static methods: accessibility="Public", isStatic=true - Classes with [Obsolete]: kinds=["Class"], attributes=["ObsoleteAttribute"] FILTERS: All specified filters are combined with AND logic. Omit a filter to skip it. Returns symbol details with locations.
| Name | Type | Req | Description |
|---|---|---|---|
| accessibility | string | — | Optional: filter by accessibility. Values: Public, Private, Internal, Protected, ProtectedInternal, PrivateProtected |
| attributes | array | — | Optional: filter by attributes (must have ALL specified). Example: ['ObsoleteAttribute', 'EditorBrowsableAttribute'] |
| isAsync | boolean | — | Optional: filter methods by async/await (true for async methods, false for sync methods) |
| isStatic | boolean | — | Optional: filter by static modifier (true for static, false for instance) |
| kinds | array | — | Optional: filter by symbol kinds (can specify multiple). For types: Class, Interface, Struct, Enum, Delegate. For members: Method, Property, Field, Event. Example: ['Class', 'Interface'] |
| maxResults | integer | — | Maximum number of results (default: 100) |
| namespaceFilter | string | — | Optional: filter by namespace (supports wildcards). Examples: 'MyApp.Core.*', '*.Services' |
| parameterExcludes | array | — | Optional: filter methods that must NOT have these parameter types (partial match). Example: ['CancellationToken'] |
| parameterIncludes | array | — | Optional: filter methods that MUST have these parameter types (partial match). Example: ['CancellationToken'] |
| returnType | string | — | Optional: filter methods by return type. Partial match. Example: 'Task' finds all methods returning Task |
| type | string | — | Optional: filter fields/properties by their type. Partial match. Example: 'ILogger' finds all ILogger fields/properties |
No output schema declared.
No examples provided.
roslyn:sync_documents ~193
Synchronize document changes from disk into the loaded solution. Call this after using Edit/Write tools to ensure Roslyn has fresh content. USAGE: - sync_documents(filePaths: ["src/Foo.cs", "src/Bar.cs"]) - sync specific files - sync_documents() - sync ALL documents (refresh entire solution) WHEN TO CALL: - After using Edit tool to modify .cs files - After using Write tool to create new .cs files - After deleting .cs files - NOT needed after using SharpLensMcp refactoring tools (they auto-update) HANDLES: Modified files (updates content), new files (adds to solution), deleted files (removes from solution). Much faster than load_solution - only updates documents, doesn't re-parse projects.
| Name | Type | Req | Description |
|---|---|---|---|
| filePaths | array | — | Optional: specific file paths to sync. If omitted, syncs ALL documents from disk. |
No output schema declared.
No examples provided.
roslyn:validate_code ~129
Check if code would compile without writing to disk. Use to validate generated code before applying. USAGE: validate_code(code="public void Foo() {}", contextFilePath="path/to/file.cs") to check with existing usings. OUTPUT: compiles (bool), errors list with line numbers. Essential before inserting AI-generated code.
| Name | Type | Req | Description |
|---|---|---|---|
| code | string | yes | C# code to validate |
| contextFilePath | string | — | Optional: file to use for context (usings, namespace) |
| standalone | boolean | — | If true, treat code as complete file (default: false) |
No output schema declared.
No examples provided.