MCPcopy Index your code
hub / github.com/apache/answer / NewMCPSearchAnswerCond

Function NewMCPSearchAnswerCond

internal/schema/mcp_schema.go:165–171  ·  view source on GitHub ↗
(request mcp.CallToolRequest)

Source from the content-addressed store, hash-verified

163}
164
165func NewMCPSearchAnswerCond(request mcp.CallToolRequest) *MCPSearchCond {
166 cond := &MCPSearchCond{}
167 if questionID, ok := getRequestValue(request, MCPSearchCondQuestionID); ok {
168 cond.QuestionID = questionID
169 }
170 return cond
171}
172
173func NewMCPSearchQuestionDetail(request mcp.CallToolRequest) *MCPSearchQuestionDetail {
174 cond := &MCPSearchQuestionDetail{}

Callers 1

MCPAnswersHandlerMethod · 0.92

Calls 1

getRequestValueFunction · 0.85

Tested by

no test coverage detected