Skip to content

Conversation

@teamdandelion
Copy link
Collaborator

@teamdandelion teamdandelion commented Jan 9, 2026

# Mirascope v2.0.0-alpha.6 Release Notes

## Thinking Support

We've re-worked the thinking interface. Rather than simply setting thinking=True, you now provider a ThinkingConfig, like {"level": "medium", "include_summaries": True}. The ThinkingLevel is required, and options include "default", "none", "minimal", "low", "medium", "high", and "max". If include_summaries is True, then the model is asked to output summaries of its thoughts. Under the hood, Mirascope will convert the thinking level to the provider-specific representation.

## MCP Support

We've added MCP support to Mirascope! You can now connect to an MCP server using functions in the llm.mcp package, and pass the MCP server's tools to your Mirascope call.

Here is a runnable example showing both thinking and MCP. When invoked, Gemini will use the official FastMCP server to learn about FastMCP, and reports back on its findings.

import asyncio

from mirascope import llm

async def main():

    async with llm.mcp.streamable_http_client(
        "https://gofastmcp.com/mcp"
     as mcp_client:

        tools = await mcp_client.list_tools()
        @llm.call(
          "google/gemini-3-flash-preview",
          thinking={"level": "medium", "include_summaries": True},
          tools=tools,
        )

        async def learn_mcp():
            return "Use the tools to learn about FastMCP, and write a report on the library."


        response = await learn_mcp.stream()
        
        while True# Loop for tool calls
            async for chunk in response.pretty_stream():
                print(chunk, flush=True, end="")
            print()

            if response.tool_calls:
                tool_output = await response.execute_tools()
                response = await response.resume(tool_output)
            else:
                break

if __name__ == "__main__":
    asyncio.run(main())

## Other Fixes

  • Improve OpenAI thinking support to use GPT-5.2 full thinking levels
  • Improve Google thinking support to use thinking levels for Gemini-3 models
  • Improve Google thinking budget calculation to use a proportion of max tokens
  • Refactor llm.Tool construction to make it easier to construct tools that are not decorated functions
  • Future-proof streamed tool calls to support providers that stream multiple tool calls simultaneously
  • Consolidate formatting utilities onto the llm.Format dataclass
  • Improve missing import handling for optional packages (e.g. specific provider sdks)
  • Add the llm.MirascopeProvider for future use with Mirascope Router

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 9, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
v2-docs efaea43 Jan 10 2026, 01:57 AM

@teamdandelion teamdandelion force-pushed the 01-08-chore_python-sdk_update_hardcoded_model_info branch from 2572e59 to 4ec9aba Compare January 9, 2026 18:58
@teamdandelion teamdandelion force-pushed the 01-09-chore_python-sdk_bump_version_to_alpha-6 branch from edbb7c9 to 6d24e8c Compare January 9, 2026 18:59
@teamdandelion teamdandelion force-pushed the 01-08-chore_python-sdk_update_hardcoded_model_info branch from 4ec9aba to 9fa9516 Compare January 9, 2026 19:19
@teamdandelion teamdandelion force-pushed the 01-09-chore_python-sdk_bump_version_to_alpha-6 branch from 6d24e8c to 20d255e Compare January 9, 2026 19:19
@teamdandelion teamdandelion changed the base branch from 01-08-chore_python-sdk_update_hardcoded_model_info to graphite-base/1863 January 9, 2026 19:30
@teamdandelion teamdandelion force-pushed the 01-09-chore_python-sdk_bump_version_to_alpha-6 branch from 20d255e to 6ee7bb9 Compare January 9, 2026 19:35
@graphite-app graphite-app bot changed the base branch from graphite-base/1863 to v2 January 9, 2026 19:36
@teamdandelion teamdandelion force-pushed the 01-09-chore_python-sdk_bump_version_to_alpha-6 branch from 6ee7bb9 to 7fb6b77 Compare January 9, 2026 19:36
Copy link
Collaborator

willbakst commented Jan 10, 2026

Merge activity

  • Jan 10, 1:53 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jan 10, 1:53 AM UTC: Graphite rebased this pull request as part of a merge.
  • Jan 10, 1:58 AM UTC: @willbakst merged this pull request with Graphite.

@willbakst willbakst force-pushed the 01-09-chore_python-sdk_bump_version_to_alpha-6 branch from 7fb6b77 to efaea43 Compare January 10, 2026 01:53
@willbakst willbakst merged commit c213ae0 into v2 Jan 10, 2026
14 checks passed
@willbakst willbakst deleted the 01-09-chore_python-sdk_bump_version_to_alpha-6 branch January 10, 2026 01:58
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.

3 participants