feat: Site audit and Crawls screens with their MCP tools
- golem15.seo.issues (Site audit): current issues errors first, labels, summary and fix columns, filters, P7 issue_details, Check this address again, Ignore, Stop ignoring, bulk Ignore, ignored rows badged - golem15.seo.crawls (Crawls): newest first, P6 crawl_summary with one status callout, staging and rendered-comparison lines, stats strip and per-kind table; Cancel; a running crawl refuses delete - Start crawl toolbar action on both, refusing already_running and no_site_url; navigation Site audit (gauge) and Crawls (globe) - routes and MCP tools start/cancel/list/get/delete crawls, list_issues with filters (open by default), recheck_url, ignore and unignore - AdminOperations maps both controllers; toolbar actions get their own operation kind - TestCrawlAdmin, TestCrawlTools, TestIssueKindLabels
This commit is contained in:
85
mcp.go
85
mcp.go
@@ -382,16 +382,97 @@ func (p *Plugin) MCP() pact.MCP {
|
||||
Permissions: []string{mcpPermission},
|
||||
},
|
||||
|
||||
// Audit (D-13, D-14 CMS part).
|
||||
// Site audit and crawls (D-13, D-14, SC-3).
|
||||
{
|
||||
Name: "list_issues",
|
||||
Title: "List SEO issues",
|
||||
Description: "Lists the CMS-data SEO issues: missing and duplicate titles and descriptions, URL rules overriding a record, redirect chains, canonicals pointing to noindex or redirected addresses, and noindex addresses robots.txt blocks; each names the tool that fixes it.",
|
||||
Description: "Lists the site audit's current issues, errors first: what the newest crawl found per URL (statuses, sitemaps, canonicals, titles and descriptions, headings, structured data, hreflang, links, images, content that needs JavaScript, orphan pages) and the CMS-data checks (missing and duplicate titles, URL rules over records, redirect chains, canonicals to noindex or redirected addresses, robots.txt blocks, images without alt text, H1 in content). Each issue names the MCP tool that fixes it (fix tool), or fix code with details.what naming the template element the site's developer changes. Ignored issues are left out unless status is ignored or all.",
|
||||
Guard: mcpGuard,
|
||||
Method: http.MethodGet,
|
||||
Path: "/_seo/api/v1/issues",
|
||||
Input: apicontrollers.ListIssuesInput{},
|
||||
Permissions: []string{mcpPermission},
|
||||
},
|
||||
{
|
||||
Name: "recheck_url",
|
||||
Title: "Check an issue's address again",
|
||||
Description: "Fetches the address of one issue again through the crawler and replaces that address's issues; answers the issues left for it. Use it after fixing an issue to confirm the fix.",
|
||||
Guard: mcpGuard,
|
||||
Method: http.MethodPost,
|
||||
Path: "/_seo/api/v1/issues/{id}/recheck",
|
||||
Input: apicontrollers.IssueIDInput{},
|
||||
Permissions: []string{mcpPermission},
|
||||
},
|
||||
{
|
||||
Name: "ignore_issues",
|
||||
Title: "Ignore SEO issues",
|
||||
Description: "Ignores issues by id: they stay hidden in later crawls until seo_unignore_issues shows them again.",
|
||||
Guard: mcpGuard,
|
||||
Method: http.MethodPost,
|
||||
Path: "/_seo/api/v1/issues/ignore",
|
||||
Input: apicontrollers.IssueIDsInput{},
|
||||
Permissions: []string{mcpPermission},
|
||||
},
|
||||
{
|
||||
Name: "unignore_issues",
|
||||
Title: "Stop ignoring SEO issues",
|
||||
Description: "Shows ignored issues in the audit again, by id.",
|
||||
Guard: mcpGuard,
|
||||
Method: http.MethodPost,
|
||||
Path: "/_seo/api/v1/issues/unignore",
|
||||
Input: apicontrollers.IssueIDsInput{},
|
||||
Permissions: []string{mcpPermission},
|
||||
},
|
||||
{
|
||||
Name: "start_crawl",
|
||||
Title: "Start a site crawl",
|
||||
Description: "Starts a crawl of the site: the crawler fetches the site's own pages like a search engine (two requests at a time, within the Site audit limits) and stores what it finds as issues. One crawl runs at a time; a second start answers crawls.already_running. Follow it with seo_get_crawl; when it finishes, read the issues with seo_list_issues.",
|
||||
Guard: mcpGuard,
|
||||
Method: http.MethodPost,
|
||||
Path: "/_seo/api/v1/crawls",
|
||||
Input: apicontrollers.StartCrawlInput{},
|
||||
Permissions: []string{mcpPermission},
|
||||
},
|
||||
{
|
||||
Name: "cancel_crawl",
|
||||
Title: "Cancel a crawl",
|
||||
Description: "Cancels a queued or running crawl by id; the pages fetched so far and their issues are kept.",
|
||||
Guard: mcpGuard,
|
||||
Method: http.MethodPost,
|
||||
Path: "/_seo/api/v1/crawls/{id}/cancel",
|
||||
Input: apicontrollers.CrawlIDInput{},
|
||||
Permissions: []string{mcpPermission},
|
||||
},
|
||||
{
|
||||
Name: "list_crawls",
|
||||
Title: "List crawls",
|
||||
Description: "Lists the crawls, newest first, with their status, pages, issue count, who started them and the comparison with the JavaScript-rendered pages (render: skipped, done or failed).",
|
||||
Guard: mcpGuard,
|
||||
Method: http.MethodGet,
|
||||
Path: "/_seo/api/v1/crawls",
|
||||
Input: apicontrollers.ListCrawlsInput{},
|
||||
Permissions: []string{mcpPermission},
|
||||
},
|
||||
{
|
||||
Name: "get_crawl",
|
||||
Title: "Get a crawl",
|
||||
Description: "Shows one crawl: status, pages fetched and whether the page limit stopped it, the error of a failed crawl, the issues per kind and severity, whether the staging lock's noindex was left out, and render {status, pages, note}: whether the pages were compared with their JavaScript-rendered versions or that comparison was skipped (no Chrome path configured) or failed.",
|
||||
Guard: mcpGuard,
|
||||
Method: http.MethodGet,
|
||||
Path: "/_seo/api/v1/crawls/{id}",
|
||||
Input: apicontrollers.CrawlIDInput{},
|
||||
Permissions: []string{mcpPermission},
|
||||
},
|
||||
{
|
||||
Name: "delete_crawls",
|
||||
Title: "Delete crawls",
|
||||
Description: "Deletes crawls by id with their pages and issues; a queued or running crawl refuses the call (crawls.delete_running).",
|
||||
Guard: mcpGuard,
|
||||
Method: http.MethodDelete,
|
||||
Path: "/_seo/api/v1/crawls",
|
||||
Input: apicontrollers.DeleteCrawlsInput{},
|
||||
Permissions: []string{mcpPermission},
|
||||
Destructive: &destructive,
|
||||
},
|
||||
}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user