(config: SessionFsConfig)
| 205 | |
| 206 | |
| 207 | def _validate_session_fs_config(config: SessionFsConfig) -> None: |
| 208 | if not config.get("initial_working_directory"): |
| 209 | raise ValueError("session_fs.initial_working_directory is required") |
| 210 | if not config.get("session_state_path"): |
| 211 | raise ValueError("session_fs.session_state_path is required") |
| 212 | if config.get("conventions") not in ("posix", "windows"): |
| 213 | raise ValueError("session_fs.conventions must be either 'posix' or 'windows'") |
| 214 | |
| 215 | |
| 216 | def _mcp_servers_to_wire( |