Skip to content

Point codedb_remote at api.wiki.codes#327

Merged
justrach merged 1 commit intorelease/0.2.579from
fix/wiki-api-host
Apr 26, 2026
Merged

Point codedb_remote at api.wiki.codes#327
justrach merged 1 commit intorelease/0.2.579from
fix/wiki-api-host

Conversation

@justrach
Copy link
Copy Markdown
Owner

Summary

  • route the wiki backend in codedb_remote directly to https://api.wiki.codes/api//
  • map wiki query params to the native router shape: search=q, symbol=name, outline=path
  • expose wiki dependency/security/history actions: deps, score, cves, commits, branches, dep-history
  • accept raw wiki slugs like chromium while keeping owner/repo validation for codegraff
  • update README and architecture docs

Verification

  • zig build
  • zig build test
  • MCP smoke: tools/list includes api.wiki.codes and cves
  • MCP smoke: codedb_remote backend=wiki repo=justrach/codedb action=symbol query=buildSnapshot
  • MCP smoke: codedb_remote backend=wiki repo=axios/axios action=cves scope=runtime
  • MCP smoke: codedb_remote backend=wiki repo=chromium action=policy

@github-actions
Copy link
Copy Markdown

Benchmark Regression Report

Thresholds: 10.00% and 50,000 ns absolute delta

NOISE means the percentage threshold was exceeded, but the absolute delta was too small to fail CI.

Tool Base (ns) Head (ns) Delta Abs Delta (ns) Status
codedb_bundle 478685 479962 +0.27% +1277 OK
codedb_changes 53873 63417 +17.72% +9544 NOISE
codedb_deps 8925 9023 +1.10% +98 OK
codedb_edit 6178 5840 -5.47% -338 OK
codedb_find 57958 61535 +6.17% +3577 OK
codedb_hot 99697 96059 -3.65% -3638 OK
codedb_outline 247087 239075 -3.24% -8012 OK
codedb_read 91980 82555 -10.25% -9425 OK
codedb_search 175020 179116 +2.34% +4096 OK
codedb_snapshot 253015 250649 -0.94% -2366 OK
codedb_status 212278 216354 +1.92% +4076 OK
codedb_symbol 57332 57858 +0.92% +526 OK
codedb_tree 80472 88831 +10.39% +8359 NOISE
codedb_word 67571 68141 +0.84% +570 OK

@justrach justrach merged commit 944e4ad into release/0.2.579 Apr 26, 2026
1 check passed
@justrach justrach deleted the fix/wiki-api-host branch April 26, 2026 04:06
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 32b5e3f82c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/mcp.zig
Comment on lines +1589 to +1591
const scope = getStr(args, "scope") orelse query orelse "runtime";
if (!std.mem.eql(u8, scope, "runtime") and !std.mem.eql(u8, scope, "all")) {
out.appendSlice(alloc, "error: scope must be 'runtime' or 'all'") catch {};
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Treat empty query as absent for score/cves scope default

handleRemote derives scope via getStr(args, "scope") orelse query orelse "runtime", so if a client includes query:"" (common in generic MCP forms) and omits scope, the empty query is selected and then rejected by the runtime/all validation. That contradicts the documented default-to-runtime behavior and makes otherwise valid score/cves requests fail based only on an unused empty field; empty query should be ignored for this fallback path.

Useful? React with 👍 / 👎.

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