Repository navigation
Conversation
feat(mcp): add interface property to server events Generated-By: PostHog Desktop Task-Id: 651bf7d9-01f4-4d75-8583-868e29fdd314 (cherry picked from commit a3bd254)
(cherry picked from commit 4ae3d26)
(cherry picked from commit 492d71b)
* Align ASGI and Flask integration defaults * feat(integrations): align request middleware configuration (cherry picked from commit 2f0d67d)
(cherry picked from commit ad553de)
(cherry picked from commit 90f8d69)
…1042) Bumps the uv group with 1 update in the /examples/example-ai-llamaindex directory: [banks](https://github.com/masci/banks). Bumps the uv group with 2 updates in the /examples/example-ai-pydantic-ai directory: [pydantic-ai](https://github.com/pydantic/pydantic-ai) and [pydantic-ai-slim](https://github.com/pydantic/pydantic-ai). Updates `banks` from 2.4.5 to 2.5.1 - [Release notes](https://github.com/masci/banks/releases) - [Commits](masci/banks@v2.4.5...v2.5.1) Updates `pydantic-ai` from 1.102.0 to 1.107.7 - [Release notes](https://github.com/pydantic/pydantic-ai/releases) - [Changelog](https://github.com/pydantic/pydantic-ai/blob/main/docs/changelog.md) - [Commits](pydantic/pydantic-ai@v1.102.0...v1.107.7) Updates `pydantic-ai-slim` from 1.102.0 to 1.107.7 - [Release notes](https://github.com/pydantic/pydantic-ai/releases) - [Changelog](https://github.com/pydantic/pydantic-ai/blob/main/docs/changelog.md) - [Commits](pydantic/pydantic-ai@v1.102.0...v1.107.7) --- updated-dependencies: - dependency-name: banks dependency-version: 2.5.1 dependency-type: indirect dependency-group: uv - dependency-name: pydantic-ai dependency-version: 1.107.7 dependency-type: direct:production dependency-group: uv - dependency-name: pydantic-ai-slim dependency-version: 1.107.7 dependency-type: indirect dependency-group: uv ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit ee686ff)
… fill On v1, context properties are filled inside _enqueue, before before_send. The test patched _enqueue itself, so it saw the event before the fill and lost $request_path and role. It now records the event in before_send. The assertions are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡 Motivation and Context
Stacked on #1048. Part of the 8.0 series (checklist in #1016). Brings what landed on
mainsince #1044 into the 8.0 series, so 8.0 doesn't drop it:$mcp_interfaceon MCP eventsEach upstream commit is cherry-picked with
-x, inmainorder, and changes exactly the same lines as its original. All applied without conflicts.One commit is v1-only: #1040's new
test_context_only_enriches_events_without_redirecting_the_clientpatched_enqueueto read the event. On v1, context properties are filled inside_enqueue, beforebefore_send, so the test saw the event before the fill. It now records the event inbefore_send. The assertions are unchanged.v1 review of the new code: neither PR adds an event builder, writes a legacy
$option property, or sets$lib.$mcp_interfaceis a plain property. #1040's exception capture reuses the existing metadata path that 8.0 already adapted.💚 How did you test it?
ruff format --check,ruff check,mypy(baseline filter),make public_api_check,uv lock --checkandpython -W error -c "import posthog"pass locally.pytest: 4656 passed. Before the test adaptation, the 2 cases of the adapted test failed.📝 Checklist
🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Claude Code cut this sync and checked every new call site against the 8.0 capture rules. The picked release commits consume their changesets, so the only net release change is
posthog/version.py(7.67.0 to 7.68.0), as in #1044.🤖 Generated with Claude Code