Sync oci-enterprise-ai-chat to v0.9.9#3037
Merged
anshoracle merged 3 commits intoJun 9, 2026
Merged
Conversation
Highlights since v0.4.0 (the version currently in the repo): - MCP — static-client OAuth (oauth2-user) with presets for Google, GitHub, Slack and Microsoft. - MCP — client-side execution of delegated function_call tools for models like gpt-oss-120b. - MCP OAuth 2.1 — refresh-token-only cookie (the IDCS access JWT exceeds the 4KB cookie limit), mint access token on demand. - file_search uniformity across Gemini, Grok and gpt-oss-120b; stop pretending gpt-oss-120b supports file_search. - NL2SQL native tool wired through DBTools MCP with OAuth 2.1. - Base-path support for OCI Hosted Deployments: APPLICATION_BASE_URL injection in entrypoint.sh, withBase()/useBaseRouter() helpers and a global fetch patch (BasePathInit) so existing call sites need no change. - Stream handling: stop fabricating "PrematureStreamClose" errors when OCI closes the SSE after a delegated function_call. - Style: Oracle Sans as the global font baseline on body. - Chore: package rename to oci-enterprise-ai-chat, version 0.9.9, remove SDD Generator addon, client-safe model list.
Adds NEXT_PUBLIC_NL2SQL_MCP_URL and APPLICATION_BASE_URL to the asset README, in line with the v0.9.7 and v0.9.8 features. Removes the "coming soon" tag from Text-to-SQL and drops the stale SDD Generator example from the MCP tool invocation note.
anshoracle
approved these changes
Jun 9, 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.
Summary
Brings the
ai/gen-ai-agents/oci-enterprise-ai-chat/files/asset up from v0.4.0 to v0.9.9, plus a README refresh documenting the new env vars. Supersedes the closed PR #2981, which only covered v0.5.0.Highlights
oauth2-user). New auth type for providers without RFC 7591 dynamic client registration. One-click presets for Google, GitHub, Slack and Microsoft. User pre-creates the OAuth client in the provider's console, pastes credentials, the app runs PKCE.function_callMCP tools. Models likegpt-oss-120bemit MCP invocations as plain OpenAI-stylefunction_callevents that OCI does not run server-side. The client now executes the tool against the configured MCP server and chains a follow-up Responses request withfunction_call_output.NEXT_PUBLIC_NL2SQL_MCP_URLpoints the in-chat Text-to-SQL flow at a hosted MCP server exposinggenerate_sql. System-prompt routing ensures the model passes the rightsemanticStoreId.file_searchuniform across Gemini, Grok and gpt-oss-120b. Includes an explicit fallback when gpt-oss-120b cannot actually run it.entrypoint.shreadsAPPLICATION_BASE_URL(auto-injected by the platform) and falls back toBASE_PATH. NewwithBase()anduseBaseRouter()helpers plus a globalfetchpatch (BasePathInit) keep existing root-absolute call sites working under a prefix.PrematureStreamCloseerrors when OCI ends the SSE after a delegatedfunction_call. Chips are only marked failed on real abort, network or stall errors.body.oci-enterprise-ai-chat, version0.9.9, removed the SDD Generator add-on, model list trimmed to the client-safe set.NEXT_PUBLIC_NL2SQL_MCP_URLandAPPLICATION_BASE_URL, and the Text-to-SQL feature is no longer flagged as "coming soon".Files touched
34 files under
ai/gen-ai-agents/oci-enterprise-ai-chat/: 33 source files plus the asset README. About +1,660 / -485.Test plan
npm run devboots cleanly, no console errorsoauth2.1flow still works against MCP servers with dynamic registrationoauth2-userflow with the Google preset: consent, token exchange, tool call returns datafile_searchworks on Gemini and Grok, gracefully disabled on gpt-oss-120bapplications/.../actions/invoke/prefix, navigation and API calls all reach the right path