Skip to content

LCORE-1413: Fixing MCP Authorization #1270

Closed
jrobertboos wants to merge 4 commits into
lightspeed-core:mainfrom
jrobertboos:lcore-1413
Closed

LCORE-1413: Fixing MCP Authorization #1270
jrobertboos wants to merge 4 commits into
lightspeed-core:mainfrom
jrobertboos:lcore-1413

Conversation

@jrobertboos

Copy link
Copy Markdown
Contributor

Description

Type of change

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up service version
  • Bump-up dependent library
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Konflux configuration change
  • Unit tests improvement
  • Integration tests improvement
  • End to end tests improvement
  • Benchmarks improvement

Tools used to create PR

Identify any AI code assistants used in this PR (for transparency and review context)

  • Assisted-by: (e.g., Claude, CodeRabbit, Ollama, etc., N/A if not used)
  • Generated by: (e.g., tool name and version; N/A if not used)

Related Tickets & Documents

  • Related Issue #
  • Closes #

Checklist before requesting a review

  • I have performed a self-review of my code.
  • PR has passed all pre-merge test jobs.
  • If it is a core feature, I have added thorough tests.

Testing

  • Please provide detailed steps to perform tests related to this code change.
  • How were the fix/results from this change verified? Please provide relevant screenshots or results.

- Changed the Llama stack URL to localhost for local development.
- Added MCP server configuration with authorization headers.
- Introduced a new utility function to build request bodies for the Responses API, ensuring proper authorization handling.
- Updated response retrieval methods to utilize the new utility function.
- Enhanced the MCP OAuth probing function to conditionally include authorization headers and only raise exceptions for 401 responses.
- Modified the mock MCP server to handle authorization checks more effectively.
@coderabbitai

coderabbitai Bot commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4f9b13b7-9ac3-48af-aff7-73c3b60689ce

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

- Moved topic summary generation logic to prevent cancellation by MCP session cleanup.
- Added error handling for topic summary generation in streaming response to ensure completion even on cancellation.
- Removed redundant topic summary code from query endpoint handler.
- Updated e2e tests for tools endpoint to include new authorization checks and response validation.
@jrobertboos

Copy link
Copy Markdown
Contributor Author

Duplicate

@jrobertboos jrobertboos closed this Mar 6, 2026
@jrobertboos jrobertboos deleted the lcore-1413 branch March 6, 2026 19:42
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