mcpcontext

package
v0.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package mcpcontext provides context helpers for MCP session state. These are in a separate package to avoid import cycles between middleware and toolkit packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProgressToken

func GetProgressToken(ctx context.Context) any

GetProgressToken retrieves the progress token from the context.

func GetServerSession

func GetServerSession(ctx context.Context) *mcp.ServerSession

GetServerSession retrieves the ServerSession from the context.

func WithProgressToken

func WithProgressToken(ctx context.Context, token any) context.Context

WithProgressToken adds a progress token to the context.

func WithServerSession

func WithServerSession(ctx context.Context, ss *mcp.ServerSession) context.Context

WithServerSession adds a ServerSession to the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL