Skip to content

Comments

Ai 2573 Set userAgent to ingeration/mcp/version in integration tests#396

Open
mariankrotil wants to merge 3 commits intomainfrom
AI-2573-set-custom-user-agent-integ
Open

Ai 2573 Set userAgent to ingeration/mcp/version in integration tests#396
mariankrotil wants to merge 3 commits intomainfrom
AI-2573-set-custom-user-agent-integ

Conversation

@mariankrotil
Copy link
Contributor

Description

Linear: AI-2573

Change Type

  • Major (breaking changes, significant new features)
  • Minor (new features, enhancements, backward compatible)
  • Patch (bug fixes, small improvements, no new features)

Summary

Set a distinct integration-test client identity/User-Agent to avoid default mcp/0.1.0 in test traffic.

Changes include:

  • Added centralized integration test client identity in integtests/conftest.py:
    • INTEGTEST_CLIENT_INFO = Implementation(name="integtest/mcp", version=<current package version>)
    • INTEGTEST_USER_AGENT = f"{name}/{version}"
  • Added autouse test fixtures to enforce defaults:
    • Default client_info for all fastmcp.Client(...) in integration tests.
    • Overridden SessionStateMiddleware outbound User-Agent for server-driven integration flows.
  • Updated integration test context setup (mcp_context) to use integration client params and client ID defaults.
  • Updated integtests/test_errors.py to use centralized constants for user-agent assertions.
  • Bumped project version to 1.44.7 and synced uv.lock.

Testing

  • Tested with Cursor AI desktop (Streamable-HTTP transports)

Optional testing

  • Tested with Cursor AI desktop (all transports)
  • Tested with claude.ai web and canary-orion MCP (SSE and Streamable-HTTP)
  • Tested with In Platform Agent on canary-orion
  • Tested with RO chat on canary-orion

Checklist

  • Self-review completed
  • Unit tests added/updated (if applicable)
  • Integration tests added/updated (if applicable)
  • Project version bumped according to the change type (if applicable)
  • Documentation updated (if applicable)

@linear
Copy link

linear bot commented Feb 18, 2026

@mariankrotil mariankrotil changed the title Ai 2573 set custom user agent integ Ai 2573 Set userAgent to ingeration/mcp/version in integration tests Feb 18, 2026
@mariankrotil mariankrotil self-assigned this Feb 18, 2026
@mariankrotil
Copy link
Contributor Author

image

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