feat: graph validation and custom JSON-LD
- seo_schema (seoschema, E8) with the C17 server rules: invalid JSON with line and column, non-objects, 16 KB, depth 8, a literal <script and a type outside the kind's list refused; the value re-serialised - a custom node with a generated @id merges into it (schema.merged save notice), other nodes are appended to the graph - seo_primary_parent (seoparent) for article types; both values stored in the entry data on every locale row - the seo_graph widget action (E9 data), P1 primary_gone and the P2 schema type and breadcrumb trail rows - GET /_seo/api/v1/graph and MCP seo_get_graph; seo_set_url_seo and apply_batch accept primary_parent and schema The graph tool lands with the validation: the operations parity test binds the seo_graph widget action to its tool.
This commit is contained in:
11
mcp.go
11
mcp.go
@@ -48,6 +48,17 @@ func (p *Plugin) MCP() pact.MCP {
|
||||
Permissions: []string{mcpPermission},
|
||||
},
|
||||
|
||||
{
|
||||
Name: "get_graph",
|
||||
Title: "Get the structured data of a URL",
|
||||
Description: "Shows the JSON-LD @graph a page addressed by URL emits (the nodes the CMS generates, the custom JSON-LD merged in) and every node's missing required and recommended properties per Google's rules; rules false marks a type Google has no rich-result rules for. With schema, previews an unsaved structured data value. Fix through seo_set_url_seo (schema, primary_parent) or seo_update_settings (publisher, local business).",
|
||||
Guard: mcpGuard,
|
||||
Method: http.MethodGet,
|
||||
Path: "/_seo/api/v1/graph",
|
||||
Input: apicontrollers.GetGraphInput{},
|
||||
Permissions: []string{mcpPermission},
|
||||
},
|
||||
|
||||
// URL rules (D-02).
|
||||
{
|
||||
Name: "list_rules",
|
||||
|
||||
Reference in New Issue
Block a user