hotfix(poller, mcp): drop spurious /master/ branch segment from wiki raw URL (#132, patch)#133
Merged
liplus-lin-lay merged 1 commit intoApr 26, 2026
Conversation
…raw URL (#132) #131 deploy 後の :45 cron 実機観測で発覚: Liplus-Project/github-rag-mcp wiki: 6 pages, 0 embedded, 6 failed No content fetched for ... (all extensions 404) raw.githubusercontent.com/wiki/{repo}/master/{page}.md → 404 raw.githubusercontent.com/wiki/{repo}/{page}.md → 200 GitHub Wiki raw URL は branch segment を取らない仕様。W4 (#129) 実装で git ls-remote が `master` ref を返すことから類推して `/master/` を URL に 入れていたが、これは git protocol 内部の話で raw routing は branch を 含まない。 修正は URL string 1 行を 2 ファイルで: - src/poller.ts fetchWikiContent (cron-side ingestion) - src/mcp.ts inlineDocContent (search-time include_content) コメント 1 箇所も branch-less URL pattern に更新。 Closes #132
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
github-rag-mcp | ba5e1cb | Apr 26 2026, 02:00 AM |
liplus-lin-lay
commented
Apr 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
#131 deploy 後の :45 cron 実機観測で wiki ingestion の全 page が 404 で失敗していることが判明。GitHub Wiki raw URL pattern に `/master/` を含めたのが原因。
観測 (literal)
```
Liplus-Project/github-rag-mcp wiki: 6 pages, 0 embedded, 0 unchanged, 6 failed, 0 deleted
No content fetched for Liplus-Project/github-rag-mcp/wiki/installation.ja (all extensions 404)
fetchWikiContent probe md failed for Liplus-Project/liplus-language/e.-...
fetchWikiContent probe markdown failed for Liplus-Project/liplus-language/e.-...
```
`Too many subrequests` は #131 で解消、新たな 404 layer のみ残存。
根本原因
```
raw.githubusercontent.com/wiki/{repo}/master/{page}.md → 404
raw.githubusercontent.com/wiki/{repo}/main/{page}.md → 404
raw.githubusercontent.com/wiki/{repo}/{page}.md → 200
```
GitHub Wiki raw URL は branch segment を取らない仕様。W4 (#129) 実装で `git ls-remote` の `master` ref から類推して `/master/` を URL に入れたのが間違い。git protocol 内部の話で raw routing は branch を含まない。
修正
URL string 1 行を 2 ファイル:
加えてコメント 1 箇所を branch-less pattern に更新。
バージョン
patch (v0.8.5 milestone) — #131 と同 hotfix milestone。
関連