Skip to content

fix: route server logs to stderr and extract hardcoded URLs to constants#5

Merged
stuckvgn merged 3 commits intomainfrom
fix/remove-debug-logs
Apr 13, 2026
Merged

fix: route server logs to stderr and extract hardcoded URLs to constants#5
stuckvgn merged 3 commits intomainfrom
fix/remove-debug-logs

Conversation

@stuckvgn
Copy link
Copy Markdown
Contributor

Summary

  • Converts 6 console.log([nav]...) calls in src/index.ts to console.error — server logs must go to stderr so the MCP stdio protocol stream on stdout is not corrupted
  • Extracts 3 hardcoded URLs from src/agent-card.ts and src/rule-loader.ts into a new src/constants.ts to eliminate duplication

Test plan

  • Run desloppify scan post-merge; confirm file health and logs issues clear
  • Verify server starts cleanly in stdio mode (no JSON parse errors from clients)

- Convert 6 console.log([nav]...) calls in src/index.ts to console.error
  so MCP stdio protocol is not corrupted by server log output
- Extract 3 hardcoded URLs from agent-card.ts and rule-loader.ts into
  a shared src/constants.ts to eliminate duplication
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 12, 2026

Warning

Rate limit exceeded

@stuckvgn has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 12 minutes and 43 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 12 minutes and 43 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 2c0fdd26-a2ba-464e-b791-b84ba0c51fb6

📥 Commits

Reviewing files that changed from the base of the PR and between a7030bd and a851c55.

📒 Files selected for processing (4)
  • src/agent-card.ts
  • src/constants.ts
  • src/index.ts
  • src/rule-loader.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/remove-debug-logs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@stuckvgn
Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 12, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@stuckvgn
Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 12, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

MCP servers must not write to stdout (reserved for JSON-RPC).
All diagnostic logging must use console.error (writes to stderr).
@stuckvgn
Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 12, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@stuckvgn
Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 12, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@stuckvgn
Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 12, 2026

✅ Actions performed

Full review triggered.

@stuckvgn stuckvgn merged commit 0e50eba into main Apr 13, 2026
6 checks passed
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