Skip to content

READONLY mode support is needed in dotnet MCP server as implemented in Node version #56

@brano

Description

@brano

Could you please implement support for READONLY mode in dotnet version?
So that when env configuration is configured with "READONLY": "true" MCP server will not allow to execute Update/Insert/Drop tools.

"env": {
    "CONNECTION_STRING": "Server=localdev;Database=eCommerce;Integrated Security=True;TrustServerCertificate=True;Encrypt=False",
    "READONLY": "true"
}

dotnet version:

.WithToolsFromAssembly();

Node version:

// Read READONLY env variable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions