-
Notifications
You must be signed in to change notification settings - Fork 16
feat: python agent toolkit wrapper + langchain integration #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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
toposthog-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.
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚢
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.