Skip to content

ci: fix Asta MCP config so CLARA stage 3 gets snippet_search - #3772

Merged
ubyndr merged 1 commit into
masterfrom
fix-clara-asta-mcp
Oct 1, 2026
Merged

ubyndr merged 1 commit into
masterfrom
fix-clara-asta-mcp

Conversation

@ubyndr

@ubyndr ubyndr commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Problem

CLARA stage 2/3 runs never had Asta snippet_search. Claude Code rejects the Asta entry in .mcp.json and skips the server:

[Warning] [Asta_semanticscholar] Skipped — invalid MCP server config:
  tools.0: expected object, received string

In run 36842857078 (#3765), mcp_servers lists only artl-mcp. The agent skipped Stage B and used Europe PMC full text only (comment).

Fix

Remove "tools": ["*"] from the Asta entry. The workflow's settings already allows mcp__Asta_semanticscholar__*, so no other change is needed.

The fix has to land on master: claude-code-action restores .mcp.json from the base branch for PR runs, so a fix in a PR branch has no effect.

Same fix upstream: Cellular-Semantics/clara_workflow#10. With the fixed config, claude mcp list shows Asta_semanticscholar ✔ Connected, and a claude -p test call to snippet_search returned results.

After merging

Re-run /clara on #3765 after merging master into it. That branch is also behind master's CLARA_WORKFLOW_REF (232e9b4 → 5c61100), which is why that run wrote runs/CL:… paths with colons instead of runs/CL_….

🤖 Generated with Claude Code

Claude Code rejects `"tools": ["*"]` (tools.0: expected object, received
string) and silently skips the Asta_semanticscholar server, so CLARA
stage 3 never had snippet_search. Same fix as
Cellular-Semantics/clara_workflow#10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ubyndr
ubyndr merged commit a171a55 into master Oct 1, 2026
3 checks passed
@ubyndr
ubyndr deleted the fix-clara-asta-mcp branch October 1, 2026 12:03
ubyndr added a commit to obophenotype/uberon that referenced this pull request Oct 1, 2026
Ports three fixes made and tested against a real PR in cell-ontology
(obophenotype/cell-ontology#3772, #3773), so uberon doesn't hit the
same issues on its first real run:

- Bump CLARA_WORKFLOW_REF to 234ac67, which includes
  Cellular-Semantics/clara_workflow#10: Asta_semanticscholar's
  `"tools": ["*"]` was invalid (Claude Code expects an array of
  objects, not strings) and silently dropped the entire server from
  the session -- not "connected with no tools," never attempted at
  all. That's why stage 3 snippet_search was never available in any
  run so far.
- Point --mcp-config at clara_workflow_ref/.mcp.json (the external
  package's own, now-fixed config) instead of this repo's dedicated
  .github/clara-mcp.json, so MCP tool wiring travels with
  agent_instructions.md as one versioned unit via CLARA_WORKFLOW_REF,
  rather than needing to be kept in sync by hand in every consuming
  repo. Removes the now-unused .github/clara-mcp.json.
- Revert track_progress back to its original conditional. The earlier
  "always false" change here was a misdiagnosis: it forced agent mode
  to work around what looked like a tag-mode problem, but a real
  historical cell-ontology run (#3745, 35205839595) proves tag mode
  completes this task fine, Write included. The actual instant
  failures seen while debugging were model_not_found (fixed via
  --model, already in place), not a mode problem -- forcing agent mode
  just traded tag mode's sufficient default permissions for agent
  mode's insufficient ones.

Signed-off-by: @ai4c-agent

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant