SharpTool_AddMember
Adds a new member (method, property, field, nested type, etc.) to a specified type.
How to use it
Project documentation lists SharpTool_AddMember for the SharpToolsMCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
FULL SHARPTOOLSMCP LISTINGOther tools in SharpToolsMCP (20)
Performs complexity analysis (cyclomatic, cognitive, coupling, etc.) on methods, classes, or projects.
Creates a new file with specified content.
Performs regex-based find and replace operations within a specified symbol's declaration or across files matching a glob pattern.
Locates all usages of a symbol across the solution, providing contextual code snippets.
Lists members (methods, properties, etc.) of a type, including signatures and XML documentation.
Finds all implementations of an interface/abstract method or derived classes of a base class.
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.
Initializes the workspace with a given .sln file. This is the primary entry point.
Reads or overwrites attributes on a specific declaration.
Reads or overwrites using directives in a document.
Moves a member from one type/namespace to another.
Replaces the definition of an existing member or type with new code, or deletes it.
Overwrites an existing file with new content.
Reads the raw content of a file (indentation omitted).
Lists all types and their members defined within a specific source file.
Renames a symbol and updates all its references throughout the solution.
Allows the AI to request new tools or features, logging the request for human review.
Performs a regex-based search across symbol declarations and signatures in both source code and compiled assemblies.
Reverts the last applied change using Git integration.
Displays the source code of a symbol (class, method, etc.), including contextual information like call graphs or type references.