Skip to content

Add foundation utility modules for HTTP transport#179

Merged
RafaelPo merged 1 commit intomainfrom
feat/foundation-utilities
Feb 21, 2026
Merged

Add foundation utility modules for HTTP transport#179
RafaelPo merged 1 commit intomainfrom
feat/foundation-utilities

Conversation

@RafaelPo
Copy link
Contributor

Summary

PR 1 of 5 in the feat/http-transport split (plan).

Extracts foundational utility modules with no HTTP-specific dependencies:

  • config.pyStdioSettings, HttpSettings, DevHttpSettings (pydantic-settings configuration classes)
  • templates.pyPROGRESS_HTML, RESULTS_HTML, SESSION_HTML MCP App UI widget templates
  • utils.py — Added load_csv() function (loads data from CSV file path, inline CSV string, or JSON records)
  • pyproject.toml — Added pydantic-settings>=2.0.0 dependency

Test plan

  • All 39 existing tests pass
  • Pre-commit hooks pass (formatting, linting, typechecking)
  • Verify no import breakage in downstream modules

🤖 Generated with Claude Code

- config.py: StdioSettings, HttpSettings, DevHttpSettings (pydantic-settings)
- templates.py: MCP App UI HTML templates (progress, results, session widgets)
- utils.py: Add load_csv() for flexible data ingestion (file, inline CSV, JSON)
- pyproject.toml: Add pydantic-settings dependency

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@RafaelPo RafaelPo force-pushed the feat/foundation-utilities branch from 426faa9 to 3284542 Compare February 21, 2026 12:07
@RafaelPo RafaelPo merged commit 3d3db94 into main Feb 21, 2026
5 checks passed
@RafaelPo RafaelPo deleted the feat/foundation-utilities branch February 21, 2026 12:08
RafaelPo added a commit that referenced this pull request Feb 21, 2026
Resolve conflicts keeping feat/http-transport versions for all source
and test files (main got simplified subsets via PRs #179-#181; this
branch has the more evolved implementations). Keep redis[hiredis] and
ARG002 lint ignore from main.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
RafaelPo added a commit that referenced this pull request Feb 21, 2026
Keep main's canonical versions from PRs #179-#181 (foundation utilities,
Redis infrastructure, OAuth auth). Adapt http-transport code to use main's
RedisStore API (state.store.method() instead of state.method()).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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