Skip to content

Conversation

@fahreddinozcan
Copy link
Contributor

@fahreddinozcan fahreddinozcan commented Dec 8, 2025

create python sdk

- Move TypeScript packages to packages/ts/ (sdk, mcp, ai-sdk)
- Update pnpm workspace to use packages/ts/*
- Update GitHub Actions workflows for new paths
- Update package.json repository directory fields
- Add Python-specific entries to .gitignore

This prepares the monorepo structure for adding Python SDK at packages/py/
@linear
Copy link

linear bot commented Dec 8, 2025

CTX7-907 Python SDK


Async version: `await client.search_library_async(query, library_name)`

### `client.get_context(query: str, library_id: str, *, type="txt") -> str | list[Documentation]`
Copy link
Collaborator

Choose a reason for hiding this comment

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

default is json right?


- `query`: The user's question or task
- `library_id`: Context7 library ID (e.g., `/facebook/react`)
- `type`: Response format - `"txt"` (default) returns plain text, `"json"` returns list of Documentation objects
Copy link
Collaborator

Choose a reason for hiding this comment

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

also here

Copy link
Collaborator

@enesgules enesgules left a comment

Choose a reason for hiding this comment

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

The TS SDK has type option for searchLibrary and Python doesn't do we need to add it to here too? What do you think?

Copy link
Collaborator

@enesgules enesgules left a comment

Choose a reason for hiding this comment

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

Python SDK has a configurable base_url but TS SDK doesn't have it. Should we remove this or add it to TS SDK too?

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.

3 participants