Skip to content

Feat/client factory - #15

Merged
kamil-keycard merged 5 commits into
mainfrom
feat/client-factory
Sep 21, 2025
Merged

Feat/client factory#15
kamil-keycard merged 5 commits into
mainfrom
feat/client-factory

Conversation

@kamil-keycard

Copy link
Copy Markdown
Collaborator
  1. Adding client factory to allow override of the HTTP clients in the token exchange and discovery flows. Use this if need to inject custom client configuration/headers
  2. Refactor grant decorator exception handling and return types. Before the decorator would return dict which may not be what the wrapped tool expects. Now the context of token exchange is encapsulated in the access context object, and the decorator avoids raising any exceptions that the caller may not be expecting.
  3. mcp_server_url has been updated to mcp_base_url to align with FastMCP implementation. The address has to be base address otherwise the integrated well known handlers will not work.

Comment thread packages/mcp-fastmcp/tests/fixtures/auth_provider.py Dismissed
Comment thread packages/mcp-fastmcp/tests/fixtures/auth_provider.py Dismissed
Comment thread packages/mcp-fastmcp/tests/fixtures/auth_provider.py Dismissed
Comment thread packages/mcp-fastmcp/tests/integration/test_grant_decorator.py Dismissed
Comment thread packages/mcp-fastmcp/tests/integration/test_grant_decorator.py Dismissed
@github-actions

Copy link
Copy Markdown
Contributor

📦 Release Preview

This analysis shows the expected release impact:

📈 Expected Version Changes

keycardai-mcp-fastmcp: 0.4.1 → 0.5.0 (MINOR)

📋 Package Details

[
  {
    "package_name": "keycardai-mcp-fastmcp",
    "package_dir": "packages/mcp-fastmcp",
    "has_changes": true,
    "current_version": "0.4.1",
    "next_version": "0.5.0",
    "increment": "MINOR"
  }
]

📝 Changelog Preview

Changelog for keycardai:
## Unreleased

## 0.2.0-keycardai (2025-09-10)

## 0.1.0-keycardai (2025-09-07)


- feat(keycardai): initial release
Changelog for keycardai-mcp-fastmcp:
## Unreleased


- feat(keycardai-mcp-fastmcp): client factory and base url update

## 0.4.1-keycardai-mcp-fastmcp (2025-09-19)


- fix(keycardai-mcp-fastmcp): lock the oauth dependency

## 0.4.0-keycardai-mcp-fastmcp (2025-09-18)


- feat(keycardai-mcp-fastmcp): refactor API for the provider

## 0.3.0-keycardai-mcp-fastmcp (2025-09-15)


- feat(keycardai-mcp-fastmcp): unify client arguments

## 0.2.0-keycardai-mcp-fastmcp (2025-09-10)


- fix(keycardai-mcp-fastmcp): pin fastmcp for compatibiity
- feat(keycardai-mcp-fastmcp): allowed to override the client

## 0.1.0-keycardai-mcp-fastmcp (2025-09-07)
Changelog for keycardai-mcp:
## Unreleased

## 0.4.1-keycardai-mcp (2025-09-18)


- fix(keycardai-mcp): support both sync and async tool calls

## 0.4.0-keycardai-mcp (2025-09-18)


- feat(keycardai-mcp): default domain handling

## 0.3.1-keycardai-mcp (2025-09-17)


- fix(keycardai-mcp): check audience when configured

## 0.3.0-keycardai-mcp (2025-09-16)


- feat(keycardai-mcp): multi-zone mcp routing
- feat(keycardai-mcp): advanced server handlers
- feat(keycardai-mcp): auth provider implementation

## 0.1.0-keycardai-mcp (2025-09-10)
Changelog for keycardai-oauth:
## Unreleased

## 0.4.1-keycardai-oauth (2025-09-17)


- fix(keycardai-oauth): audience checks

## 0.4.0-keycardai-oauth (2025-09-16)


- feat(keycardai-oauth): multi-zone authentication strategy
- feat(keycardai-oauth): jwt capabilities

## 0.2.0-keycardai-oauth (2025-09-10)


- feat(keycardai-oauth): remove the impersonation logic

## 0.1.0-keycardai-oauth (2025-09-07)


- feat(keycardai-oauth): initial release

This comment was automatically generated by the release preview workflow.

@kamil-keycard
kamil-keycard merged commit 9ace317 into main Sep 21, 2025
6 checks passed
@kamil-keycard
kamil-keycard deleted the feat/client-factory branch September 21, 2025 09:33
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.

2 participants