Skip to content

Add MCP client implementation #20

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 5 commits into
base: main
Choose a base branch
from
Open

Add MCP client implementation #20

wants to merge 5 commits into from

Conversation

Kitenite
Copy link

This PR implements a Model Context Protocol (MCP) client for Onlook based on the MCP client development guide.

Features

  • Core MCP client implementation with transport layer
  • Capability management for tools, resources, prompts, and roots
  • Context formatting and management for LLM consumption
  • Utility functions for validation, error handling, and logging
  • Tests for the MCP client
  • Example usage

Implementation Details

The implementation follows the core architecture described in the guide, with a focus on:

  • Type-safe client implementation
  • Modular architecture
  • Comprehensive error handling
  • Flexible transport mechanisms

Link to Devin run: https://app.devin.ai/sessions/3c47c17ab061448f8efecb3bb9af5b6f
Requested by: Slack user in #devin-requests

devin-ai-integration bot and others added 5 commits March 7, 2025 21:55
- Implement Model Context Protocol client based on the development guide
- Add client, transport, and capability management
- Add context formatting and management
- Add utility functions for validation, error handling, and logging
- Add tests for the MCP client
- Add example usage

Co-Authored-By: [email protected] <[email protected]>
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