Skip to content
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

Feat: add model context protocol #40

Merged
merged 13 commits into from
Jan 6, 2025
Merged

Feat: add model context protocol #40

merged 13 commits into from
Jan 6, 2025

Conversation

jirispilka
Copy link
Collaborator

@jirispilka jirispilka commented Jan 3, 2025

Add Model Context Protocol (MCP) server integration.

The code has been significantly refactored to support the MCP server.
When a request is received, a promise is created, and the crawling process starts. The promise is resolved or rejected depending on whether the crawling succeeds, fails, or times out.

The Actor now supports the following modes:

  • Normal mode: Runs as a standalone Actor.
  • Standby mode: Provides a /search endpoint for incoming requests, supports SSE transport with /sse and /message endpoints for Model Context Protocol integration.

@jirispilka jirispilka requested a review from jancurn January 4, 2025 10:53
@jirispilka
Copy link
Collaborator Author

jirispilka commented Jan 4, 2025

@jancurn Let me know whether you'll have time to review it.
I've tested it and it works.

Build 0.1.27, label beta-3 contains the latest changes.

Copy link
Member

@jancurn jancurn left a comment

Choose a reason for hiding this comment

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

Looks good from a super-quick look

@jirispilka jirispilka merged commit 35b5a1c into master Jan 6, 2025
1 check passed
@jirispilka jirispilka deleted the feat/mcp branch January 6, 2025 14:03
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.

2 participants