feat(mcp): declare GitHub repositories in the docs manifest to serve technical docs and code references
Les mainteneurs répondent en général sous 5 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 35/100
- Type d'issue
- Fonctionnalité
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- github, javascript, json
- Domaine
- backend-api-design, documentation, security
Piste de recherche
Start by reading contract/kb-docs.schema.json and contract/ARTIFACT.md, then trace how the manifest is validated and carried into the generated search index and MCP responses. Check the existing MCP work in #119, #128, and #129 for integration points. Done means the optional repository declarations are validated, included in MCP output, documented, and covered by hermetic schema, build, and MCP tests.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Feature Description
Let a docs app declare one or more GitHub repositories in the kb-docs.json manifest (contract/kb-docs.schema.json) as its source code references. When the knowledge base is consumed through the MCP server (#119, #128, #129), the server can use that declaration to serve technical documentation and point to the code, not only the user-facing docs.
Problem / Opportunity
The knowledge base is built from user documentation. Agents and developers using it through MCP also need technical detail: how a service is implemented, where a behaviour lives, which module owns a config key. Today the MCP server has no way to know which repositories back a doc app, so it cannot link answers to code or serve the technical docs that exist (README, docs/, ADRs, API specs). Consumers must guess repository names.
Acceptance Criteria
kb-docs.jsonaccepts an optionalrepositorieslist per app. Each entry has at leasturl(GitHubowner/repo), and optionallyref,role/description, andpaths(the technical-doc and source locations to expose).contract/kb-docs.schema.jsonvalidates it. Invalid values fail the build with a clear message. Existing manifests without the field stay valid (non-breaking, optional).- Repository values are validated strictly: allow-listed host (github.com), no shell interpolation, no path traversal in
paths. - The build carries the declaration into the generated MCP data (search index / app metadata).
- MCP responses for an app include the repository references (repo, ref, deep links to files or paths) so clients can fetch code on their own.
- Behaviour with MCP disabled is unchanged: nothing is rendered in the HTML output.
contract/ARTIFACT.mddocuments the field. Tests cover schema, build and MCP output, and stay hermetic (committed fixtures, no network).
Proposed Solution
Add to the app definition in the manifest:
"repositories": [
{
"url": "https://github.com/AbsaOSS/example-service",
"ref": "master",
"role": "source",
"description": "Service implementation",
"paths": ["docs/", "src/", "openapi.yaml"]
}
]
Start with references only: the MCP server returns links and metadata and does not clone or index code at build time (keeps the build hermetic). Fetching or indexing technical docs from the repos could follow as a separate opt-in step, with a documented trust model since content comes from other repositories.
Alternatives considered:
- Convention: infer the repo from the release artifact's origin. Implicit, breaks for monorepos and packaged or iframe apps.
- A separate registry file in this repo. Moves ownership away from the doc app's own repo and drifts.
Dependencies / Related
#119, #128, #129 (MCP server, search index, runtime). Touches contract/, so it must be called out as a contract change in the PR (additive, optional field).
Additional Context
Sub-app artifacts are untrusted input (see AGENTS.md), so the repository references need the same validation as the rest of the manifest.
- Langage dominant
- JavaScript
- Étoiles
- 0
- Forks
- 0
- Merge moyen
- 3 j 8 h
- PR mergées (30 j)
- 5
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de AbsaOSS/knowledge-base
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 30/100
AbsaOSS/knowledge-base#118 ·
Les mainteneurs répondent en général sous 5 jours
-
feat: expose knowledge-base documentation through an MCP serverPeut-être pris @oto-macenauer-absa l’a pris il y a 32 jours. Ouverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
AbsaOSS/knowledge-base#117 · 1 personne assignée ·
Les mainteneurs répondent en général sous 5 jours
-
enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 52/100
AbsaOSS/knowledge-base#114 · 1 réaction ·
Les mainteneurs répondent en général sous 5 jours
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
AbsaOSS/knowledge-base#113 ·
Les mainteneurs répondent en général sous 5 jours
-
Dynamic responsive masthead menu from documentation manifestsPeut-être pris @oto-macenauer-absa l’a pris il y a 36 jours. Ouverteenhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
AbsaOSS/knowledge-base#111 · 1 personne assignée ·
Les mainteneurs répondent en général sous 5 jours
Toutes les issues de AbsaOSS/knowledge-base
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
processing/p5.sound.js#132 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
jellyfin/jellyfin-web#8791 ·
Les mainteneurs répondent en général sous 1 jour
-
bug triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 68/100
fjaeckel/seriesoftubes#306 ·
Les mainteneurs répondent en général sous 1 jour
-
ai bug good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
hugomrdias/playwright-test#753 ·
Les mainteneurs répondent en général sous 1 jour