feat(mcp): ask the user mid-call when no index exists (elicitation)

Aperta
#121 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
22/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

The payload names no source files, so start with the requirement MRTR-01 in the linked planning file and the open question about #74 (serve --mcp outside an indexed repo). Settle how the server negotiates client capability before any prompt is sent. Done means wire-oracle transcripts exist for a client that supports the prompt and one that does not, and both behave as specified.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:mcp feature priority:low spec-needed
What problem does this solve?

In an unindexed repo, the MCP server returns an empty tool set or an error, and the agent has to work out that codegraph init is the remedy.

What should it do?

Use resultType: "input_required" to ask "no index found here, initialize now?" and proceed on yes.

Which surface does this affect?

MCP (agent-facing tools)

Is this covered by an existing command or tool today?

No. Note the interaction with #74 (serve --mcp outside an indexed repo).

Acceptance criteria
  • Behavior behind client capability negotiation; wire-oracle transcripts for a client that supports it and one that does not.

Source (GSD planning files, archived at d384473e): .planning/milestones/v0.3.0-REQUIREMENTS.md:62 (MRTR-01); .planning/ROADMAP.md (Later)


🤖 Generated with Claude Code

https://claude.ai/code/session_01UNqdnC3q6U362BvyfxuKCF

Lingua principale
Go
Stelle
0
Fork
0
Merge medio
7h 42m
PR unite (30g)
111

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di seanb4t/codegraph-go

Tutte le issue di seanb4t/codegraph-go

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.