Commit c00a1e7
vijay
Extract parallel directory-URI validator in Skills handlers
_handle_read_directory inlined the same "validate incoming URI, convert
ValueError to MCPError" pattern that _handle_get had already extracted
into a helper. Add a parallel _require_directory_uri so both handlers
open with a symmetric one-line precondition check, matching the
_require_ui_scheme helper idiom from the Apps extension.1 parent d31511c commit c00a1e7
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 129 | + | |
133 | 130 | | |
134 | 131 | | |
135 | 132 | | |
| |||
147 | 144 | | |
148 | 145 | | |
149 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
150 | 154 | | |
151 | 155 | | |
152 | 156 | | |
| |||
0 commit comments