Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

feat: add python implementation#64

Merged
joshsny merged 36 commits into
mainfrom
python-implementation
Aug 12, 2025
Merged

feat: add python implementation#64
joshsny merged 36 commits into
mainfrom
python-implementation

Conversation

@joshsny
Copy link
Copy Markdown
Collaborator

@joshsny joshsny commented Jul 23, 2025

This adds a Python implementation for all tools in the MCP server.

We will use this in a Langchain export, and also in our own Django app to expose the MCP tools.

Copilot AI review requested due to automatic review settings July 23, 2025 15:20
Comment thread .github/workflows/pr-checks-python.yml Fixed
Comment thread .github/workflows/pr-checks-python.yml Fixed
Comment thread .github/workflows/pr-checks-python.yml Fixed
Copy link
Copy Markdown
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@marandaneto
Copy link
Copy Markdown
Member

curious why the TS -> Python migration?

@marandaneto
Copy link
Copy Markdown
Member

@joshsny would you be down adding surveys support for the MCP project? :D

@jonathanlab
Copy link
Copy Markdown
Collaborator

curious why the TS -> Python migration?

We're planning on supporting both agentic workflows + the MCP server in these repository. Most of these Agentic SDK's need a Python package, that's why :)
To do that we are going to share a common tool schema between TS and Python: https://github.com/PostHog/mcp/blob/main/schema/tool-inputs.json
We're planning on supporting OpenAI’s Agents SDK, Vercel’s AI SDK, LangChain and maybe some others.

@joshsny joshsny requested a review from jonathanlab August 8, 2025 14:46
Comment thread python/lib/constants.py Outdated
Copy link
Copy Markdown
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.

Great work! I like what you did with the Result types/type guards as well 🔥

Comment thread python/api/client.py
@joshsny joshsny merged commit 9ca8393 into main Aug 12, 2025
11 checks passed
@joshsny joshsny deleted the python-implementation branch August 12, 2025 06:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants