Re-add the static properties MCP/OpenAPI schema sections once harper#1921 lands
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- graphql, openapi
- Área
- api, documentation
Línea de trabajo
Lee las indicaciones de versionado de AGENTS.md y, después, inspecciona el código fusionado de harper#1921 y harper#1944 y el tag de release en el que se incluye. Recupera la redacción anterior de cfdbab61 para los archivos de reference y learn indicados, pero compárala con el unified emitter y las correcciones relacionadas. La tarea estará terminada cuando todas las secciones indicadas describan con precisión el comportamiento publicado y lleven el badge de versión correcto.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Context
PR #605 originally documented static properties as a first-class MCP/OpenAPI schema source. That behavior comes from harper#1921, which is still open (changes requested) — and v5.2.0 through v5.2.6 all shipped without it. The sections were badged v5.2.0, which was false for every released version, so they were removed from #605 in 89f9dac1 and the PR was rescoped to shipped behavior only.
Verification, for whoever picks this up:
$ git show v5.2.6:components/mcp/tools/application.ts | grep 'const attributes'
const attributes = (ResourceClass?.attributes ?? []) as HarperAttribute[];
$ git show pr1921:components/mcp/tools/application.ts | grep 'const attributes'
const attributes = resolveAttributes(ResourceClass) as HarperAttribute[];
resolveAttributes is absent from both components/mcp/tools/application.ts and resources/openApi.ts at v5.2.6.
What needs re-adding once harper#1921 lands
All of this content is still in the branch's history: cfdbab61 is the last commit before the rescope and remains an ancestor of the PR branch, so git show cfdbab61:reference/resources/resource-api.md (and the same for the other files below) recovers the removed text verbatim.
reference/resources/resource-api.md, understatic properties:- which surfaces derive from it, and which explicitly don't
- the JSON Schema vocabulary subsection (lowercase JSON Schema types vs. capitalized GraphQL names; the hazard of a name in neither vocabulary)
- the table of every fragment key Harper reads, with per-surface behavior
- resolution notes for unions, item-less arrays, optional properties, and
static primaryKey - the nested-object + array-of-object example
learn/developers/mcp-and-openapi-metadata.mdx, Path B: the emittedtools/listJSON, the vocabulary warning, the Path-B authoring rubric, and the debugging guidance.reference/mcp/tool-metadata.mdandreference/mcp/tools-and-resources.md: the "schema source isattributes, orstatic propertieswhen absent" clause.reference/mcp/overview.md: same clause on the input-schema bullet.
Blockers and cautions
- Badge against the release #1921 actually ships in, determined per AGENTS.md — from the core repo's git tags, confirming the feature's files exist at the tag, not from
--containsor a branch'spackage.json. As of this writingv5.2.6is the newest tag and v5.3 is the open line, so this is notv5.2.0. Note there is nov5.3milestone in this repo yet. - harper#1944 is also open — it shares one schema emitter so the two surfaces stop diverging. If it lands with or before #1921, the per-surface divergence content (the fragment-key table's asymmetric rows, the nullability and nested-
enum/format/constnotes) collapses and should be written against the unified emitter instead of restored as-is. Derive the text from the merged code, not from either PR's head. - Three related core issues change this text if they're fixed: harper#1940 (already fixed on main — table-less Resources now list to any authenticated user, so the old "super-users only" note must not come back), harper#1941 (nested
hidden), harper#1942 (the two type mappers disagreeing).
What is already correct on main
Don't redo these — they landed with the rescoped #605:
- REST
id.propertyresolving againststatic properties(harper#1933, shipped v5.2.0), plus the 5.2 release-notes entry. attribute_permissionsdoes not narrow MCP tool schemas; the tool list is filtered by table-level permissions.- The output-schema contracts: only
get_*is record-shaped;create_*is{ id },update_*/patch_*are{ ok },delete_*is{ deleted },search_*has none. - Path B states the current gap and points at harper#1923 — that paragraph is what this issue replaces when the gap closes.
- Lenguaje dominante
- MDX
- Estrellas
- 9
- Forks
- 9
- Merge medio
- 2 d 23 h
- PR fusionados (30 d)
- 26
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de HarperFast/documentation
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
HarperFast/documentation#690 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
HarperFast/documentation#677 ·
Los mantenedores suelen responder en 2 días
-
Document markCredentialRejection / credentialRejectionError, the server.getUser rejection tagAbierto
Dificultad 2/5 Medio día Aptitud para principiantes 88/100
HarperFast/documentation#675 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
HarperFast/documentation#665 ·
Los mantenedores suelen responder en 2 días
-
Add Harper deploy behaviorAbiertocontent
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
HarperFast/documentation#478 ·
Los mantenedores suelen responder en 2 días
Todos los issues de HarperFast/documentation
Issues similares
-
good first issue no-box
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
peasant-labs/peasant#596 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
hatchet-dev/hatchet#5179 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
cameri/nostream#811 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día