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 7 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?

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