Skip to content

feat(ai): add the fetch-page command and MCP tool #3892

Description

@dan-petty

Problem

Agents on a workstation (Claude Code, VS Code, Kilo) have no tool that reads a page through the cluster service. The Crawl4AI MCP endpoint is not a fit: SSE only, wide tool surface (execute_js, crawl, screenshot, pdf), and it needs a bearer header, while SECURITY.md rule 12 says that no tool parameter takes a secret.

Expected

A read-only command devops ai fetch-page <url> that uses the Crawl4AI client and prints the page text with its source line. A row (("ai", "fetch-page"), <timeout>, True, False) in CONST_MCP_EXPOSURE_TABLE. The published schema has the page URL and no option for the service URL, the token or a file path. The tool is NOT in _JOB_ROLE_TOOLS until a person approves the egress (#3243). docs/MCP_TOOLS.md, docs/commands/mcp.md and k8s/README.md explain the workstation setup: kubectl port-forward -n devops svc/crawl4ai 11235:11235 and crawl4ai.url set to http://127.0.0.1:11235. No change to .mcp.json, .vscode/mcp.json or kilo.jsonc: the tool arrives through the existing devops-cli server.

Acceptance criteria

  • A test in tests/ai/mcp/ fails on the base: the tool is generated, read-only, in the ai domain, and its schema has no service URL, token or path option.
  • A test fails on the base: no job role holds the tool.
  • A CLI test with the HTTP fake: output holds the text and the source line; a refused URL exits non-zero with the reason; an empty setting names crawl4ai.url.
  • --dry-run makes no request and returns the would-be request (owner rule of 2026-10-04).
  • Docs are regenerated and the docs check passes.

Existing tool considered

The MCP generator from Typer commands (ai/mcp/generator.py) and the existing devops-cli MCP server. Rejected: a second MCP server entry for Crawl4AI (token in the config file, SSE only); Kindly (see the decision text).

Related

Related: #3243, #3220, #3221 (MCP server for jobs), #3877. Use the new-scaffold skill for the command and its test.

Activity

  1. added
    source/agent
    type/feature
    scope/ai
    status/new
    value/medium
    effort/medium
    on Nov 7, 2026
  2. dan-petty commented on Nov 7, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/ai. The (ai) scope of the title gives the scope.
    • Priority: P2-Medium. Useful for workstation agents but not blocking; depends on #3884 and #3887 being delivered first.
    • Value: Medium. Gives Claude Code, VS Code, and Kilo agents a read-only page fetch tool, filling a stated gap.
    • Effort: Medium. Thin command and MCP row, but requires tests, docs in three files, and a dry-run path.
    • Related: feat(ai): fetch page text with the Crawl4AI service #3887, which asks for a different change. Both use the Crawl4AI client to read a page, but #3887 delivers the client function while the candidate delivers the CLI command, MCP exposure row, and workstation docs on top of it.
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 7, 2026
  4. removed
    status/in-progress
    owner/agent
    on Nov 7, 2026
  5. added a commit that references this issue on Nov 7, 2026
  6. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor
  7. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-07 15:32 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/aisource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions