Repository navigation
fix(mcp): retain RagMcpAgent stub to satisfy migration history (patch) - #112
Merged
Merged
Conversation
Post-merge deploy of #109 failed with: New version of script does not export class 'RagMcpAgent' which is depended on by existing Durable Objects. [code: 10064] The v1 migration still declares RagMcpAgent as an sqlite class, and Cloudflare requires every declared class to exist in the script (or be removed via a deleted_classes migration). Since the goal of the rename was to reach a fresh DO namespace for RagMcpAgentV2, a renamed_classes migration would defeat that by preserving state. Instead, keep RagMcpAgent as an empty DurableObject stub that receives no traffic (no binding points to it). Follow-up work: delete RagMcpAgent entirely via deleted_classes once the V2 switch is confirmed stable. Closes #111 Refs #109
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
github-rag-mcp | a03f152 | Apr 23 2026, 02:49 PM |
liplus-lin-lay
force-pushed
the
111-retain-stub
branch
from
April 23, 2026 14:48
53d9db3 to
a03f152
Compare
liplus-lin-lay
commented
Apr 23, 2026
liplus-lin-lay
left a comment
Member
Author
There was a problem hiding this comment.
AI self-review: stub class 追加による script export 要件の充足、bindingに影響なし、local tsc/wrangler dry-run pass、CI/test green。Workers Builds は #110 と同じ versioned-deploy 起因で落ちるが非 required なので無視。auto mode → squash merge へ。
This was referenced Apr 23, 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.
Closes #111
Refs #109
#109 の merge 後 deploy が code 10064 ("script does not export class 'RagMcpAgent'") で失敗した件の修正。旧
RagMcpAgentを空のDurableObjectstub として残し、Cloudflare の「過去 migration で declare されたクラスは script に存在し続けること」制約を満たす。stub には binding が無いため traffic を受けない。