| @@ -70,11 +70,15 @@ | ||
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | 72 | * Whether the active MCP credential is limited to read-only tools. |
| 73 | 73 | * |
| 74 | + * Public because the initialize instructions tell the assistant which | |
| 75 | + * scope this session has, so it can read that as a granted limitation | |
| 76 | + * rather than retrying a tool that will keep refusing (#491). | |
| 77 | + * | |
| 74 | 78 | * @return bool |
| 75 | 79 | */ |
| 76 | - private static function is_read_only(): bool { | |
| 80 | + public static function is_read_only(): bool { | |
| 77 | 81 | if ( null !== self::$read_only_override ) { |
| 78 | 82 | return self::$read_only_override; |
| 79 | 83 | } |
| 80 | 84 | return Mcp_Pairing::is_read_only(); |