Skip to content

feat(mcp): harden local scorer adapter setup #24

Description

@JSONbored

Problem

Local score preview can be powerful, but GITTENSOR_SCORE_PREVIEW_CMD setup and failure handling need to be clearer for real MCP users.

Desired behavior

Improve the local scorer adapter so users get structured diagnostics for missing commands, timeouts, malformed output, and fallback behavior while keeping source upload unsupported.

Implementation notes

  • Keep the adapter metadata-only.
  • Normalize scorer output into the existing score preview shape.
  • Add timeout and malformed-output handling.
  • Provide a reference example or wrapper for users who have a local Gittensor scoring checkout.
  • Make fallback guidance actionable from doctor, preflight, and branch analysis output.

Public/private boundaries

Local scorer output is private MCP/API context only. Do not surface score estimates in public GitHub comments.

Acceptance criteria

  • Missing scorer command produces clear setup guidance.
  • Timeout produces a bounded fallback result.
  • Malformed JSON does not crash analysis.
  • Metadata-only fallback still works.
  • Source contents are never uploaded.

Tests

  • Scorer success.
  • Missing command.
  • Timeout.
  • Malformed JSON.
  • Non-zero exit.
  • Source-upload guard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions