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 support for mcp tools with rig agents + add anthropic prompt caching #213

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

Conversation

edisontim
Copy link
Contributor

Allows developers to use mcp tools and servers with rig.

Example usage:

        use mcp_client_rs::client::ClientBuilder;

        let fetch_client = ClientBuilder::new("uvx")
            .arg("mcp-server-fetch")
            .spawn_and_initialize()
            .await?;
        let fetch_tools = fetch_client.list_tools().await?.tools;

        let fetch_client = Arc::new(fetch_client);
        
        for tool in fetch_tools {
            agent = agent.mcp_tool(tool, fetch_client.clone());
        }

@edisontim edisontim changed the title Allow mcp_tools Add support for mcp tools with rig agents Jan 17, 2025
@edisontim edisontim changed the title Add support for mcp tools with rig agents feat: Add support for mcp tools with rig agents Jan 17, 2025
@edisontim edisontim changed the title feat: Add support for mcp tools with rig agents feat: Add support for mcp tools with rig agents + add anthropic prompt caching Jan 19, 2025
@edisontim
Copy link
Contributor Author

@cvauclair could you have a look at this please?

@cvauclair
Copy link
Contributor

Hey @edisontim thanks for the PR! FYI we are currently looking at implementing MCP (clients, servers and compatibility with existing agents) directly into Rig, which is why there's been a delay to get this reviewed. I'll make a tracking issue for this so we can have a central place to discuss everything MCP related!

@edisontim
Copy link
Contributor Author

Hey @cvauclair, any news on the issue to track MCP development?

@caibirdme
Copy link

any issue to track this? I'm willing to contribute if there're some clear planing for MCP

@edisontim
Copy link
Contributor Author

@cvauclair do you guys have a path for MCP?

@edisontim
Copy link
Contributor Author

@cvauclair an answer would be appreciated. I'm continuing to push on this branch and imo it brings to the table multiple interesting features for anthropic users, namely the thinking feature for the new sonnet3.7 and prompt caching.
It would be interesting to merge this branch to the main so I can also use new features implemented in the main branch, and how I should proceed with MCP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants