Documentation
¶
Index ¶
- Variables
- func AppendCall(st *state.State, method string, res *CallResult, err error)
- func IsSavedTokenRejected(err error) bool
- func ListTools(ctx context.Context, session *mcp.ClientSession) ([]*mcp.Tool, error)
- func ServerInstructions(session *mcp.ClientSession) string
- type CallResult
- type Client
- type StaticOAuthHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSavedTokenRejected = errors.New("saved token was rejected; refresh or re-authorize")
Functions ¶
func AppendCall ¶
func AppendCall(st *state.State, method string, res *CallResult, err error)
func IsSavedTokenRejected ¶
func ServerInstructions ¶
func ServerInstructions(session *mcp.ClientSession) string
Types ¶
type CallResult ¶
type Client ¶
func (*Client) ConnectWithHandler ¶
func (c *Client) ConnectWithHandler(ctx context.Context, serverURL string, handler auth.OAuthHandler) (*mcp.ClientSession, error)
type StaticOAuthHandler ¶
func (*StaticOAuthHandler) TokenSource ¶
func (h *StaticOAuthHandler) TokenSource(context.Context) (oauth2.TokenSource, error)
Click to show internal directories.
Click to hide internal directories.