Skip to content

[codex] Add transport-aware path policy#67

Open
samuelduchesne wants to merge 1 commit into
mainfrom
http-path-policy
Open

[codex] Add transport-aware path policy#67
samuelduchesne wants to merge 1 commit into
mainfrom
http-path-policy

Conversation

@samuelduchesne
Copy link
Copy Markdown
Collaborator

Summary

Adds transport-aware filesystem policy for local stdio versus network transports:

  • keeps direct server-local input paths available for stdio/local users
  • requires explicit hosted path configuration for HTTP/SSE startup (IDFKIT_MCP_UPLOAD_DIR, IDFKIT_MCP_OUTPUT_DIRS, IDFKIT_MCP_SIMULATION_DIR)
  • disables direct server-local input paths for network transports unless IDFKIT_MCP_INPUT_DIRS is configured
  • validates OSM conversion paths, simulation output directories, and persisted session restore paths against the configured policy
  • updates docs and tests for the new deployment behavior

Why

The external security review correctly identified that arbitrary server-local file reads/writes are acceptable for local MCP use but risky for hosted or multi-user HTTP deployments. This change makes that distinction explicit in code and docs without blocking the local desktop workflow.

Validation

  • uv run ruff check .
  • uv run ruff format --check .
  • uv run pyright
  • uv run pytest
  • pre-commit hooks during git commit

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

github-actions Bot added a commit that referenced this pull request May 4, 2026
@samuelduchesne samuelduchesne marked this pull request as ready for review May 19, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant