• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

Python agent v10.13.0

June 9, 2025Download

Notes

This release of the Python agent adds support for the Model Context Protocol (MCP) and fixes import logic for importlib.metadata and pkg_resources.

Install the agent using easy_install/pip/distribute via the Python Package Index or download it directly from the New Relic download site.

New features

  • Add support for Model Context Protocol (MCP)

    • Adds support for MCP calls in mcp and fastmcp. The agent will now automatically instrument the following core MCP primitives:
      • Tools (via call_tool)
      • Resources (via read_resource)
      • Prompts (via get_prompt)

Bug fixes

  • Fix import logic for importlib.metadata and pkg_resources

    • Updates logic around import of importlib.metadata to also attempt to use the importlib_metadata backport before falling back to pkg_resources.*. This also removes use of sys.version conditionals and fixes issues where Python 3.9 could only use pkg_resources despite having importlib.metadata available.

Support statement

We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date.

See the New Relic Python agent EOL policy for information about agent releases and support dates.

Copyright © 2025 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.