MCPcopy Index your code
hub / github.com/github/github-mcp-server / NewServerPrompt

Function NewServerPrompt

pkg/inventory/prompts.go:20–26  ·  view source on GitHub ↗

NewServerPrompt creates a new ServerPrompt with toolset metadata.

(toolset ToolsetMetadata, prompt mcp.Prompt, handler mcp.PromptHandler)

Source from the content-addressed store, hash-verified

18
19// NewServerPrompt creates a new ServerPrompt with toolset metadata.
20func NewServerPrompt(toolset ToolsetMetadata, prompt mcp.Prompt, handler mcp.PromptHandler) ServerPrompt {
21 return ServerPrompt{
22 Prompt: prompt,
23 Handler: handler,
24 Toolset: toolset,
25 }
26}

Callers 3

AssignCodingAgentPromptFunction · 0.92
IssueToFixWorkflowPromptFunction · 0.92
mockPromptFunction · 0.85

Calls

no outgoing calls

Tested by 1

mockPromptFunction · 0.68