sensitive property

bool sensitive
final

Whether this parameter should be marked as sensitive.

Sensitive parameters (like passwords, API keys) are surfaced to downstream tooling so it can mask values in UIs and logs. When sensitive: true:

  • .mcp.json inputSchema adds "x-sensitive": true on the property (plus "format": "password" for string types).
  • .openapi.json adds writeOnly: true on the schema (plus format: 'password' for string types), following OpenAPI 3.0 conventions for secrets.

MCP clients and OpenAPI UIs may use these markers to hide the value.

Implementation

final bool sensitive;