Skip to content

docs/test: McpHttpResponse 型誤記修正 + X-Forwarded-For 警告 + test fixture 整理#143

Merged
hideyukiMORI merged 1 commit into
mainfrom
fix/114-119-docs-test-manual
May 19, 2026
Merged

docs/test: McpHttpResponse 型誤記修正 + X-Forwarded-For 警告 + test fixture 整理#143
hideyukiMORI merged 1 commit into
mainfrom
fix/114-119-docs-test-manual

Conversation

@hideyukiMORI
Copy link
Copy Markdown
Owner

Summary

PR #114 / #119 が merge conflict のため手動適用。

PR #114 (#107) 残り差分

  • McpHttpResponse.body の型誤記 (dict | liststr) を両言語ドキュメントで修正
  • request_id() メソッドと McpHttpClientProtocol.has_authentication() を追記

PR #119 (#111/#113) 残り差分

  • ADR-0006 に X-Forwarded-For 偽装リスクと本番運用上の緩和策を追記
  • framework-modules.md (EN/JA) に同じ警告ノートを追記
  • tests/example/conftest.py を新規作成し client フィクスチャを集約
  • note / tag HTTP テストを _client() ヘルパーから conftest fixture に移行(DRY)

Test plan

  • uv run pytest — 178 tests passed, 91.32% coverage
  • uv run mypy src/ — no issues
  • uv run ruff check src/ tests/ — no issues
  • uv run ruff format --check src/ tests/ — no issues

Closes #107 #111 #113

🤖 Generated with Claude Code

PR #114 (#107) の残り差分: McpHttpResponse.body 型を str に修正・request_id() 追記
PR #119 (#111/#113) の残り差分:
 - ADR-0006 に X-Forwarded-For 偽装リスクと緩和策を追記
 - framework-modules.md (EN/JA) に同警告を追記
 - tests/example/conftest.py に共有 client fixture を作成
 - note・tag HTTP テストを conftest fixture に移行

Co-Authored-By: Claude Sonnet 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.

docs: McpHttpResponse の body 型が誤記(str ではなく dict|list と記載)

1 participant