0.0.20npm · @prismicio/mcp-server · latest release
Observed 2026-08-21T17:30:53.322Z using mcpSecurity-inventory. Protocol 2025-06-18.
| Tool | Category | Risk |
|---|---|---|
add_slice_to_custom_typePURPOSE: Adds a slice to a custom type.
USAGE: Required path for modifying Prismic slice registrations.
Adds/registers/attaches a slice to a custom type and regenerates types.
Do not edit custom type JSON files manually; this tool performs validation and follow-up steps.
RETURNS: A message indicating whether the slice was added to the type or not, and detailed error messages if it is not.Input schema{
"type": "object",
"properties": {
"sliceMachineConfigAbsolutePath": {
"type": "string",
"description": "Absolute path to 'slicemachine.config.json' file"
},
"sliceDirectoryAbsolutePath": {
"type": "string",
"description": "Absolute path to the slice directory (contains 'model.json')"
},
"customTypeDirectoryAbsolutePath": {
"type": "string",
"description": "Absolute path to the custom type directory (contains 'index.json')"
}
},
"required": [
"sliceMachineConfigAbsolutePath",
"sliceDirectoryAbsolutePath",
"customTypeDirectoryAbsolutePath"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} | — | — |
how_to_code_slicePURPOSE: Provides slice and field implementation guidance for Prismic slice components.
USAGE: Use FIRST when working with any Prismic slice component or field implementation.
RETURNS: Prismic Framework-specific field documentation and code examples.Input schema{
"type": "object",
"properties": {
"sliceMachineConfigAbsolutePath": {
"type": "string",
"description": "Absolute path to 'slicemachine.config.json' file"
},
"projectFramework": {
"type": "string",
"enum": [
"next",
"nuxt",
"sveltekit"
],
"description": "Project framework (Next.js, Nuxt, or SvelteKit)"
},
"stylingSystem": {
"type": "string",
"description": "Detected styling system in the project (e.g., 'vanilla-css', 'tailwind', 'css-modules', 'styled-components', 'emotion', 'sass'...)"
},
"modelAbsolutePath": {
"type": "string",
"description": "Absolute path to the slice's 'model.json' file"
},
"fieldsUsed": {
"type": "array",
"items": {
"type": "string",
"enum": [
"prismic.BooleanField",
"prismic.ColorField",
"prismic.ContentRelationshipField",
"ContentRelationshipFieldWithData",
"prismic.DateField",
"prismic.EmbedField",
"prismic.GeoPointField",
"prismic.ImageField",
"prismic.IntegrationField",
"prismic.LinkField",
"prismic.LinkToMediaField",
"prismic.NumberField",
"prismic.GroupField",
"prismic.RichTextField",
"prismic.SelectField",
"prismic.TableField",
"prismic.TitleField",
"prismic.KeyTextField",
"prismic.TimestampField"
]
},
"description": "Field types used in the slice (from 'prismicio-types.d.ts' file)"
}
},
"required": [
"sliceMachineConfigAbsolutePath",
"projectFramework",
"stylingSystem",
"modelAbsolutePath",
"fieldsUsed"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} | — | — |
how_to_mock_slicePURPOSE: Generate a model-valid slice mock (mocks.json) and provide guidance for text-only refinements.
USAGE: Use when creating or updating slice mocks.
RETURNS: A JSON mock covering all variations, plus guidance for text-only refinements.Input schema{
"type": "object",
"properties": {
"sliceMachineConfigAbsolutePath": {
"type": "string",
"description": "Absolute path to 'slicemachine.config.json' file"
},
"sliceDirectoryAbsolutePath": {
"type": "string",
"description": "Absolute path to the slice directory (contains model.json)"
},
"userIntent": {
"type": "string",
"description": "User-provided guidance describing desired mock changes, tone, quantities, constraints"
}
},
"required": [
"sliceMachineConfigAbsolutePath",
"sliceDirectoryAbsolutePath",
"userIntent"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} | — | — |
how_to_model_slicePURPOSE: Provide detailed, opinionated guidance to create or update Prismic slice model files using modern best practices, including naming, file placement, allowed fields, shapes, and configuration.
USAGE: Use FIRST for any Prismic slice creation or modeling request. Do not use for component or mock implementation.
Input Type Selection Rules:
- If the user attaches an image, include "image".
- If the user attaches code, include "code".
- Include "text" ONLY if the prompt contains model-related information (e.g., explicitly describes desired fields/structure, adds nuance, or overrides what is seen in the code/image).
- It is acceptable to include multiple input types when each adds model-relevant signal per the rules above.
RETURNS: Step-by-step modeling instructions, naming conventions, final Prismic model shapes, comprehensive field shape reference, opinionated modeling guidance, validation and testing steps.Input schema{
"type": "object",
"properties": {
"sliceMachineConfigAbsolutePath": {
"type": "string",
"description": "Absolute path to 'slicemachine.config.json' file"
},
"sliceName": {
"type": "string",
"pattern": "^[A-Z][a-zA-Z0-9]*$",
"description": "The name of the slice, it MUST be PascalCase, e.g., 'SliceName', cannot start with a number, and with no special characters allowed"
},
"isNewSlice": {
"type": "boolean",
"description": "Whether this is a new slice creation (true) or updating existing slice (false)"
},
"contentRequirements": {
"type": "string",
"description": "Description of what content the slice should contain (e.g., 'hero with title, description, and CTA button')"
},
"inputTypes": {
"type": "array",
"items": {
"type": "string",
"enum": [
"text",
"image",
"code"
]
},
"minItems": 1,
"description": "The kinds of input present in the prompt."
}
},
"required": [
"sliceMachineConfigAbsolutePath",
"sliceName",
"isNewSlice",
"contentRequirements",
"inputTypes"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} | — | — |
save_slice_dataPURPOSE: Creates or updates a Prismic slice model and/or mocks in your project with given valid data, performing local changes to the slice library.
USAGE: Use to validate and create/update slice data (model and/or mocks).
RETURNS: Success confirmation or detailed validation errors if the data is invalid.Input schema{
"type": "object",
"properties": {
"sliceMachineConfigAbsolutePath": {
"type": "string",
"description": "Absolute path to 'slicemachine.config.json' file"
},
"sliceAbsolutePath": {
"type": "string",
"description": "Absolute path to the directory of the slice to be created/updated"
},
"data": {
"type": "object",
"properties": {
"model": {
"type": "object",
"additionalProperties": {},
"description": "The JSON model structure of the slice to be created/updated. Omit to keep the existing model. Fails if the model does not exist."
},
"mocks": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": {}
},
"description": "The JSON mocks structure of the slice to be created/updated. Omit to keep the existing mocks or generate placeholder ones (if they don't exist yet)."
}
},
"additionalProperties": false,
"description": "The data to be saved for the slice. At least one of 'model' or 'mocks' must be specified."
}
},
"required": [
"sliceMachineConfigAbsolutePath",
"sliceAbsolutePath",
"data"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} | — | — |
No completed comparison is available.
| Risk | Change | Subject |
|---|---|---|
| No material changes recorded. | ||
| Severity | Finding | Advisory |
|---|---|---|
| No confirmed vulnerability is published for this version. | ||
Artifact SHA-256: a215637170fd5342d3545d7d05dbcfd74b0d97581b1b929e14053983a06e85db
Scanner: mcp-proof-engine 0.1.0.