Skip to content

Sync oci-enterprise-ai-chat to v0.9.9#3037

Merged
anshoracle merged 3 commits into
oracle-devrel:mainfrom
ralungei:sync-oci-enterprise-ai-chat-v0.9.9
Jun 9, 2026
Merged

Sync oci-enterprise-ai-chat to v0.9.9#3037
anshoracle merged 3 commits into
oracle-devrel:mainfrom
ralungei:sync-oci-enterprise-ai-chat-v0.9.9

Conversation

@ralungei

@ralungei ralungei commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

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

  • MCP static-client OAuth (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.
  • Client-side execution of delegated function_call MCP tools. Models like gpt-oss-120b emit MCP invocations as plain OpenAI-style function_call events 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 with function_call_output.
  • MCP OAuth 2.1 cookie fix. Store only the refresh token (IDCS access JWT exceeds the 4KB cookie limit) and mint the access token on demand.
  • NL2SQL via DBTools MCP with OAuth 2.1. New env var NEXT_PUBLIC_NL2SQL_MCP_URL points the in-chat Text-to-SQL flow at a hosted MCP server exposing generate_sql. System-prompt routing ensures the model passes the right semanticStoreId.
  • file_search uniform across Gemini, Grok and gpt-oss-120b. Includes an explicit fallback when gpt-oss-120b cannot actually run it.
  • Base path for OCI Generative AI Hosted Deployments. entrypoint.sh reads APPLICATION_BASE_URL (auto-injected by the platform) and falls back to BASE_PATH. New withBase() and useBaseRouter() helpers plus a global fetch patch (BasePathInit) keep existing root-absolute call sites working under a prefix.
  • Stream handling. Stop fabricating PrematureStreamClose errors when OCI ends the SSE after a delegated function_call. Chips are only marked failed on real abort, network or stall errors.
  • Style. Oracle Sans is now the global font baseline on body.
  • Chore. Package rename to oci-enterprise-ai-chat, version 0.9.9, removed the SDD Generator add-on, model list trimmed to the client-safe set.
  • Docs. README now documents NEXT_PUBLIC_NL2SQL_MCP_URL and APPLICATION_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 dev boots cleanly, no console errors
  • OAuth oauth2.1 flow still works against MCP servers with dynamic registration
  • OAuth oauth2-user flow with the Google preset: consent, token exchange, tool call returns data
  • gpt-oss-120b: MCP tool runs client-side, model receives the output and finishes
  • file_search works on Gemini and Grok, gracefully disabled on gpt-oss-120b
  • OCI Hosted Deployment: app served under the applications/.../actions/invoke/ prefix, navigation and API calls all reach the right path
  • Secret scan on the diff (OCIDs, IPs, IDCS domains, passwords, wallets) came back clean

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.
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 9, 2026
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 anshoracle merged commit e99e466 into oracle-devrel:main Jun 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants