Exclude OAuth authentication resources from native MCP tools
I maintainer di solito rispondono entro 1 giorno
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Problem
The plugin registers its OAuth authentication resource without protocol export metadata in both the configured-provider and no-provider branches of src/index.ts. Harper's native application MCP profile consequently generates get_oauth and, when the configured class supplies POST, create_oauth as application tools.
Authentication endpoints should remain available over REST without being advertised as application tools. This concerns the generated application tool surface, not the plugin's opt-in OAuth authorization server for MCP clients.
Evidence
- Released @harperfast/oauth 2.6.0 and current main at 6ba1ff444ccb100534be2d90bba182c714928e85 have the two registrations without export metadata.
- Harper 5.3.1 Resources.set accepts a third exportTypes argument. Its native application MCP enumerator excludes registrations whose exportTypes.mcp is false.
- A real Harper 5.3.1 fixture kept an ordinary GET/POST resource visible as get_oauth/create_oauth, while a resource registered with { mcp: false } stayed absent from tools/list and continued returning REST 200. No application filtering implementation is needed.
- Native MCP overview documents this registration control.
Change
Pass { mcp: false } in both OAuth resource registrations, including the no-provider fallback. Keep provider configuration, REST behavior, and MCP OAuth authentication/session semantics intact. Exercise configuration reloads as well as initial registration.
Acceptance
- Both registration branches exclude generated OAuth application tools using Harper's existing export metadata.
- A behavioral regression fails on the original registrations and passes with the correction.
- Native tools/list and direct tools/call checks on Harper 5.3.1 confirm exclusion; REST provider/login behavior and relevant OAuth MCP integration checks still pass.
- Configuration reload cannot restore the generated tools.
- Repository unit, integration, lint, and format gates run with recorded outcomes; independent review covers the final source.
This issue prepares a reviewed code fix. Package publication and deployment are separate actions. No release milestone is committed.
Generated by OpenAI Codex; posted via @hdbjeff.
- Lingua principale
- JavaScript
- Stelle
- 1
- Fork
- 3
- Merge medio
- 7h 4m
- PR unite (30g)
- 24
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di HarperFast/oauth
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 53/100
HarperFast/oauth#284 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 69/100
HarperFast/oauth#283 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 18/100
HarperFast/oauth#280 ·
I maintainer di solito rispondono entro 1 giorno
-
Open-issue triage and roadmap (post-2.9.0)Forse già presa @heskew l’ha presa 22 giorni fa. Aperta
HarperFast/oauth#278 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Session docs overstate expiry: no default lifetime, and invalidation clears fields rather than deleting the rowForse già presa @heskew l’ha presa 22 giorni fa. Aperta
HarperFast/oauth#277 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di HarperFast/oauth
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
I maintainer di solito rispondono entro 1 giorno
-
CloudredirectAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
NanmiCoder/dsh-agent-teams#277 ·
I maintainer di solito rispondono entro 1 giorno
-
[ordering-review] workshop order graph: 1 confirmed ordering problem, 3 cycles are false positivesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
githubnext/gh-aw-workshop#4943 ·
I maintainer di solito rispondono entro 1 giorno