MCPVault

SharpTool_CreateRoslynDocument

MCP tool from SharpToolsMCP by kooshi

Creates a new file with specified content.

How to use it

SharpTool_CreateRoslynDocument is exposed by the SharpToolsMCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the SharpTool_CreateRoslynDocument tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

FULL SHARPTOOLSMCP LISTING

Other tools in SharpToolsMCP (20)

SharpTool_AddMember

Adds a new member (method, property, field, nested type, etc.) to a specified type.

SharpTool_AnalyzeComplexity

Performs complexity analysis (cyclomatic, cognitive, coupling, etc.) on methods, classes, or projects.

SharpTool_FindAndReplace

Performs regex-based find and replace operations within a specified symbol's declaration or across files matching a glob pattern.

SharpTool_FindReferences

Locates all usages of a symbol across the solution, providing contextual code snippets.

SharpTool_GetMembers

Lists members (methods, properties, etc.) of a type, including signatures and XML documentation.

SharpTool_ListImplementations

Finds all implementations of an interface/abstract method or derived classes of a base class.

SharpTool_LoadProject

Provides a detailed structural overview of a specific project within the loaded solution, including namespaces and types, to aid AI understanding of the project's layout.

SharpTool_LoadSolution

Initializes the workspace with a given .sln file. This is the primary entry point.

SharpTool_ManageAttributes

Reads or overwrites attributes on a specific declaration.

SharpTool_ManageUsings

Reads or overwrites using directives in a document.

SharpTool_MoveMember

Moves a member from one type/namespace to another.

SharpTool_OverwriteMember

Replaces the definition of an existing member or type with new code, or deletes it.

SharpTool_OverwriteRoslynDocument

Overwrites an existing file with new content.

SharpTool_ReadRawFromRoslynDocument

Reads the raw content of a file (indentation omitted).

SharpTool_ReadTypesFromRoslynDocument

Lists all types and their members defined within a specific source file.

SharpTool_RenameSymbol

Renames a symbol and updates all its references throughout the solution.

SharpTool_RequestNewTool

Allows the AI to request new tools or features, logging the request for human review.

SharpTool_SearchDefinitions

Performs a regex-based search across symbol declarations and signatures in both source code and compiled assemblies.

SharpTool_Undo

Reverts the last applied change using Git integration.

SharpTool_ViewDefinition

Displays the source code of a symbol (class, method, etc.), including contextual information like call graphs or type references.