feat: add ClientRequestContext type alias for client-side handlers (#1989)
This commit is contained in:
parent
74f41ff1ae
commit
4fc49c62bd
1 changed files with 55 additions and 37 deletions
4
.github/actions/conformance/client.py
vendored
4
.github/actions/conformance/client.py
vendored
|
|
@ -38,9 +38,9 @@ from mcp.client.auth.extensions.client_credentials import (
|
|||
PrivateKeyJWTOAuthProvider,
|
||||
SignedJWTParameters,
|
||||
)
|
||||
from mcp.client.context import ClientRequestContext
|
||||
from mcp.client.streamable_http import streamable_http_client
|
||||
from mcp.shared.auth import OAuthClientInformationFull, OAuthClientMetadata, OAuthToken
|
||||
from mcp.shared.context import RequestContext
|
||||
|
||||
# Set up logging to stderr (stdout is for conformance test output)
|
||||
logging.basicConfig(
|
||||
|
|
@ -187,7 +187,7 @@ async def run_sse_retry(server_url: str) -> None:
|
|||
|
||||
|
||||
async def default_elicitation_callback(
|
||||
context: RequestContext[ClientSession],
|
||||
context: ClientRequestContext,
|
||||
params: types.ElicitRequestParams,
|
||||
) -> types.ElicitResult | types.ErrorData:
|
||||
"""Accept elicitation and apply defaults from the schema (SEP-1034)."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue