Skip to content

Add Model Context Providers support #1108

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

jadb
Copy link

@jadb jadb commented May 27, 2025

Hi @simonw,

Thanks for an awesome package!

Curious. Would you consider adding this to core so I give it a final varnish based on your suggestions before 0.26?

Couldn't do it as a plugin as it requires to plug at certain points not offered by plugin hooks. But the full MCP-support plugin is ready if this makes into core.

Cheers 🍺

jadb and others added 3 commits May 27, 2025 14:08
- Documented the `Context`, `ContextItem`, `ContextProvider`
  classes and the default `EmbeddingsContextProvider`, including
  CLI usage of `llm context list`
- Added instructions on implementing the `register_context_providers`
  hook with a minimal example plugin
- Implement FragmentsContextProvider in llm/context.py
    (indexes stored prompt fragments and exposes a similarity search API)
- Export FragmentsContextProvider in llm/__init__.py (and add it to
__all__)
- Register FragmentsContextProvider in
default_plugins/context_providers.py
- Update docs/context‑providers.md to document the new
FragmentsContextProvider
- Add tests/test_fragments_context_provider.py to validate fragment search
logic
@jadb jadb changed the title Add MCP support Add Model Context Providers support May 27, 2025
@jadb
Copy link
Author

jadb commented May 29, 2025

@simonw ?

@simonw simonw force-pushed the main branch 2 times, most recently from 569b316 to f5a38d3 Compare June 1, 2025 19:31
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.

1 participant