MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / MCPTools

Method MCPTools

backend/session.go:371–384  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

369 turns = state.TurnCountValue()
370 }
371 return map[string]any{
372 "input_tokens": input,
373 "output_tokens": output,
374 "total_tokens": input + output,
375 "turn_count": turns,
376 }
377}
378
379func (c *SessionController) ToggleYolo() map[string]any {
380 return c.setYolo(!c.RuntimeConfig().Yolo)
381}
382
383func (c *SessionController) SetYolo(enabled bool) map[string]any {
384 return c.setYolo(enabled)
385}
386
387func (c *SessionController) setYolo(enabled bool) map[string]any {

Callers 1

dispatchResultMethod · 0.80

Calls 3

ListToolsMethod · 0.80
NameMethod · 0.65
DescriptionMethod · 0.65

Tested by

no test coverage detected