MCPcopy
hub / github.com/github/github-mcp-server / PromptForm

Method PromptForm

internal/oauth/prompter.go:58–58  ·  view source on GitHub ↗

PromptForm presents a textual acknowledgement prompt and blocks until the user responds. It returns ErrPromptDeclined if the user declines, or ErrPromptUnavailable if the prompt could not be delivered.

(ctx context.Context, p Prompt)

Source from the content-addressed store, hash-verified

56 // user responds. It returns ErrPromptDeclined if the user declines, or
57 // ErrPromptUnavailable if the prompt could not be delivered.
58 PromptForm(ctx context.Context, p Prompt) error
59}
60
61// canPromptURL reports URL support, tolerating a nil Prompter.

Callers 3

beginDeviceMethod · 0.65

Implementers 2

fakePrompterinternal/oauth/testutil_test.go
sessionPrompterinternal/ghmcp/oauth.go

Calls

no outgoing calls