McpTool
Una herramienta que un servidor MCP les ofrece a los agentes: su nombre, qué hace y si solo lee.
import McpTool from '@sypnia/ui/astro/McpTool.astro'
Una herramienta que lee y una que escribe
list_tablesHerramientaSolo leeThe tables of the project, with their row counts.
insert_rowsHerramientaCambia datosAdds rows to a table. The agent asks before it runs.
Código
---
import McpTool from '@sypnia/ui/astro/McpTool.astro';
---
<div class="sy-docs sy-stack" style="min-height:0;background:none;--gap:var(--s-4)">
<McpTool name="list_tables" readOnly>The tables of the project, with their row counts.</McpTool>
<McpTool name="insert_rows" readOnly={false}>Adds rows to a table. The agent asks before it runs.</McpTool>
</div> Cuándo usarlo
Úsalo cuando
- La referencia de un servidor MCP.
No lo uses cuando
- Endpoints de una API: eso es Endpoint.
Para todos
- «Solo lee» y «Cambia datos» son palabras, no solo colores.