Skip to content

Conversation

joshsny
Copy link
Collaborator

@joshsny joshsny commented Sep 2, 2025

Create a langchain python integration, and a wrapper package for the MCP server to make it easy for people to use PostHog in langchain agents.

@Copilot Copilot AI review requested due to automatic review settings September 2, 2025 15:50
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR creates a Python agent toolkit wrapper and LangChain integration for the PostHog MCP server. It transforms the existing Python MCP implementation into a more accessible toolkit that allows developers to easily integrate PostHog tools with LangChain agents.

  • Renames the package from posthog-mcp-python to posthog-agent-toolkit with updated dependencies
  • Creates a new LangChain integration with PostHogAgentToolkit class that wraps the MCP server
  • Adds a complete example implementation showing how to use PostHog tools in a LangChain agent for product usage analysis

Reviewed Changes

Copilot reviewed 11 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
python/pyproject.toml Updates package metadata and adds LangChain dependencies
python/requirements-test.txt Removes test dependencies (entire file deleted)
python/posthog_agent_toolkit/ Creates new package structure with toolkit and LangChain integration
examples/langchain/ Adds complete example with configuration, code, and documentation
.github/workflows/publish.yml Updates CI to specify TypeScript path for package version checking

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@joshsny joshsny requested a review from JonathanLab September 2, 2025 15:54
Copy link
Collaborator

@JonathanLab JonathanLab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚢

@joshsny joshsny merged commit c793ad1 into main Sep 3, 2025
9 checks passed
@joshsny joshsny deleted the python-package branch September 3, 2025 10:53
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.

2 participants