contacts: npm run mcp:demo crashes at create_contact (demo runs as the read-only calendar caller)
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, node.js
Línea de trabajo
Read src/api/protocol.js to confirm the caller permissions and scripts/mcp-demo.js around line 174, where the demo starts the server and handles create_contact. Run npm run mcp:demo in src/contacts to reproduce the error; done means the demo reaches “Session complete.” The issue says the author plans to open a PR, so check whether that work is already underway.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
npm run mcp:demo in src/contacts crashes when it reaches create_contact.
The script starts the server as callerApp: 'calendar'. In src/api/protocol.js, ALLOWED_CALLERS gives calendar only READ_METHODS, so create_contact is not offered to it and the server answers -32602 Unknown tool "create_contact". The demo then throws a TypeError at scripts/mcp-demo.js:174, because it reads created.result.structuredContent from an error reply, and never reaches "Session complete." The search and suggest steps before it work.
The server seems to be behaving as designed (the calendar app is read-only on purpose). It is the demo that asks for a tool its caller was not given. The ai caller holds '*'.
Reproduce (main at 117ca24, Node v26.8.1):
git clone https://github.com/HeyPuter/everything && cd everything/src/contacts
npm install
npm run mcp:demo
Expected: the session plays through and ends with Session complete.
Actual (3 of 3 runs, exit 1):
← error -32602 Unknown tool "create_contact"
.../scripts/mcp-demo.js:174
const radiaId = created.result.structuredContent.contact.id
^
TypeError: Cannot read properties of undefined (reading 'structuredContent')
Suggested fix: start the demo server as callerApp: 'ai' and update the banner line. That leaves the server and the calendar's read-only grant alone. With that change npm run mcp:demo exits 0 with Session complete. (3 of 3 runs) and npx vitest run passes (23 files, 313 tests). I'll open a PR that references this issue.
- Lenguaje dominante
- JavaScript
- Estrellas
- 7.1k
- Forks
- 732
- Merge medio
- 2 h 54 min
- PR fusionados (30 d)
- 21
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 HeyPuter/everything
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 60/100
HeyPuter/everything#187 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
HeyPuter/everything#197 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
https://pdf.puter.com/Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
HeyPuter/everything#196 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Login with atmosphereAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
HeyPuter/everything#189 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
HeyPuter/everything#188 · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de HeyPuter/everything
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
hypothesis/client#7592 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
fingerprintjs/fingerprintjs#1235 ·
-
Labor 09 - CSS: fájlnevekAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
complexity: trivial documentation help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
dunia-hub/stellar-402-live#47 ·
Los mantenedores suelen responder en 1 día