diff --git a/CHANGELOG.md b/CHANGELOG.md
index cda8900337..725e4c2440 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,25 @@
This file tracks product releases for Roomote (single monorepo version). Automated release entries are prepended by `pnpm run version`.
+## 1.24.0 (2026-11-22)
+
+Roomote 1.24.0 adds GPT-6.2 models, upgrades Jira connectivity, and strengthens account security.
+
+### Highlights
+
+- Choose GPT-6.2 Sol or Astra, including Fast mode on ChatGPT Subscription, without changing existing model selections.
+- Jira now uses Atlassian MCP v2. **After upgrading, an admin must reconnect Jira and grant fresh consent.**
+- Account security updates harden OAuth verification and email-change links. Sign in normally if you open an email-change verification link without an active session.
+
+### Minor changes
+
+- GPT-6.2 Sol and GPT-6.2 Astra are available in the curated model catalog through supported inference providers, with Fast mode for both on ChatGPT Subscription. Enable them in Models settings and select them for a role, session, or task; existing defaults, presets, and saved mappings stay unchanged. Thanks to @pridemusvaire for proposing and contributing this improvement in [#3731](https://github.com/RooCodeInc/Roomote/issues/3731).
+
+### Patch changes
+
+- Security updates harden OAuth email-verification checks and prevent stale email-change links from affecting a different account after an address is reused. Email-change verification links no longer automatically sign you in; use normal sign-in if you open one without an active session.
+- Jira now uses Atlassian MCP v2 with read-only Jira access and reliable tool catalog initialization and pagination. Saved tool restrictions and approval requirements carry across renamed tools. After upgrading, a deployment admin must reconnect Jira from Integrations and complete fresh Atlassian consent; existing v1 credentials do not carry over.
+
## 1.23.0 (2026-11-17)
Roomote 1.23.0 stops self-hosted deployments from sending analytics to the Roomote team.
diff --git a/apps/api/src/handlers/mcp/__tests__/integration-mcp.test.ts b/apps/api/src/handlers/mcp/__tests__/integration-mcp.test.ts
index 3011a826fb..2ca1522580 100644
--- a/apps/api/src/handlers/mcp/__tests__/integration-mcp.test.ts
+++ b/apps/api/src/handlers/mcp/__tests__/integration-mcp.test.ts
@@ -543,6 +543,82 @@ describe('createIntegrationMcpProxy acting-user scoping', () => {
expect(cancelled).toBe(true);
});
+ it('preserves Jira pagination while filtering v2 flat tools and disabled reads', async () => {
+ mockFindTaskRun.mockResolvedValue({ id: 42, actingUserId: null });
+ mockFindConnection.mockResolvedValue({ id: 'conn-jira', userId: null });
+ mockFindEnablement.mockResolvedValue({ disabledTools: ['getJiraIssue'] });
+ const fetchMock = vi.fn().mockResolvedValue(
+ Response.json({
+ jsonrpc: '2.0',
+ id: 1,
+ result: {
+ tools: [
+ 'listJiraProjects',
+ 'getJiraIssue',
+ 'executeRead',
+ 'executeWrite',
+ 'getConfluenceContent',
+ 'editJiraIssue',
+ ].map((name) => ({ name })),
+ nextCursor: 'page-2',
+ },
+ }),
+ );
+ vi.stubGlobal('fetch', fetchMock);
+ const response = await postMcp(createApp('jira', createRunToken()), {
+ ...createToolsListRequest(1),
+ params: { cursor: 'page-1' },
+ });
+ expect(response.status).toBe(200);
+ expect(await response.json()).toMatchObject({
+ result: {
+ tools: [{ name: 'listJiraProjects' }],
+ nextCursor: 'page-2',
+ },
+ });
+ expect(fetchMock.mock.calls[0]?.[0]).toBe(
+ 'https://mcp.atlassian.com/v2/mcp?tools=all',
+ );
+ expect(
+ JSON.parse(fetchMock.mock.calls[0]?.[1]?.body as string).params.cursor,
+ ).toBe('page-1');
+ });
+
+ it('keeps a renamed Jira read disabled by its saved v1 name', async () => {
+ mockFindTaskRun.mockResolvedValue({ id: 42, actingUserId: null });
+ mockFindConnection.mockResolvedValue({ id: 'conn-jira', userId: null });
+ mockFindEnablement.mockResolvedValue({
+ disabledTools: ['getVisibleJiraProjects'],
+ });
+ const fetchMock = stubUpstreamFetch();
+ const response = await postMcp(
+ createApp('jira', createRunToken()),
+ createToolCallRequest(1, 'listJiraProjects'),
+ );
+ expect(response.status).toBe(403);
+ expect(fetchMock).not.toHaveBeenCalled();
+ });
+
+ it.each([
+ 'executeRead',
+ 'executeWrite',
+ 'executeDestructive',
+ 'editJiraIssue',
+ 'getConfluenceContent',
+ 'getJiraIssue',
+ ])('rejects Jira call %s before forwarding upstream', async (name) => {
+ mockFindTaskRun.mockResolvedValue({ id: 42, actingUserId: null });
+ mockFindConnection.mockResolvedValue({ id: 'conn-jira', userId: null });
+ mockFindEnablement.mockResolvedValue({ disabledTools: ['getJiraIssue'] });
+ const fetchMock = stubUpstreamFetch();
+ const response = await postMcp(
+ createApp('jira', createRunToken()),
+ createToolCallRequest(1, name),
+ );
+ expect(response.status).toBe(403);
+ expect(fetchMock).not.toHaveBeenCalled();
+ });
+
it('strips Resend tool schema patterns for Azure-compatible tool calls', async () => {
mockFindTaskRun.mockResolvedValue({ id: 42, actingUserId: null });
mockFindConnection.mockResolvedValue({ id: 'conn-1', userId: null });
diff --git a/apps/api/src/handlers/mcp/integration-mcp.ts b/apps/api/src/handlers/mcp/integration-mcp.ts
index cf4bb160ae..5b149a5a39 100644
--- a/apps/api/src/handlers/mcp/integration-mcp.ts
+++ b/apps/api/src/handlers/mcp/integration-mcp.ts
@@ -12,6 +12,7 @@ import {
getMcpIntegrationUpstreamUrl,
getMcpIntegrationConnectionScope,
getAllowedIntegrationMcpToolNames,
+ getIntegrationMcpDisabledToolNames,
isMcpConnectionExaConfig,
isMcpConnectionXConfig,
type McpIntegration,
@@ -107,7 +108,10 @@ async function resolveDeploymentToolPolicy(mcpId: string) {
return {
enabled: Boolean(enablement),
- disabledToolNames: enablement?.disabledTools ?? null,
+ disabledToolNames: getIntegrationMcpDisabledToolNames(
+ mcpId,
+ enablement?.disabledTools,
+ ),
allowedToolNames: getAllowedIntegrationMcpToolNames(mcpId) ?? null,
};
}
diff --git a/apps/docs/integrations/index.mdx b/apps/docs/integrations/index.mdx
index ac9f6e9487..d742df1ae6 100644
--- a/apps/docs/integrations/index.mdx
+++ b/apps/docs/integrations/index.mdx
@@ -104,7 +104,7 @@ from [Personal Settings](/personal-settings).
| | Keyless web search; optional Agent research | Admin enables; API key optional |
| | Dashboards, alerting, and monitoring context | Admin connection once |
| | Meeting notes, transcripts, and decisions | Admin connection once |
-| | Issues, projects, and JQL-backed issue context | Admin connection once |
+| | Read-only Jira context through Atlassian MCP v2 | Admin connection once |
| | Turning issues into Roomote work | Workspace plus user identity |
| | Board, item, and workspace context | Enable first, then teammates link accounts |
| | Database inspection in Neon | Enable first, then teammates link accounts |
diff --git a/apps/docs/integrations/jira.mdx b/apps/docs/integrations/jira.mdx
index cf7c5116b1..3b57a8d1bb 100644
--- a/apps/docs/integrations/jira.mdx
+++ b/apps/docs/integrations/jira.mdx
@@ -17,6 +17,25 @@ Roomote to read issue, project, workflow, and JQL-backed context directly.
Admins connect Jira from the **Integrations** page for the deployment.
+Roomote uses Atlassian MCP v2 with read-only Jira permissions. Complete the
+Atlassian OAuth consent flow with an account that can access the Jira sites
+you want Roomote to read. The built-in integration exposes individual Jira
+tools; it does not enable Jira mutations or other Atlassian products.
+
+### Upgrading an existing connection
+
+Atlassian MCP v2 is a separate OAuth resource, so v1 credentials do not carry
+over. After upgrading Roomote, a deployment admin must reconnect Jira from
+the **Integrations** page and complete fresh Atlassian consent. Reconnecting
+replaces the saved OAuth client registration. If authorization still fails,
+disconnect Jira, then enable and connect it again.
+
+To verify the connection, ask Roomote to list accessible Jira sites and read a
+known issue or run a JQL search. Access still depends on the connected account's
+Jira permissions and your Atlassian organization's MCP settings.
+
+See Atlassian's [MCP v2 upgrade guide](https://support.atlassian.com/atlassian-ai-gateway/docs/how-to-upgrade-from-atlassian-mcp-v1-to-atlassian-mcp-v2/).
+
## What to expect
Jira gives Roomote richer issue context. The task transcript, evidence, and any
diff --git a/apps/docs/models.mdx b/apps/docs/models.mdx
index e0c9dfa162..bd270c1d87 100644
--- a/apps/docs/models.mdx
+++ b/apps/docs/models.mdx
@@ -210,6 +210,28 @@ available.
Terra supports ChatGPT Subscription's **Fast mode** when available to the
connected plan. Selecting Terra on another route does not enable that option.
+**GPT-6.2 Sol** is available through the same curated provider routes as GPT-6.1
+Sol: Roomote inference, OpenRouter, Vercel AI Gateway, Requesty, OpenAI, Azure
+OpenAI, Azure AI Foundry, OpenCode Zen, Amazon Bedrock, GitHub Copilot, and
+ChatGPT Subscription. **GPT-6.2 Astra** is available through the same routes as
+GPT-6 Astra: Roomote inference, OpenRouter, Vercel AI Gateway, OpenAI, OpenCode
+Zen, GitHub Copilot, and ChatGPT Subscription. Enable either model in
+**Available Models**, then assign it to a role or select it for a session or
+task. Defaults, presets, and existing role mappings stay unchanged. Azure
+requires a deployment named `gpt-6.2-sol`. Availability depends on account,
+region, plan, and rollout.
+
+OpenAI's model references for
+[GPT-6.2 Sol](https://developers.openai.com/api/docs/models/gpt-6.2-sol) and
+[GPT-6.2 Astra](https://developers.openai.com/api/docs/models/gpt-6.2-astra)
+list a 1,050,000-token context window, a 922,000-token input limit, and up to
+128,000 output tokens, with text and image input and text output. Standard
+OpenAI API rates per million tokens are $2 input, $0.10 cached input, and $10
+output for Sol, and $8 input, $0.40 cached input, and $40 output for Astra;
+prompts over 272,000 input tokens incur higher rates. Provider pricing and limits
+can differ. Both models support ChatGPT Subscription's **Fast mode** when
+available to the connected plan.
+
**DeepSeek V4.1 Flash** is recommended through
[DeepSeek](/providers/inference/deepseek),
[OpenRouter](/providers/inference/openrouter),
diff --git a/apps/docs/personal-settings.mdx b/apps/docs/personal-settings.mdx
index e153312ae9..14d7fdd02e 100644
--- a/apps/docs/personal-settings.mdx
+++ b/apps/docs/personal-settings.mdx
@@ -19,6 +19,13 @@ avatar, and security settings.
These settings affect your own Roomote account. They do not change deployment
membership, environment access, or integration setup for the rest of the team.
+### Change your email
+
+When your deployment sends a verification email for an address change, open the
+verification link to complete it. The link verifies the change; it does not
+automatically sign you in. If you open it without an active Roomote session,
+sign in normally afterward with your updated address or linked provider.
+
### Set a password
If you signed in through a communications or source-control provider, you can
diff --git a/apps/web/package.json b/apps/web/package.json
index 545e4cc8b1..516e84c485 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -28,7 +28,7 @@
"dependencies": {
"@aws-sdk/client-s3": "3.1000.0",
"@aws-sdk/s3-request-presigner": "3.1000.0",
- "@better-auth/drizzle-adapter": "^1.7.12",
+ "@better-auth/drizzle-adapter": "^1.7.25",
"@codemirror/lang-yaml": "^6.0.0",
"@codemirror/merge": "^6.0.0",
"@codemirror/state": "^6.0.0",
@@ -92,7 +92,7 @@
"@zxcvbn-ts/core": "^4.1.2",
"ai": "^6.0.116",
"ansi-to-react": "^6.2.6",
- "better-auth": "^1.7.12",
+ "better-auth": "^1.7.25",
"better-sse": "^0.16.1",
"change-case": "^5.4.4",
"class-variance-authority": "^0.7.1",
diff --git a/apps/web/src/app/api/mcp-oauth/callback/__tests__/route.test.ts b/apps/web/src/app/api/mcp-oauth/callback/__tests__/route.test.ts
index ecee7bb568..bfa862467d 100644
--- a/apps/web/src/app/api/mcp-oauth/callback/__tests__/route.test.ts
+++ b/apps/web/src/app/api/mcp-oauth/callback/__tests__/route.test.ts
@@ -435,6 +435,36 @@ describe('GET /api/mcp-oauth/callback', () => {
);
});
+ it('exchanges Jira codes at the v2 issuer with the canonical resource', async () => {
+ const types =
+ await vi.importActual('@roomote/types');
+ const integration = types.getMcpIntegration('jira')!;
+ mcpConnectionsFindFirstMock.mockResolvedValue({
+ id: CONNECTION_ID,
+ mcpId: 'jira',
+ userId: null,
+ connectionRole: 'default',
+ });
+ getMcpIntegrationMock.mockReturnValue(integration);
+ isDeploymentScopedMcpIntegrationMock.mockReturnValue(true);
+ getMcpIntegrationOauthEndpointsMock.mockReturnValue(
+ integration.oauthEndpoints,
+ );
+ getMcpIntegrationOauthResourceMock.mockReturnValue(
+ integration.oauthResource,
+ );
+ await GET(buildRequest('?code=auth-code&state=state-1'));
+ expect(exchangeCodeForTokensMock).toHaveBeenCalledWith(
+ 'https://auth.atlassian.com/oauth/token',
+ 'auth-code',
+ 'verifier-1',
+ { client_id: 'client-1' },
+ PUBLIC_CALLBACK,
+ { resource: 'https://mcp.atlassian.com/v2/mcp' },
+ );
+ expect(discoverOAuthEndpointsMock).not.toHaveBeenCalled();
+ });
+
it('rejects a pending callback when integrations become disabled', async () => {
bootstrapWebRuntimeEnvMock.mockResolvedValue({
R_APP_URL: 'http://localhost:13000',
diff --git a/apps/web/src/app/api/mcp-oauth/initiate/[connectionId]/__tests__/route.test.ts b/apps/web/src/app/api/mcp-oauth/initiate/[connectionId]/__tests__/route.test.ts
index ed5ab1455d..fa2534415c 100644
--- a/apps/web/src/app/api/mcp-oauth/initiate/[connectionId]/__tests__/route.test.ts
+++ b/apps/web/src/app/api/mcp-oauth/initiate/[connectionId]/__tests__/route.test.ts
@@ -552,6 +552,52 @@ describe('GET /api/mcp-oauth/initiate/[connectionId]', () => {
expect(authUrl.searchParams.get('scope')).not.toContain('boards:write');
});
+ it('registers Jira against the v2 issuer with PKCE, resource, and read-only scopes', async () => {
+ const types =
+ await vi.importActual('@roomote/types');
+ const integration = types.getMcpIntegration('jira')!;
+ mcpConnectionsFindFirstMock.mockResolvedValue({
+ id: CONNECTION_ID,
+ mcpId: 'jira',
+ userId: null,
+ connectionRole: 'default',
+ });
+ getMcpIntegrationMock.mockReturnValue(integration);
+ isDeploymentScopedMcpIntegrationMock.mockReturnValue(true);
+ getMcpIntegrationOauthEndpointsMock.mockReturnValue(
+ integration.oauthEndpoints,
+ );
+ getMcpIntegrationOauthScopesMock.mockReturnValue(integration.oauthScopes);
+ getMcpIntegrationOauthResourceMock.mockReturnValue(
+ integration.oauthResource,
+ );
+ getClientInformationMock.mockResolvedValue(undefined);
+
+ const response = await GET(buildRequest(), {
+ params: Promise.resolve({ connectionId: CONNECTION_ID }),
+ });
+ expect(registerOAuthClientMock).toHaveBeenCalledWith(
+ integration.oauthEndpoints!.registrationEndpoint,
+ expect.objectContaining({
+ scope: integration.oauthScopes!.join(' '),
+ token_endpoint_auth_method: 'none',
+ }),
+ );
+ const authUrl = new URL(response.headers.get('location')!);
+ expect(authUrl.origin + authUrl.pathname).toBe(
+ 'https://auth.atlassian.com/authorize',
+ );
+ expect(authUrl.searchParams.get('resource')).toBe(
+ 'https://mcp.atlassian.com/v2/mcp',
+ );
+ expect(authUrl.searchParams.get('scope')).toBe(
+ integration.oauthScopes!.join(' '),
+ );
+ expect(authUrl.searchParams.get('code_challenge_method')).toBe('S256');
+ expect(discoverOAuthEndpointsMock).not.toHaveBeenCalled();
+ expect(discoverOAuthProtectedResourceMetadataMock).not.toHaveBeenCalled();
+ });
+
it('requests full access for the deployment-scoped Resend connection', async () => {
mcpConnectionsFindFirstMock.mockResolvedValue({
id: CONNECTION_ID,
diff --git a/apps/web/src/lib/server/auth-email-change.integration.test.ts b/apps/web/src/lib/server/auth-email-change.integration.test.ts
new file mode 100644
index 0000000000..010575c306
--- /dev/null
+++ b/apps/web/src/lib/server/auth-email-change.integration.test.ts
@@ -0,0 +1,133 @@
+import { authUsers, db, eq } from '@roomote/db/server';
+
+vi.mock('./bootstrap-runtime-env', () => ({ bootstrapWebRuntimeEnv: vi.fn() }));
+vi.mock('./auth-provider-config', () => ({
+ resolveAuthProviderConfig: async () => ({ signature: 'email-change-test' }),
+}));
+vi.mock('./better-auth-base-url', () => ({
+ getBetterAuthBaseUrlConfig: () => 'https://auth.example.test',
+}));
+vi.mock('./env', () => ({
+ Env: { R_APP_URL: 'https://auth.example.test' },
+ getBetterAuthSecret: () => 'integration-secret-at-least-32-characters',
+ isEmailChannelEnabled: () => true,
+}));
+vi.mock('./access-policy', () => ({
+ isNewAuthUserEmailAllowed: async () => true,
+ isSignInAllowedByAccessPolicy: async () => true,
+}));
+vi.mock('@roomote/sdk/server/agentmail-outbound', () => ({
+ sendAgentMailSystemEmail: vi.fn(async () => ({ sent: true })),
+}));
+
+import { sendAgentMailSystemEmail } from '@roomote/sdk/server/agentmail-outbound';
+import { handleAuthRequest } from './auth';
+
+function cookies(response: Response) {
+ return response.headers
+ .getSetCookie()
+ .map((value) => value.split(';')[0])
+ .join('; ');
+}
+
+function request(path: string, body?: object, cookie = '') {
+ return handleAuthRequest(
+ new Request(`https://auth.example.test/api/auth/${path}`, {
+ method: body ? 'POST' : 'GET',
+ headers: {
+ origin: 'https://auth.example.test',
+ cookie,
+ ...(body ? { 'content-type': 'application/json' } : {}),
+ },
+ ...(body ? { body: JSON.stringify(body) } : {}),
+ }),
+ );
+}
+
+function lastVerificationLink() {
+ const mail = vi.mocked(sendAgentMailSystemEmail).mock.calls.at(-1)?.[0];
+ const link = mail?.text.match(/\[Verify your email\]\(([^)]+)\)/)?.[1];
+ if (!link)
+ throw new Error('Verification link was not delivered to fixture sender');
+ return link;
+}
+
+it('binds email-change links to their issuing user after the old address is registered again', async () => {
+ const suffix = crypto.randomUUID();
+ const oldEmail = `old-${suffix}@example.test`;
+ const nextEmail = `next-${suffix}@example.test`;
+ const staleTarget = `stale-${suffix}@example.test`;
+ const ids: string[] = [];
+ const signup = async (email: string) => {
+ const response = await request('sign-up/email', {
+ email,
+ name: 'Email Fixture',
+ password: 'Fixture-password-123!',
+ });
+ expect(response.status).toBe(200);
+ const userId = (await response.json()).user.id as string;
+ ids.push(userId);
+ return { response, userId };
+ };
+ try {
+ const owner = await signup(oldEmail);
+ const verified = await handleAuthRequest(
+ new Request(lastVerificationLink()),
+ );
+ expect(verified.status).toBe(302);
+ const cookie = cookies(owner.response);
+ expect(
+ (
+ await request(
+ 'change-email',
+ { newEmail: staleTarget, callbackURL: '/sign-in' },
+ cookie,
+ )
+ ).status,
+ ).toBe(200);
+ const staleLink = lastVerificationLink();
+ expect(
+ (
+ await request(
+ 'change-email',
+ { newEmail: nextEmail, callbackURL: '/sign-in' },
+ cookie,
+ )
+ ).status,
+ ).toBe(200);
+ const changed = await handleAuthRequest(
+ new Request(lastVerificationLink()),
+ );
+ expect(changed.status).toBe(302);
+ expect(
+ (
+ await db.query.authUsers.findFirst({
+ where: eq(authUsers.id, owner.userId),
+ })
+ )?.email,
+ ).toBe(nextEmail);
+ const replacement = await signup(oldEmail);
+ // Replay without a session, as in the advisory; never receive the replacement's session.
+ const replay = await handleAuthRequest(new Request(staleLink));
+ expect(replay.headers.get('location')).toContain('error=');
+ const session = await request('get-session', undefined, cookies(replay));
+ expect(await session.json()).toBeNull();
+ expect(
+ (
+ await db.query.authUsers.findFirst({
+ where: eq(authUsers.id, replacement.userId),
+ })
+ )?.email,
+ ).toBe(oldEmail);
+ expect(
+ (
+ await db.query.authUsers.findFirst({
+ where: eq(authUsers.id, owner.userId),
+ })
+ )?.email,
+ ).toBe(nextEmail);
+ } finally {
+ for (const id of ids)
+ await db.delete(authUsers).where(eq(authUsers.id, id));
+ }
+});
diff --git a/apps/web/src/lib/server/auth-oauth.integration.test.ts b/apps/web/src/lib/server/auth-oauth.integration.test.ts
index 278a37780a..68c821c05b 100644
--- a/apps/web/src/lib/server/auth-oauth.integration.test.ts
+++ b/apps/web/src/lib/server/auth-oauth.integration.test.ts
@@ -1,4 +1,6 @@
import { generateKeyPairSync, sign } from 'node:crypto';
+import { createServer } from 'node:http';
+import { once } from 'node:events';
import { authAccounts, authUsers, db, eq } from '@roomote/db/server';
vi.mock('./bootstrap-runtime-env', () => ({ bootstrapWebRuntimeEnv: vi.fn() }));
@@ -41,7 +43,7 @@ let exchanges: URLSearchParams[];
let userIds: string[];
let extraClaims: Record;
let tokenNonce: string | null;
-let slackEmailVerified: boolean;
+let slackEmailVerified: boolean | string;
function jwt() {
const encode = (value: object) =>
@@ -386,6 +388,100 @@ it('retains returning generic OAuth sign-in by existing provider identity', asyn
).toBe(user.id);
});
+it('completes configured GitLab OAuth against a real local HTTP provider', async () => {
+ vi.unstubAllGlobals();
+ const user = await existingUser('gitlab');
+ const code = crypto.randomUUID();
+ const accessToken = crypto.randomUUID();
+ let redirectUri = '';
+ let exchanged = false;
+ let profileRequests = 0;
+ const server = createServer(async (req, res) => {
+ const url = new URL(req.url!, 'http://provider.test');
+ if (url.pathname === '/oauth/authorize') {
+ redirectUri = url.searchParams.get('redirect_uri')!;
+ const callback = new URL(redirectUri);
+ callback.searchParams.set('code', code);
+ callback.searchParams.set('state', url.searchParams.get('state')!);
+ res.writeHead(302, { location: callback.toString() }).end();
+ return;
+ }
+ if (url.pathname === '/oauth/token') {
+ const chunks: Buffer[] = [];
+ for await (const chunk of req) chunks.push(Buffer.from(chunk));
+ const body = new URLSearchParams(Buffer.concat(chunks).toString());
+ if (
+ exchanged ||
+ body.get('code') !== code ||
+ body.get('redirect_uri') !== redirectUri ||
+ body.get('grant_type') !== 'authorization_code' ||
+ body.get('client_id') !== 'fixture-client'
+ ) {
+ res.writeHead(400).end();
+ return;
+ }
+ exchanged = true;
+ res.setHeader('content-type', 'application/json');
+ res.end(
+ JSON.stringify({ access_token: accessToken, token_type: 'Bearer' }),
+ );
+ return;
+ }
+ if (
+ url.pathname === '/api/v4/user' &&
+ req.headers.authorization === `Bearer ${accessToken}`
+ ) {
+ profileRequests++;
+ res.setHeader('content-type', 'application/json');
+ res.end(
+ JSON.stringify({
+ id: subject,
+ username: 'local-fixture',
+ email: `${subject}@example.test`,
+ name: 'Local OAuth Fixture',
+ }),
+ );
+ return;
+ }
+ res.writeHead(404).end();
+ });
+ server.listen(0, '127.0.0.1');
+ await once(server, 'listening');
+ try {
+ const address = server.address();
+ if (!address || typeof address === 'string')
+ throw new Error('Missing provider port');
+ const config = await resolveAuthProviderConfig();
+ vi.mocked(resolveAuthProviderConfig).mockResolvedValue({
+ ...config,
+ signature: crypto.randomUUID(),
+ gitlabBaseUrl: `http://127.0.0.1:${address.port}`,
+ });
+ const started = await start('gitlab');
+ const authorization = await fetch(started.url, { redirect: 'manual' });
+ expect(authorization.status).toBe(302);
+ const callback = await handleAuthRequest(
+ new Request(authorization.headers.get('location')!, {
+ headers: { cookie: cookies(started.response) },
+ }),
+ );
+ expect(callback.headers.get('location')).toBe('/settings/personal');
+ expect(exchanged).toBe(true);
+ expect(profileRequests).toBeGreaterThan(0);
+ const session = await request('get-session', undefined, cookies(callback));
+ expect((await session.json()).user.id).toBe(user.id);
+ expect(
+ await db.query.authAccounts.findMany({
+ where: eq(authAccounts.userId, user.id),
+ }),
+ ).toHaveLength(1);
+ } finally {
+ await new Promise((resolve, reject) =>
+ server.close((error) => (error ? reject(error) : resolve())),
+ );
+ }
+});
+
it.each(['slack', 'gitlab', 'microsoft-entra-id'])(
'keeps unverified %s profiles out of implicit email linking',
async (provider) => {
@@ -407,6 +503,52 @@ it.each(['slack', 'gitlab', 'microsoft-entra-id'])(
},
);
+it.each([
+ { claim: 'false', links: false },
+ { claim: '0', links: false },
+ { claim: 'unverified', links: false },
+ { claim: false, links: false },
+ { claim: true, links: true },
+ { claim: 'true', links: true },
+])(
+ 'parses Slack verification claim $claim when linking to a verified local account (links=$links)',
+ async ({ claim, links }) => {
+ slackEmailVerified = claim;
+ const signup = await request('sign-up/email', {
+ email: `${subject}@example.test`,
+ name: 'Existing Fixture',
+ password: 'Fixture-password-123!',
+ });
+ expect(signup.status).toBe(200);
+ const userId = (await signup.json()).user.id as string;
+ userIds.push(userId);
+ // Isolate provider-claim parsing from the independent local-email guard.
+ await db
+ .update(authUsers)
+ .set({ emailVerified: true })
+ .where(eq(authUsers.id, userId));
+ expect(
+ await db.query.authUsers.findFirst({ where: eq(authUsers.id, userId) }),
+ ).toMatchObject({ emailVerified: true });
+ const response = await finish('slack', await start('slack'));
+ const session = await (
+ await request('get-session', undefined, cookies(response))
+ ).json();
+ const linkedAccount = await db.query.authAccounts.findFirst({
+ where: eq(authAccounts.accountId, subject),
+ });
+ if (links) {
+ expect(response.headers.get('location')).toBe('/settings/personal');
+ expect(session?.user.id).toBe(userId);
+ expect(linkedAccount).toMatchObject({ userId, providerId: 'slack' });
+ return;
+ }
+ expect(response.headers.get('location')).toContain('error=');
+ expect(session).toBeNull();
+ expect(linkedAccount).toBeUndefined();
+ },
+);
+
it('preserves new Microsoft sign-up with userinfo preferred_username and no email verification claim', async () => {
const response = await finish(
'microsoft-entra-id',
diff --git a/apps/web/src/trpc/commands/integration-tool-policies/__tests__/personal-policies.test.ts b/apps/web/src/trpc/commands/integration-tool-policies/__tests__/personal-policies.test.ts
index 3ddaf30829..453349f898 100644
--- a/apps/web/src/trpc/commands/integration-tool-policies/__tests__/personal-policies.test.ts
+++ b/apps/web/src/trpc/commands/integration-tool-policies/__tests__/personal-policies.test.ts
@@ -42,10 +42,12 @@ vi.mock('@roomote/db/server', () => ({
ownerUserId: 'personal.ownerUserId',
},
upsertIntegrationToolPolicy: vi.fn(),
+ upsertIntegrationToolPolicies: vi.fn(),
upsertIntegrationToolUserPolicy: vi.fn(),
}));
-vi.mock('@roomote/types', () => ({
+vi.mock('@roomote/types', async (importOriginal) => ({
+ ...(await importOriginal()),
getMcpIntegration: mockGetMcpIntegration,
}));
@@ -129,6 +131,42 @@ describe('personal integration tool policy commands', () => {
});
});
+ it.each(['allow', 'always_allow', 'ask'] as const)(
+ 'clears both disabled Jira names when switching to %s',
+ async (mode) => {
+ mockGetMcpIntegration.mockReturnValue({ id: 'jira' });
+ mockDeploymentFindFirst.mockResolvedValue({
+ mcpId: 'jira',
+ disabledTools: [
+ 'getVisibleJiraProjects',
+ 'listJiraProjects',
+ 'getJiraIssue',
+ ],
+ });
+ const {
+ setIntegrationToolPolicyCommand,
+ setIntegrationToolPoliciesCommand,
+ } = await import('../index');
+ if (mode === 'ask') {
+ await setIntegrationToolPoliciesCommand(auth, {
+ integrationId: 'jira',
+ toolNames: ['listJiraProjects'],
+ mode,
+ });
+ } else {
+ await setIntegrationToolPolicyCommand(auth, {
+ integrationId: 'jira',
+ toolName: 'listJiraProjects',
+ mode,
+ });
+ }
+ expect(mockSet).toHaveBeenCalledWith({
+ disabledTools: ['getJiraIssue'],
+ updatedAt: expect.any(Date),
+ });
+ },
+ );
+
it('needs no experiment: personal policies are always available', async () => {
await listPersonalIntegrationToolPoliciesCommand(auth);
await setPersonalIntegrationToolPolicyCommand(auth, input);
diff --git a/apps/web/src/trpc/commands/integration-tool-policies/index.ts b/apps/web/src/trpc/commands/integration-tool-policies/index.ts
index 8ed0b75ecd..d3d088906c 100644
--- a/apps/web/src/trpc/commands/integration-tool-policies/index.ts
+++ b/apps/web/src/trpc/commands/integration-tool-policies/index.ts
@@ -21,6 +21,7 @@ import { AUTO_DECISION_REQUIREMENTS } from '@roomote/cloud-agents/server/integra
import { resolveDecisionModel } from '@roomote/cloud-agents/server/typesafe-judgment';
import {
getMcpIntegration,
+ getIntegrationMcpToolAliases,
type IntegrationToolAutoSettings,
type IntegrationToolPoliciesUpsert,
type IntegrationToolPolicyMode,
@@ -130,7 +131,9 @@ async function syncLegacyDisabledTools(input: {
if (!enablement) return;
const disabledTools = new Set(enablement.disabledTools ?? []);
- for (const toolName of input.toolNames) {
+ for (const toolName of input.toolNames.flatMap((name) => [
+ ...getIntegrationMcpToolAliases(input.integrationId, name),
+ ])) {
if (input.mode === 'reject') disabledTools.add(toolName);
else disabledTools.delete(toolName);
}
diff --git a/apps/web/src/trpc/commands/mcp-connections/index.test.ts b/apps/web/src/trpc/commands/mcp-connections/index.test.ts
index b297e4c167..de7d6e0f68 100644
--- a/apps/web/src/trpc/commands/mcp-connections/index.test.ts
+++ b/apps/web/src/trpc/commands/mcp-connections/index.test.ts
@@ -10,6 +10,19 @@ import {
isMcpConnectionExaConfig,
isMcpConnectionVoiceConfig,
} from '@roomote/types';
+import { listMcpTools } from '@roomote/cloud-agents/server';
+import { startMcpToolTestServer } from '../../../../../../packages/cloud-agents/src/server/__tests__/mcp-tool-client-fixture';
+
+vi.mock('@roomote/cloud-agents/server', async () => ({
+ isMcpAuthenticationError: (
+ await import('../../../../../../packages/cloud-agents/src/server/mcp-tool-client')
+ ).isMcpAuthenticationError,
+ listMcpTools: vi.fn(),
+}));
+vi.mock('@roomote/sdk/server', async (importOriginal) => ({
+ ...(await importOriginal()),
+ getValidAccessToken: vi.fn(async () => 'synthetic-catalog-token'),
+}));
const { captureEventMock } = vi.hoisted(() => ({
captureEventMock: vi.fn(),
@@ -64,7 +77,15 @@ const memberAuth = {
isAdmin: false,
} as UserAuthSuccess;
-const testMcpIds = ['asana', 'exa', 'linear', 'monday', 'sentry', 'voice'];
+const testMcpIds = [
+ 'asana',
+ 'exa',
+ 'jira',
+ 'linear',
+ 'monday',
+ 'sentry',
+ 'voice',
+];
async function cleanup() {
await db
@@ -84,6 +105,7 @@ describe('MCP connection lifecycle telemetry', () => {
beforeEach(async () => {
vi.clearAllMocks();
vi.unstubAllGlobals();
+ vi.mocked(listMcpTools).mockReset();
getDeploymentStaticOauthReadinessMock.mockResolvedValue('ready');
resolveModelProviderEnvValueMock.mockResolvedValue(undefined);
await cleanup();
@@ -91,20 +113,143 @@ describe('MCP connection lifecycle telemetry', () => {
afterAll(cleanup);
- it('validates and encrypts a deployment-wide Exa API key before connecting', async () => {
- const fetchMock = vi.fn().mockResolvedValue(
- new Response(
- JSON.stringify({
- jsonrpc: '2.0',
- id: 1,
- result: {
- tools: [{ name: 'web_search_exa', description: 'Search the web' }],
- },
- }),
- { status: 200, headers: { 'content-type': 'application/json' } },
- ),
+ it('loads the admin catalog through the real shared client and an initialized paginated server', async () => {
+ const { listMcpTools: realListMcpTools } =
+ await import('../../../../../../packages/cloud-agents/src/server/mcp-tool-client');
+ vi.mocked(listMcpTools).mockImplementation(realListMcpTools);
+ const endpoint = await startMcpToolTestServer(() => ({ content: [] }), {
+ listTools: (request) =>
+ request.params?.cursor === 'next'
+ ? {
+ tools: [
+ {
+ name: 'getJiraIssue',
+ inputSchema: { type: 'object' },
+ annotations: { readOnlyHint: true },
+ },
+ { name: 'listJiraProjects', inputSchema: { type: 'object' } },
+ ],
+ }
+ : {
+ tools: [
+ { name: 'createJiraIssue', inputSchema: { type: 'object' } },
+ ],
+ nextCursor: 'next',
+ },
+ });
+ const realFetch = globalThis.fetch;
+ vi.stubGlobal('fetch', (_url: string | URL, init?: RequestInit) =>
+ realFetch(endpoint.url, init),
);
- vi.stubGlobal('fetch', fetchMock);
+ try {
+ await connectMcpCommand(adminAuth, { mcpId: 'jira' });
+ await db
+ .update(mcpConnections)
+ .set({ enabled: true, authStatus: 'authenticated' })
+ .where(eq(mcpConnections.mcpId, 'jira'));
+ await setDeploymentMcpEnabledCommand(adminAuth, {
+ mcpId: 'jira',
+ enabled: true,
+ });
+ await db
+ .update(deploymentMcpEnablements)
+ .set({ disabledTools: ['getVisibleJiraProjects'] })
+ .where(eq(deploymentMcpEnablements.mcpId, 'jira'));
+ await expect(
+ listDeploymentMcpIntegrationToolsCommand(adminAuth, { mcpId: 'jira' }),
+ ).resolves.toMatchObject({
+ tools: [
+ { name: 'getJiraIssue', readOnly: true, enabled: true },
+ { name: 'listJiraProjects', enabled: false },
+ ],
+ });
+ } finally {
+ await endpoint.close();
+ vi.unstubAllGlobals();
+ }
+ });
+
+ it('clears a legacy Jira client registration when reconnecting for v2 consent', async () => {
+ await connectMcpCommand(adminAuth, { mcpId: 'jira' });
+ await db
+ .update(mcpConnections)
+ .set({
+ authConfig: {
+ type: 'oauth_client',
+ client_id: 'legacy-v1-client',
+ registered_redirect_uri: 'https://example.com/api/mcp-oauth/callback',
+ },
+ enabled: true,
+ authStatus: 'authenticated',
+ })
+ .where(eq(mcpConnections.mcpId, 'jira'));
+ await connectMcpCommand(adminAuth, { mcpId: 'jira' });
+ const connections = await db
+ .select()
+ .from(mcpConnections)
+ .where(eq(mcpConnections.mcpId, 'jira'));
+ expect(connections).toHaveLength(1);
+ expect(connections[0]).toMatchObject({
+ authConfig: {},
+ enabled: false,
+ authStatus: 'pending',
+ });
+ });
+
+ it('delegates discovery and preserves read-only annotations and catalog policy', async () => {
+ await setDeploymentMcpEnabledCommand(adminAuth, {
+ mcpId: 'exa',
+ enabled: true,
+ });
+ vi.mocked(listMcpTools).mockResolvedValue([
+ { name: 'web_search_exa', annotations: { readOnlyHint: true } },
+ ]);
+ await expect(
+ listDeploymentMcpIntegrationToolsCommand(adminAuth, { mcpId: 'exa' }),
+ ).resolves.toMatchObject({
+ tools: [{ name: 'web_search_exa', readOnly: true, enabled: true }],
+ });
+ expect(listMcpTools).toHaveBeenCalledWith({
+ url: expect.stringContaining('https://mcp.exa.ai/'),
+ headers: {},
+ signal: expect.any(AbortSignal),
+ });
+ });
+
+ it.each([
+ [
+ new Error('MCP tool catalog pagination did not terminate.'),
+ 'Failed to load tools from Exa. Please try again.',
+ ],
+ [
+ new Error('synthetic-secret from upstream'),
+ 'Failed to load tools from Exa. Please try again.',
+ ],
+ [
+ new Error('invalid_token synthetic-secret'),
+ 'Exa needs to be reconnected before tools can be managed.',
+ ],
+ [
+ new Error('wrapped', {
+ cause: new Error('expired access token synthetic-secret'),
+ }),
+ 'Exa needs to be reconnected before tools can be managed.',
+ ],
+ ])('presents safe catalog errors for %s', async (error, message) => {
+ await setDeploymentMcpEnabledCommand(adminAuth, {
+ mcpId: 'exa',
+ enabled: true,
+ });
+ vi.mocked(listMcpTools).mockRejectedValue(error);
+ await expect(
+ listDeploymentMcpIntegrationToolsCommand(adminAuth, { mcpId: 'exa' }),
+ ).rejects.toThrow(message);
+ });
+
+ it('validates and encrypts a deployment-wide Exa API key before connecting', async () => {
+ vi.mocked(listMcpTools).mockResolvedValue([
+ { name: 'web_search_exa', description: 'Search the web' },
+ ]);
await saveExaConnectionCommand(adminAuth, { apiKey: 'exa-secret' });
@@ -116,13 +261,11 @@ describe('MCP connection lifecycle telemetry', () => {
expect(isMcpConnectionExaConfig(connection?.authConfig)).toBe(true);
expect(JSON.stringify(connection?.authConfig)).not.toContain('exa-secret');
- const requestHeaders = fetchMock.mock.calls[0]?.[1]?.headers as Record<
- string,
- string
- >;
+ const requestHeaders = vi.mocked(listMcpTools).mock.calls[0]?.[0]
+ ?.headers as Record;
expect(requestHeaders['x-api-key']).toBe('exa-secret');
expect(requestHeaders.authorization).toBeUndefined();
- expect(fetchMock.mock.calls[0]?.[0]).toBe(
+ expect(vi.mocked(listMcpTools).mock.calls[0]?.[0]?.url).toBe(
'https://mcp.exa.ai/mcp?tools=web_search_exa,web_fetch_exa,web_search_advanced_exa,agent_run',
);
const enablements = await db
@@ -133,15 +276,7 @@ describe('MCP connection lifecycle telemetry', () => {
});
it('does not persist an Exa connection when upstream validation fails', async () => {
- vi.stubGlobal(
- 'fetch',
- vi.fn().mockResolvedValue(
- new Response(JSON.stringify({ error: 'invalid API key' }), {
- status: 401,
- headers: { 'content-type': 'application/json' },
- }),
- ),
- );
+ vi.mocked(listMcpTools).mockRejectedValue(new Error('invalid API key'));
await expect(
saveExaConnectionCommand(adminAuth, { apiKey: 'invalid-key' }),
@@ -184,23 +319,11 @@ describe('MCP connection lifecycle telemetry', () => {
status: 'connected',
});
- const fetchMock = vi.fn().mockResolvedValue(
- new Response(
- JSON.stringify({
- jsonrpc: '2.0',
- id: 1,
- result: {
- tools: [
- { name: 'web_search_exa' },
- { name: 'web_fetch_exa' },
- { name: 'web_search_advanced_exa' },
- ],
- },
- }),
- { status: 200, headers: { 'content-type': 'application/json' } },
- ),
- );
- vi.stubGlobal('fetch', fetchMock);
+ vi.mocked(listMcpTools).mockResolvedValue([
+ { name: 'web_search_exa' },
+ { name: 'web_fetch_exa' },
+ { name: 'web_search_advanced_exa' },
+ ]);
await expect(
listDeploymentMcpIntegrationToolsCommand(adminAuth, { mcpId: 'exa' }),
@@ -211,26 +334,13 @@ describe('MCP connection lifecycle telemetry', () => {
{ name: 'web_search_advanced_exa' },
],
});
- expect(fetchMock.mock.calls[0]?.[1]?.headers).not.toHaveProperty(
- 'x-api-key',
- );
+ expect(
+ vi.mocked(listMcpTools).mock.calls[0]?.[0]?.headers,
+ ).not.toHaveProperty('x-api-key');
});
it('preserves an optional Exa key across disable and removes it without re-enabling', async () => {
- vi.stubGlobal(
- 'fetch',
- vi.fn().mockImplementation(
- async () =>
- new Response(
- JSON.stringify({
- jsonrpc: '2.0',
- id: 1,
- result: { tools: [{ name: 'agent_run' }] },
- }),
- { status: 200, headers: { 'content-type': 'application/json' } },
- ),
- ),
- );
+ vi.mocked(listMcpTools).mockResolvedValue([{ name: 'agent_run' }]);
await setDeploymentMcpEnabledCommand(adminAuth, {
mcpId: 'exa',
diff --git a/apps/web/src/trpc/commands/mcp-connections/index.ts b/apps/web/src/trpc/commands/mcp-connections/index.ts
index 296f63c4fe..6b31996c14 100644
--- a/apps/web/src/trpc/commands/mcp-connections/index.ts
+++ b/apps/web/src/trpc/commands/mcp-connections/index.ts
@@ -14,6 +14,7 @@ import {
DEFAULT_OPENAI_REALTIME_VOICE_ID,
getDefaultMcpConnectionRole,
getAllowedIntegrationMcpToolNames,
+ getIntegrationMcpDisabledToolNames,
getMcpIntegration,
getMcpIntegrationConnectionMode,
getMcpIntegrationConnectionScope,
@@ -39,10 +40,13 @@ import {
normalizeGrafanaBaseUrl,
type McpIntegration,
type EffectiveMcpIntegration,
- type McpToolsListJsonRpcPayload,
- parseMcpJsonRpcPayload,
readMcpToolReadOnlyHint,
} from '@roomote/types';
+import {
+ isMcpAuthenticationError,
+ listMcpTools,
+ type McpToolDefinition,
+} from '@roomote/cloud-agents/server';
import { decrypt, encrypt } from '@roomote/db/encryption';
import { getValidAccessToken } from '@roomote/sdk/server';
import { validateRipplingConnection } from '@roomote/sdk/server/rippling-api';
@@ -119,7 +123,6 @@ function getMcpIntegrationIds(): string[] {
return MCP_INTEGRATIONS.map((integration) => integration.id);
}
-const MCP_PROTOCOL_VERSION = '2025-06-18';
const MCP_TOOL_CATALOG_TIMEOUT_MS = 10_000;
type ListedMcpTool = {
@@ -293,276 +296,20 @@ async function fetchUpstreamMcpTools(input: {
const reconnectMessage = `${resolvedIntegration.name} needs to be reconnected before tools can be managed.`;
- function isTimeoutError(error: unknown): boolean {
- return (
- (error instanceof DOMException &&
- (error.name === 'TimeoutError' || error.name === 'AbortError')) ||
- (error instanceof Error &&
- error.message.includes('The operation was aborted due to timeout'))
- );
- }
-
- function extractUpstreamErrorMessage(
- bodyText: string,
- contentType: string | null,
- ): string | null {
- const payload = parseMcpJsonRpcPayload(
- bodyText,
- contentType,
- ) as McpToolsListJsonRpcPayload | null;
- if (
- typeof payload?.error?.message === 'string' &&
- payload.error.message.trim().length > 0
- ) {
- return payload.error.message.trim();
- }
-
- try {
- const parsed = JSON.parse(bodyText) as Record;
- const candidates = [
- parsed.error_description,
- parsed.error,
- parsed.message,
- parsed.detail,
- ];
-
- for (const candidate of candidates) {
- if (typeof candidate === 'string' && candidate.trim().length > 0) {
- return candidate.trim();
- }
- }
- } catch {
- // Ignore non-JSON bodies and fall back to the raw body text.
- }
-
- const trimmedBody = bodyText.trim();
- return trimmedBody.length > 0 ? trimmedBody : null;
- }
-
- function shouldReconnectFromUpstreamError(
- responseStatus: number | null,
- upstreamMessage: string | null,
- ): boolean {
- if (responseStatus === 401) {
- return true;
- }
-
- if (!upstreamMessage) {
- return false;
- }
-
- const normalizedMessage = upstreamMessage.toLowerCase();
- return (
- normalizedMessage.includes('invalid_token') ||
- normalizedMessage.includes('invalid access token') ||
- normalizedMessage.includes('expired access token')
- );
- }
-
- function buildUpstreamToolLoadError(args: {
- response: Response;
- responseBody: string;
- action: 'load tools' | 'initialize' | 'initialize MCP session';
- }): Error {
- const upstreamMessage = extractUpstreamErrorMessage(
- args.responseBody,
- args.response.headers.get('content-type'),
- );
-
- if (
- shouldReconnectFromUpstreamError(args.response.status, upstreamMessage)
- ) {
- return new Error(reconnectMessage);
- }
-
- if (upstreamMessage) {
- if (args.action === 'load tools') {
- return new Error(
- `Failed to load tools from ${resolvedIntegration.name}: ${upstreamMessage}`,
- );
- }
-
- if (args.action === 'initialize') {
- return new Error(
- `Failed to initialize ${resolvedIntegration.name} before loading tools: ${upstreamMessage}`,
- );
- }
-
- return new Error(
- `Failed to initialize MCP session with ${resolvedIntegration.name}: ${upstreamMessage}`,
- );
- }
-
- if (args.action === 'load tools') {
- return new Error(
- `Failed to load tools from ${resolvedIntegration.name} (${args.response.status} ${args.response.statusText})`,
- );
- }
-
- if (args.action === 'initialize') {
- return new Error(
- `Failed to initialize ${resolvedIntegration.name} before loading tools (${args.response.status} ${args.response.statusText})`,
- );
- }
-
- return new Error(
- `Failed to initialize MCP session with ${resolvedIntegration.name} (${args.response.status} ${args.response.statusText})`,
- );
- }
-
- const postJsonRpc = async (
- body: Record,
- extraHeaders: Record = {},
- ) =>
- fetch(auth.upstreamUrl ?? integrationUrl, {
- method: 'POST',
- headers: {
- accept: 'application/json, text/event-stream',
- 'content-type': 'application/json',
- ...auth.headers,
- ...extraHeaders,
- },
- body: JSON.stringify(body),
- signal: AbortSignal.timeout(MCP_TOOL_CATALOG_TIMEOUT_MS),
- });
-
- async function listToolsWithInitializedSession(): Promise<{
- response: Response;
- responseBody: string;
- }> {
- const initializeResponse = await postJsonRpc(
- {
- jsonrpc: '2.0',
- id: 1,
- method: 'initialize',
- params: {
- protocolVersion: MCP_PROTOCOL_VERSION,
- capabilities: {},
- clientInfo: {
- name: 'roomote-admin',
- version: '0.0.0',
- },
- },
- },
- {
- 'mcp-protocol-version': MCP_PROTOCOL_VERSION,
- },
- );
-
- const initializeResponseBody = await initializeResponse.text();
-
- if (!initializeResponse.ok) {
- throw buildUpstreamToolLoadError({
- response: initializeResponse,
- responseBody: initializeResponseBody,
- action: 'initialize',
- });
- }
-
- const sessionHeaders: Record = {
- 'mcp-protocol-version': MCP_PROTOCOL_VERSION,
- };
- const sessionId = initializeResponse.headers.get('mcp-session-id');
- if (sessionId) {
- sessionHeaders['mcp-session-id'] = sessionId;
- }
-
- const initializedResponse = await postJsonRpc(
- {
- jsonrpc: '2.0',
- method: 'notifications/initialized',
- },
- sessionHeaders,
- );
-
- const initializedResponseBody = await initializedResponse.text();
-
- if (!initializedResponse.ok) {
- throw buildUpstreamToolLoadError({
- response: initializedResponse,
- responseBody: initializedResponseBody,
- action: 'initialize MCP session',
- });
- }
-
- const response = await postJsonRpc(
- {
- jsonrpc: '2.0',
- id: 2,
- method: 'tools/list',
- },
- sessionHeaders,
- );
- const responseBody = await response.text();
- return { response, responseBody };
- }
-
- let response: Response;
- let responseBody: string;
-
+ let tools: McpToolDefinition[];
try {
- response = await postJsonRpc({
- jsonrpc: '2.0',
- id: 1,
- method: 'tools/list',
+ tools = await listMcpTools({
+ url: auth.upstreamUrl ?? integrationUrl,
+ headers: auth.headers,
+ signal: AbortSignal.timeout(MCP_TOOL_CATALOG_TIMEOUT_MS),
});
- responseBody = await response.text();
} catch (error) {
- if (!isTimeoutError(error)) {
- throw error;
- }
-
- ({ response, responseBody } = await listToolsWithInitializedSession());
- }
-
- if (
- !response.ok &&
- response.status === 400 &&
- responseBody.includes('Mcp-Session-Id')
- ) {
- ({ response, responseBody } = await listToolsWithInitializedSession());
- }
-
- if (!response.ok) {
- throw buildUpstreamToolLoadError({
- response,
- responseBody,
- action: 'load tools',
- });
- }
-
- const payload = parseMcpJsonRpcPayload(
- responseBody,
- response.headers.get('content-type'),
- ) as McpToolsListJsonRpcPayload | null;
-
- if (!payload) {
+ if (isMcpAuthenticationError(error)) throw new Error(reconnectMessage);
+ // Upstream messages can contain credentials; do not expose them in the UI.
throw new Error(
- `Failed to load tools from ${resolvedIntegration.name}: upstream tools/list returned an invalid payload.`,
+ `Failed to load tools from ${resolvedIntegration.name}. Please try again.`,
);
}
-
- if (payload.error) {
- const upstreamMessage =
- typeof payload.error.message === 'string' &&
- payload.error.message.trim().length > 0
- ? payload.error.message.trim()
- : 'upstream MCP server returned a JSON-RPC error';
- if (shouldReconnectFromUpstreamError(null, upstreamMessage)) {
- throw new Error(reconnectMessage);
- }
- throw new Error(
- `Failed to load tools from ${resolvedIntegration.name}: ${upstreamMessage}`,
- );
- }
-
- if (!Array.isArray(payload.result?.tools)) {
- throw new Error(
- `Failed to load tools from ${resolvedIntegration.name}: upstream tools/list returned an invalid payload.`,
- );
- }
-
- const tools = payload.result.tools;
const toolDefinitions = tools.flatMap((tool) =>
typeof tool.name === 'string'
? [
@@ -580,11 +327,15 @@ async function fetchUpstreamMcpTools(input: {
const visibleTools = filterMcpToolDefinitions(toolDefinitions, {
allowedToolNames,
});
+ const disabledToolNames = getIntegrationMcpDisabledToolNames(
+ resolvedIntegration,
+ input.disabledTools,
+ );
return visibleTools.map((tool) => ({
...tool,
enabled: isMcpToolAllowed(tool.name, {
- disabledToolNames: input.disabledTools,
+ disabledToolNames,
}),
}));
}
diff --git a/apps/web/src/trpc/commands/task-models/auto-add-models.test.ts b/apps/web/src/trpc/commands/task-models/auto-add-models.test.ts
index f76c1c04b0..28f61fabfe 100644
--- a/apps/web/src/trpc/commands/task-models/auto-add-models.test.ts
+++ b/apps/web/src/trpc/commands/task-models/auto-add-models.test.ts
@@ -78,6 +78,8 @@ describe('buildAutoAddedTaskModelSettings', () => {
'openai/gpt-5.6-sol',
'openai/gpt-6-sol',
'openai/gpt-6.1-sol',
+ 'openai/gpt-6.2-sol',
+ 'openai/gpt-6.2-astra',
'openai/gpt-6.1-terra',
'openai/gpt-5.6-luna',
'openai/gpt-6-luna',
diff --git a/apps/web/src/trpc/commands/task-models/index.test.ts b/apps/web/src/trpc/commands/task-models/index.test.ts
index 74a20cc6b2..6ee93f74e9 100644
--- a/apps/web/src/trpc/commands/task-models/index.test.ts
+++ b/apps/web/src/trpc/commands/task-models/index.test.ts
@@ -1942,6 +1942,8 @@ describe('task model provider commands', () => {
'openai/gpt-5.6-sol',
'openai/gpt-6-sol',
'openai/gpt-6.1-sol',
+ 'openai/gpt-6.2-sol',
+ 'openai/gpt-6.2-astra',
'openai/gpt-6.1-terra',
'openai/gpt-5.6-terra',
'openai/gpt-5.6-luna',
diff --git a/apps/worker/src/mcp/roomote-mcp-server/integration-setup.ts b/apps/worker/src/mcp/roomote-mcp-server/integration-setup.ts
index cd3164ec28..42dd4d93be 100644
--- a/apps/worker/src/mcp/roomote-mcp-server/integration-setup.ts
+++ b/apps/worker/src/mcp/roomote-mcp-server/integration-setup.ts
@@ -31,12 +31,14 @@ Once connected, I can use the permitted Notion tools during both interactive tas
# Jira
-Jira uses OAuth and requires both levels:
+Jira uses Atlassian MCP v2 OAuth and requires both levels:
1. An admin enables Jira from the Integrations page.
2. That admin connects Jira once for the workspace via OAuth.
Once connected, I can read Jira issues, project metadata, and JQL search results using the workspace's connected Atlassian account.
+Existing Atlassian MCP v1 connections require an admin to reconnect Jira from the Integrations page and complete fresh OAuth consent. The built-in connection remains read-only.
+
# monday.com
monday.com uses OAuth and requires both levels:
diff --git a/apps/worker/src/run-task/__tests__/opencode-chatgpt-gateway-plugin-script.test.ts b/apps/worker/src/run-task/__tests__/opencode-chatgpt-gateway-plugin-script.test.ts
index 3965c46857..80b36aa532 100644
--- a/apps/worker/src/run-task/__tests__/opencode-chatgpt-gateway-plugin-script.test.ts
+++ b/apps/worker/src/run-task/__tests__/opencode-chatgpt-gateway-plugin-script.test.ts
@@ -94,6 +94,8 @@ describe('OPENCODE_CHATGPT_GATEWAY_PLUGIN_SCRIPT', () => {
'gpt-6-astra': createModel('gpt-6-astra'),
'gpt-6-sol': createModel('gpt-6-sol'),
'gpt-6.1-sol': createModel('gpt-6.1-sol'),
+ 'gpt-6.2-sol': createModel('gpt-6.2-sol'),
+ 'gpt-6.2-astra': createModel('gpt-6.2-astra'),
'gpt-6.1-terra': {
...createModel('gpt-6.1-terra'),
limit: { context: 1_050_000, input: 922_000, output: 128_000 },
@@ -114,6 +116,8 @@ describe('OPENCODE_CHATGPT_GATEWAY_PLUGIN_SCRIPT', () => {
'gpt-6-astra',
'gpt-6-sol',
'gpt-6.1-sol',
+ 'gpt-6.2-sol',
+ 'gpt-6.2-astra',
'gpt-6.1-terra',
'gpt-6-luna',
'gpt-5.6-luna',
diff --git a/apps/worker/src/run-task/agent-home.test.ts b/apps/worker/src/run-task/agent-home.test.ts
index 5720cd1abe..32a2d1197c 100644
--- a/apps/worker/src/run-task/agent-home.test.ts
+++ b/apps/worker/src/run-task/agent-home.test.ts
@@ -1338,6 +1338,7 @@ describe('generateOpenCodeConfig provider support', () => {
R_SMALL_MODEL: 'openai/gpt-6-luna',
R_VISION_MODEL: 'openai/gpt-6.1-sol',
R_CODE_REVIEW_MODEL: 'openai/gpt-6.1-terra',
+ R_PLANNING_MODEL: 'openai/gpt-6.2-sol',
R_MODEL_REASONING_EFFORT: 'high',
R_CHATGPT_FAST_MODE: '1',
};
@@ -1365,6 +1366,9 @@ describe('generateOpenCodeConfig provider support', () => {
expect(config.provider.openai?.models?.['gpt-6.1-terra']?.options).toEqual({
serviceTier: 'priority',
});
+ expect(config.provider.openai?.models?.['gpt-6.2-sol']?.options).toEqual({
+ serviceTier: 'priority',
+ });
expect(runtimeEnv).not.toHaveProperty('R_CHATGPT_FAST_MODE');
});
diff --git a/package.json b/package.json
index 5285211dc0..cfdce2a36d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "roomote",
- "version": "1.23.0",
+ "version": "1.24.0",
"license": "Apache-2.0",
"packageManager": "pnpm@10.29.3",
"engines": {
diff --git a/packages/cloud-agents/src/server/__tests__/mcp-tool-client-fixture.ts b/packages/cloud-agents/src/server/__tests__/mcp-tool-client-fixture.ts
index a7999203eb..5216d5f269 100644
--- a/packages/cloud-agents/src/server/__tests__/mcp-tool-client-fixture.ts
+++ b/packages/cloud-agents/src/server/__tests__/mcp-tool-client-fixture.ts
@@ -1,4 +1,4 @@
-import { createServer } from 'node:http';
+import { createServer, type IncomingHttpHeaders } from 'node:http';
import { randomUUID } from 'node:crypto';
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
@@ -7,20 +7,33 @@ import {
ListToolsRequestSchema,
type CallToolRequest,
type CallToolResult,
+ type ListToolsRequest,
+ type ListToolsResult,
} from '@modelcontextprotocol/sdk/types.js';
/** A real local MCP endpoint, shared by client and broker regression tests. */
export async function startMcpToolTestServer(
call: (request: CallToolRequest) => CallToolResult,
- options: { httpFailure?: boolean } = {},
+ options: {
+ httpFailure?: boolean;
+ listTools?: (
+ request: ListToolsRequest,
+ ) => ListToolsResult | Promise;
+ } = {},
) {
const mcp = new Server(
{ name: 'mcp-tool-client-test', version: '1.0.0' },
{ capabilities: { tools: {} } },
);
- mcp.setRequestHandler(ListToolsRequestSchema, async () => ({
- tools: [{ name: 'integration_request', inputSchema: { type: 'object' } }],
- }));
+ mcp.setRequestHandler(
+ ListToolsRequestSchema,
+ async (request) =>
+ options.listTools?.(request) ?? {
+ tools: [
+ { name: 'integration_request', inputSchema: { type: 'object' } },
+ ],
+ },
+ );
mcp.setRequestHandler(CallToolRequestSchema, async (request) =>
call(request),
);
@@ -29,7 +42,12 @@ export async function startMcpToolTestServer(
enableJsonResponse: true,
});
await mcp.connect(transport);
+ const requests: Array<{
+ method: string | undefined;
+ headers: IncomingHttpHeaders;
+ }> = [];
const server = createServer(async (request, response) => {
+ requests.push({ method: request.method, headers: request.headers });
if (options.httpFailure) {
response.writeHead(503).end('Service unavailable (503)');
return;
@@ -43,6 +61,7 @@ export async function startMcpToolTestServer(
}
return {
url: `http://127.0.0.1:${address.port}/mcp`,
+ requests,
async close() {
await mcp.close();
await new Promise((resolve, reject) => {
diff --git a/packages/cloud-agents/src/server/__tests__/mcp-tool-client.test.ts b/packages/cloud-agents/src/server/__tests__/mcp-tool-client.test.ts
index 12a670a1e5..24427e4bfc 100644
--- a/packages/cloud-agents/src/server/__tests__/mcp-tool-client.test.ts
+++ b/packages/cloud-agents/src/server/__tests__/mcp-tool-client.test.ts
@@ -4,12 +4,14 @@ import {
ErrorCode,
McpError,
type CallToolResult,
+ type ListToolsRequest,
} from '@modelcontextprotocol/sdk/types.js';
import { formatErrorForLog } from '@roomote/types';
import {
callMcpTool,
extractMcpToolResultPayload,
listMcpTools,
+ isMcpAuthenticationError,
McpToolCallError,
} from '../mcp-tool-client';
import { startMcpToolTestServer } from './mcp-tool-client-fixture';
@@ -103,6 +105,213 @@ describe('extractMcpToolResultPayload', () => {
describe('callMcpTool with the real AI SDK and local MCP server', () => {
afterEach(() => vi.restoreAllMocks());
+ it('discovers tools from a stateless server through the standard handshake', async () => {
+ const methods: string[] = [];
+ const server = createServer(async (request, response) => {
+ if (request.method === 'GET') {
+ response.writeHead(405).end();
+ return;
+ }
+ let body = '';
+ for await (const chunk of request) body += chunk;
+ const message = JSON.parse(body);
+ methods.push(message.method);
+ expect(request.headers['mcp-session-id']).toBeUndefined();
+ if (message.method === 'notifications/initialized') {
+ response.writeHead(202).end();
+ return;
+ }
+ response.writeHead(200, { 'content-type': 'application/json' }).end(
+ JSON.stringify({
+ jsonrpc: '2.0',
+ id: message.id,
+ result:
+ message.method === 'initialize'
+ ? {
+ protocolVersion: message.params.protocolVersion,
+ capabilities: { tools: {} },
+ serverInfo: { name: 'stateless-test', version: '1.0.0' },
+ }
+ : {
+ tools: [
+ {
+ name: 'integration_request',
+ inputSchema: { type: 'object' },
+ },
+ ],
+ },
+ }),
+ );
+ });
+ await new Promise((resolve) =>
+ server.listen(0, '127.0.0.1', resolve),
+ );
+ const address = server.address();
+ if (!address || typeof address === 'string')
+ throw new Error('Expected TCP listener');
+ try {
+ await expect(
+ listMcpTools({ url: `http://127.0.0.1:${address.port}/mcp` }),
+ ).resolves.toMatchObject([{ name: 'integration_request' }]);
+ expect(methods).toEqual([
+ 'initialize',
+ 'notifications/initialized',
+ 'tools/list',
+ ]);
+ } finally {
+ server.closeAllConnections();
+ await new Promise((resolve) => server.close(() => resolve()));
+ }
+ });
+
+ it('retains annotations across initialized catalog pages and forwards auth/session headers', async () => {
+ const endpoint = await startMcpToolTestServer(() => ({ content: [] }), {
+ listTools: (request) =>
+ request.params?.cursor === 'next'
+ ? {
+ tools: [
+ {
+ name: 'write',
+ inputSchema: { type: 'object' },
+ annotations: { readOnlyHint: false },
+ },
+ ],
+ }
+ : {
+ tools: [
+ {
+ name: 'read',
+ inputSchema: { type: 'object' },
+ annotations: { readOnlyHint: true, title: 'Read' },
+ },
+ ],
+ nextCursor: 'next',
+ },
+ });
+ const close = vi.spyOn(StreamableHTTPClientTransport.prototype, 'close');
+ try {
+ await expect(
+ listMcpTools({
+ url: endpoint.url,
+ headers: { 'x-test-auth': 'catalog' },
+ }),
+ ).resolves.toMatchObject([
+ { name: 'read', annotations: { readOnlyHint: true, title: 'Read' } },
+ { name: 'write', annotations: { readOnlyHint: false } },
+ ]);
+ const posts = endpoint.requests.filter(
+ (request) => request.method === 'POST',
+ );
+ expect(posts).toHaveLength(4); // initialize, initialized, two list pages
+ expect(posts[0]?.headers['mcp-session-id']).toBeUndefined();
+ const sessionId = posts[1]?.headers['mcp-session-id'];
+ expect(sessionId).toEqual(expect.any(String));
+ expect(
+ posts
+ .slice(1)
+ .every((request) => request.headers['mcp-session-id'] === sessionId),
+ ).toBe(true);
+ expect(
+ posts.every((request) => request.headers['x-test-auth'] === 'catalog'),
+ ).toBe(true);
+ expect(close).toHaveBeenCalledOnce();
+ } finally {
+ await endpoint.close();
+ }
+ });
+
+ it.each(['failure', 'cancellation'])(
+ 'closes the transport after later-page %s without returning a partial catalog',
+ async (mode) => {
+ const controller = new AbortController();
+ let pageStarted!: () => void;
+ const started = new Promise((resolve) => {
+ pageStarted = resolve;
+ });
+ const endpoint = await startMcpToolTestServer(() => ({ content: [] }), {
+ listTools: async (request) => {
+ if (!request.params?.cursor) return { tools: [], nextCursor: 'next' };
+ pageStarted();
+ if (mode === 'failure')
+ throw new McpError(ErrorCode.InternalError, 'later page failed');
+ await new Promise((resolve) =>
+ controller.signal.addEventListener('abort', () => resolve(), {
+ once: true,
+ }),
+ );
+ return { tools: [] };
+ },
+ });
+ const close = vi.spyOn(StreamableHTTPClientTransport.prototype, 'close');
+ try {
+ const discovery = listMcpTools({
+ url: endpoint.url,
+ signal: controller.signal,
+ });
+ const rejected = expect(discovery).rejects.toThrow();
+ await started;
+ if (mode === 'cancellation') controller.abort();
+ await rejected;
+ expect(close).toHaveBeenCalledOnce();
+ } finally {
+ await endpoint.close();
+ }
+ },
+ );
+
+ it.each(['list', 'call'])(
+ 'follows paginated flat tools for %s',
+ async (operation) => {
+ const listTools = vi.fn((request: ListToolsRequest) =>
+ request.params?.cursor === 'jira-page-2'
+ ? {
+ tools: [
+ {
+ name: 'getJiraIssue',
+ inputSchema: { type: 'object' as const },
+ },
+ ],
+ }
+ : { tools: [], nextCursor: 'jira-page-2' },
+ );
+ const call = vi.fn(() => ({
+ content: [{ type: 'text' as const, text: '{"key":"TEST-1"}' }],
+ }));
+ const endpoint = await startMcpToolTestServer(call, { listTools });
+ try {
+ if (operation === 'list') {
+ await expect(listMcpTools({ url: endpoint.url })).resolves.toEqual([
+ { name: 'getJiraIssue', inputSchema: { type: 'object' } },
+ ]);
+ } else {
+ await expect(
+ callMcpTool({ url: endpoint.url, toolName: 'getJiraIssue' }),
+ ).resolves.toEqual({ key: 'TEST-1' });
+ expect(call).toHaveBeenCalledOnce();
+ }
+ expect(listTools).toHaveBeenCalledTimes(2);
+ expect(listTools.mock.calls[1]?.[0].params?.cursor).toBe('jira-page-2');
+ } finally {
+ await endpoint.close();
+ }
+ },
+ );
+
+ it('rejects repeated catalog cursors and closes the transport', async () => {
+ const endpoint = await startMcpToolTestServer(() => ({ content: [] }), {
+ listTools: () => ({ tools: [], nextCursor: 'repeated' }),
+ });
+ const close = vi.spyOn(StreamableHTTPClientTransport.prototype, 'close');
+ try {
+ await expect(listMcpTools({ url: endpoint.url })).rejects.toThrow(
+ 'pagination did not terminate',
+ );
+ expect(close).toHaveBeenCalledOnce();
+ } finally {
+ await endpoint.close();
+ }
+ });
+
it.each<{ name: string; result: CallToolResult; expected: unknown }>([
{
name: 'structured success',
@@ -205,6 +414,33 @@ describe('callMcpTool with the real AI SDK and local MCP server', () => {
}
});
+ it('recognizes actual SDK HTTP authentication failures without relying on the Error name', async () => {
+ const server = createServer((_request, response) =>
+ response.writeHead(401).end('synthetic-secret'),
+ );
+ await new Promise((resolve) =>
+ server.listen(0, '127.0.0.1', resolve),
+ );
+ const address = server.address();
+ if (!address || typeof address === 'string')
+ throw new Error('Expected TCP listener');
+ try {
+ const error = await listMcpTools({
+ url: `http://127.0.0.1:${address.port}/mcp`,
+ }).catch((error: unknown) => error);
+ expect(isMcpAuthenticationError(error)).toBe(true);
+ expect(
+ isMcpAuthenticationError(new Error('wrapped', { cause: error })),
+ ).toBe(true);
+ const cyclic = new Error('not auth');
+ cyclic.cause = cyclic;
+ expect(isMcpAuthenticationError(cyclic)).toBe(false);
+ } finally {
+ server.closeAllConnections();
+ await new Promise((resolve) => server.close(() => resolve()));
+ }
+ });
+
it('returns null for an absent tool without executing and closes the transport', async () => {
const call = vi.fn(() => ({ content: [] }));
const endpoint = await startMcpToolTestServer(call);
diff --git a/packages/cloud-agents/src/server/mcp-tool-client.ts b/packages/cloud-agents/src/server/mcp-tool-client.ts
index 94eaf1870f..08059a14d3 100644
--- a/packages/cloud-agents/src/server/mcp-tool-client.ts
+++ b/packages/cloud-agents/src/server/mcp-tool-client.ts
@@ -7,6 +7,28 @@
*/
import { parseMcpToolResult } from '@roomote/types';
+import { UnauthorizedError } from '@modelcontextprotocol/sdk/client/auth.js';
+import { StreamableHTTPError } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
+
+/** Classify protocol/transport auth failures without exposing upstream text. */
+export function isMcpAuthenticationError(error: unknown): boolean {
+ const seen = new Set();
+ let cause = error;
+ while (cause instanceof Error && !seen.has(cause)) {
+ seen.add(cause);
+ const message = cause.message.toLowerCase();
+ if (
+ cause instanceof UnauthorizedError ||
+ (cause instanceof StreamableHTTPError && cause.code === 401) ||
+ message.includes('invalid_token') ||
+ message.includes('invalid access token') ||
+ message.includes('expired access token')
+ )
+ return true;
+ cause = cause.cause;
+ }
+ return false;
+}
export class McpToolCallError extends Error {
readonly upstreamText!: string | null;
@@ -56,8 +78,31 @@ export type McpToolDefinition = {
name: string;
description?: string;
inputSchema?: unknown;
+ annotations?: Record;
};
+async function listAllToolDefinitions(
+ client: Awaited>,
+ signal?: AbortSignal,
+) {
+ const definitions = await client.listTools({ options: { signal } });
+ const seenCursors = new Set();
+ let cursor = definitions.nextCursor;
+ while (cursor) {
+ if (seenCursors.has(cursor) || seenCursors.size >= 100) {
+ throw new Error('MCP tool catalog pagination did not terminate.');
+ }
+ seenCursors.add(cursor);
+ const page = await client.listTools({
+ params: { cursor },
+ options: { signal },
+ });
+ definitions.tools.push(...page.tools);
+ cursor = page.nextCursor;
+ }
+ return { ...definitions, nextCursor: undefined };
+}
+
/** List the tools exposed by a streamable-http MCP server. */
export async function listMcpTools(options: {
url: string;
@@ -67,9 +112,7 @@ export async function listMcpTools(options: {
const client = await createCancellableMcpClient(options);
try {
- const definitions = await client.listTools({
- options: { signal: options.signal },
- });
+ const definitions = await listAllToolDefinitions(client, options.signal);
return definitions.tools.map((definition) => ({
name: definition.name,
...(definition.description
@@ -78,6 +121,9 @@ export async function listMcpTools(options: {
...(definition.inputSchema
? { inputSchema: definition.inputSchema }
: {}),
+ ...(definition.annotations
+ ? { annotations: definition.annotations }
+ : {}),
}));
} finally {
await client.close().catch(() => undefined);
@@ -111,9 +157,7 @@ export async function callMcpTool(options: {
const client = await createCancellableMcpClient(options);
try {
- const definitions = await client.listTools({
- options: { signal: options.signal },
- });
+ const definitions = await listAllToolDefinitions(client, options.signal);
const toolDefinition = definitions.tools.find(
(tool) => tool.name === options.toolName,
);
diff --git a/packages/db/src/lib/__tests__/integration-tool-approvals.test.ts b/packages/db/src/lib/__tests__/integration-tool-approvals.test.ts
index d37ec5e712..bfc6cdecd2 100644
--- a/packages/db/src/lib/__tests__/integration-tool-approvals.test.ts
+++ b/packages/db/src/lib/__tests__/integration-tool-approvals.test.ts
@@ -4,6 +4,9 @@ import {
eq,
integrationToolApprovalRequests,
integrationToolAutoEvaluations,
+ integrationToolPolicies,
+ integrationToolUserPolicies,
+ integrationToolSessionOverrides,
sessionFactory,
sql,
sessions,
@@ -44,6 +47,7 @@ import {
getIntegrationToolAutoSettings,
setIntegrationToolAutoSettings,
} from '../integration-tool-auto-settings';
+import { compileTaskIntegrationToolApprovals } from '@roomote/types';
const userIds: string[] = [];
const sessionIds: string[] = [];
@@ -430,6 +434,198 @@ describe('expireIntegrationToolApproval', () => {
});
});
+describe('Jira tool rename compatibility', () => {
+ const oldName = 'getVisibleJiraProjects';
+ const newName = 'listJiraProjects';
+
+ it('preserves legacy deployment/personal policies, resolves conflicts strictly, and edits both names', async () => {
+ const userId = await user();
+ try {
+ // Simulate settings saved before the rename, plus a conflicting new row.
+ await db.insert(integrationToolPolicies).values([
+ { integrationId: 'jira', toolName: oldName, mode: 'ask' },
+ { integrationId: 'jira', toolName: newName, mode: 'always_allow' },
+ ]);
+ await db.insert(integrationToolUserPolicies).values({
+ userId,
+ integrationId: 'jira',
+ toolName: oldName,
+ mode: 'reject',
+ });
+ const policies = (await listIntegrationToolPolicies()).filter(
+ (p) => p.integrationId === 'jira',
+ );
+ expect(policies).toHaveLength(2);
+ expect(policies.every((p) => p.mode === 'ask')).toBe(true);
+ expect(
+ compileTaskIntegrationToolApprovals({
+ serverNames: ['jira'],
+ policies,
+ sessionOverrides: [],
+ }).permission['jira_listJiraProjects'],
+ ).toBe('ask');
+ expect(
+ (await listIntegrationToolUserPolicies(userId)).map((p) => [
+ p.toolName,
+ p.mode,
+ ]),
+ ).toEqual(
+ expect.arrayContaining([
+ [newName, 'reject'],
+ [oldName, 'reject'],
+ ]),
+ );
+
+ await upsertIntegrationToolPolicy({
+ integrationId: 'jira',
+ toolName: newName,
+ mode: 'always_allow',
+ updatedByUserId: userId,
+ });
+ expect(
+ (await listIntegrationToolPolicies())
+ .filter((p) => p.integrationId === 'jira')
+ .every((p) => p.mode === 'always_allow'),
+ ).toBe(true);
+ await upsertIntegrationToolPolicies({
+ integrationId: 'jira',
+ toolNames: [newName, oldName],
+ mode: 'allow',
+ updatedByUserId: userId,
+ });
+ await upsertIntegrationToolUserPolicy({
+ userId,
+ integrationId: 'jira',
+ toolName: newName,
+ mode: 'allow',
+ });
+ expect(
+ await db
+ .select()
+ .from(integrationToolPolicies)
+ .where(eq(integrationToolPolicies.integrationId, 'jira')),
+ ).toHaveLength(0);
+ expect(await listIntegrationToolUserPolicies(userId)).toEqual([]);
+ } finally {
+ await db
+ .delete(integrationToolPolicies)
+ .where(eq(integrationToolPolicies.integrationId, 'jira'));
+ await db
+ .delete(integrationToolUserPolicies)
+ .where(eq(integrationToolUserPolicies.userId, userId));
+ }
+ });
+
+ it('applies legacy session overrides to native v2 rules and updates the whole group after consent', async () => {
+ const userId = await user();
+ const sessionId = await ownedSession(userId);
+ await db.insert(integrationToolSessionOverrides).values({
+ sessionId,
+ integrationId: 'jira',
+ toolName: oldName,
+ mode: 'ask',
+ setByUserId: userId,
+ });
+ const sessionOverrides =
+ await listIntegrationToolSessionOverrides(sessionId);
+ expect(
+ compileTaskIntegrationToolApprovals({
+ serverNames: ['jira'],
+ policies: [],
+ sessionOverrides,
+ }).permission['jira_listJiraProjects'],
+ ).toBe('ask');
+ const pending = await insertIntegrationToolApproval(
+ { sessionId, userId },
+ {
+ integrationId: 'jira',
+ toolName: newName,
+ nativeRequestId: nextNativeRequestId(),
+ argsFingerprint: 'new-schema-call',
+ argsSummary: {},
+ },
+ );
+ await decideIntegrationToolApproval(
+ { sessionId, userId },
+ { approvalId: pending.approvalId, decision: 'approved_for_session' },
+ );
+ expect(await listIntegrationToolSessionOverrides(sessionId)).toEqual(
+ expect.arrayContaining([
+ { integrationId: 'jira', toolName: oldName, mode: 'allow' },
+ { integrationId: 'jira', toolName: newName, mode: 'allow' },
+ ]),
+ );
+ expect(
+ await listIntegrationToolSessionOverrides(await ownedSession(userId)),
+ ).toEqual([]);
+ });
+
+ it.each([
+ [oldName, newName],
+ [newName, oldName],
+ ])(
+ 'serializes rejection of %s with a guarded claim of %s',
+ async (rejectedName, claimedName) => {
+ const userId = await user();
+ const sessionId = await ownedSession(userId);
+ const context = { sessionId, userId };
+ const pending = await insertIntegrationToolApproval(context, {
+ integrationId: 'jira',
+ toolName: rejectedName,
+ nativeRequestId: nextNativeRequestId(),
+ argsFingerprint: 'old-call',
+ argsSummary: {},
+ });
+ const reserved = await insertAutoApprovedIntegrationToolApproval(
+ context,
+ {
+ integrationId: 'jira',
+ toolName: claimedName,
+ nativeRequestId: nextNativeRequestId(),
+ argsFingerprint: 'new-call',
+ argsSummary: {},
+ },
+ );
+ let claim: Promise | undefined;
+ let settled = false;
+ await db.transaction(async (tx) => {
+ await tx.execute(
+ sql`select pg_advisory_xact_lock(hashtextextended(${`integration-tool-rejection:${sessionId}:jira:${rejectedName}`}, 0))`,
+ );
+ await tx
+ .update(integrationToolApprovalRequests)
+ .set({ status: 'rejected', decidedByUserId: userId })
+ .where(eq(integrationToolApprovalRequests.id, pending.approvalId));
+ claim = claimAutoApprovedIntegrationToolApproval({
+ approvalId: reserved.approvalId,
+ requesterUserId: userId,
+ unlessToolRejected: {
+ sessionId,
+ integrationId: 'jira',
+ toolName: claimedName,
+ },
+ }).then((result) => {
+ settled = true;
+ return result;
+ });
+ await new Promise((resolve) => setTimeout(resolve, 200));
+ expect(settled).toBe(false);
+ });
+ await expect(claim).resolves.toBe(false);
+ expect(
+ await hasRejectedIntegrationToolInSession({
+ ...context,
+ integrationId: 'jira',
+ toolName: claimedName,
+ }),
+ ).toBe(true);
+ expect(
+ (await getIntegrationToolApproval(reserved.approvalId))?.status,
+ ).toBe('cancelled');
+ },
+ );
+});
+
describe('auto-approved reservations', () => {
it('loses the claim to a rejection of the same tool in the session', async () => {
const userId = await user();
diff --git a/packages/db/src/lib/integration-tool-approvals.ts b/packages/db/src/lib/integration-tool-approvals.ts
index 34cde5139b..b8eb44fd66 100644
--- a/packages/db/src/lib/integration-tool-approvals.ts
+++ b/packages/db/src/lib/integration-tool-approvals.ts
@@ -22,7 +22,11 @@ import type {
IntegrationToolSessionOverrideMetadata,
IntegrationToolSessionOverrideMode,
} from '@roomote/types';
-import { redactIntegrationToolArgs } from '@roomote/types';
+import {
+ redactIntegrationToolArgs,
+ expandRenamedIntegrationToolPolicies,
+ getIntegrationMcpToolAliases,
+} from '@roomote/types';
import { db, type DatabaseOrTransaction } from '../db';
import {
@@ -153,7 +157,7 @@ async function listPolicies(
.from(table as typeof integrationToolPolicies)
.where(store.owns)
.orderBy(table.integrationId, table.toolName);
- return rows.map(policyMetadata);
+ return expandRenamedIntegrationToolPolicies(rows.map(policyMetadata));
}
async function upsertPolicy(
@@ -164,6 +168,11 @@ async function upsertPolicy(
mode: IntegrationToolPolicyMode;
},
): Promise {
+ if (
+ getIntegrationMcpToolAliases(input.integrationId, input.toolName).length > 1
+ ) {
+ return upsertPolicies(store, { ...input, toolNames: [input.toolName] });
+ }
// Both tables have every column this writes; the store supplies the rest.
const table = store.table as typeof integrationToolPolicies;
// The default has no row; every stored choice, Always allow included, is a
@@ -204,7 +213,13 @@ async function upsertPolicies(
mode: IntegrationToolPolicyMode;
},
): Promise {
- const toolNames = [...new Set(input.toolNames)];
+ const toolNames = [
+ ...new Set(
+ input.toolNames.flatMap((name) => [
+ ...getIntegrationMcpToolAliases(input.integrationId, name),
+ ]),
+ ),
+ ];
if (toolNames.length === 0) return;
const table = store.table as typeof integrationToolPolicies;
@@ -502,7 +517,12 @@ export async function hasRejectedIntegrationToolInSession(context: {
integrationToolApprovalRequests.integrationId,
context.integrationId,
),
- eq(integrationToolApprovalRequests.toolName, context.toolName),
+ inArray(integrationToolApprovalRequests.toolName, [
+ ...getIntegrationMcpToolAliases(
+ context.integrationId,
+ context.toolName,
+ ),
+ ]),
eq(integrationToolApprovalRequests.status, 'rejected'),
),
)
@@ -528,9 +548,15 @@ async function lockToolRejections(
tx: DatabaseOrTransaction,
tool: { sessionId: string; integrationId: string; toolName: string },
): Promise {
- await tx.execute(
- sql`select pg_advisory_xact_lock(hashtextextended(${`integration-tool-rejection:${tool.sessionId}:${tool.integrationId}:${tool.toolName}`}, 0))`,
- );
+ // Keep the existing lock keys for rolling upgrades, in a stable order so
+ // calls under either provider name serialize without deadlocking.
+ for (const toolName of [
+ ...getIntegrationMcpToolAliases(tool.integrationId, tool.toolName),
+ ].sort()) {
+ await tx.execute(
+ sql`select pg_advisory_xact_lock(hashtextextended(${`integration-tool-rejection:${tool.sessionId}:${tool.integrationId}:${toolName}`}, 0))`,
+ );
+ }
}
/**
@@ -691,7 +717,15 @@ async function upsertSessionOverride(
): Promise {
await tx
.insert(integrationToolSessionOverrides)
- .values({ ...input, updatedAt: sql`clock_timestamp()` })
+ .values(
+ getIntegrationMcpToolAliases(input.integrationId, input.toolName).map(
+ (toolName) => ({
+ ...input,
+ toolName,
+ updatedAt: sql`clock_timestamp()`,
+ }),
+ ),
+ )
.onConflictDoUpdate({
target: [
integrationToolSessionOverrides.sessionId,
@@ -722,11 +756,13 @@ export async function listIntegrationToolSessionOverrides(
integrationToolSessionOverrides.integrationId,
integrationToolSessionOverrides.toolName,
);
- return rows.map((row) => ({
- integrationId: row.integrationId,
- toolName: row.toolName,
- mode: row.mode,
- }));
+ return expandRenamedIntegrationToolPolicies(
+ rows.map((row) => ({
+ integrationId: row.integrationId,
+ toolName: row.toolName,
+ mode: row.mode,
+ })),
+ );
}
/**
@@ -968,7 +1004,12 @@ export async function claimAutoApprovedIntegrationToolApproval(input: {
eq(rejection.decidedByUserId, input.requesterUserId),
isNull(rejection.taskId),
eq(rejection.integrationId, tool.integrationId),
- eq(rejection.toolName, tool.toolName),
+ inArray(rejection.toolName, [
+ ...getIntegrationMcpToolAliases(
+ tool.integrationId,
+ tool.toolName,
+ ),
+ ]),
eq(rejection.status, 'rejected'),
),
),
diff --git a/packages/sdk/src/server/lib/mcp/data.test.ts b/packages/sdk/src/server/lib/mcp/data.test.ts
index b4375fdb36..d5a6e91e7d 100644
--- a/packages/sdk/src/server/lib/mcp/data.test.ts
+++ b/packages/sdk/src/server/lib/mcp/data.test.ts
@@ -201,6 +201,48 @@ describe('getClientInformation', () => {
expect(requestSignal?.aborted).toBe(true);
});
+ it('refreshes Jira v2 tokens against the new issuer with the canonical resource', async () => {
+ findFirstMock.mockResolvedValue({
+ id: 'conn-1',
+ mcpId: 'jira',
+ accessToken: 'expired-token',
+ refreshToken: 'jira-refresh',
+ tokenExpiresAt: new Date(Date.now() - 60_000),
+ scopes: ['read:jira:agent-interface'],
+ authConfig: {
+ type: 'oauth_client',
+ client_id: 'jira-v2-client',
+ registered_redirect_uri:
+ 'https://customer.example/api/mcp-oauth/callback',
+ token_endpoint_auth_method: 'none',
+ },
+ });
+ const fetchMock = vi.fn().mockResolvedValue(
+ Response.json({
+ access_token: 'fresh-access-token',
+ refresh_token: 'new-jira-refresh',
+ expires_in: 3600,
+ }),
+ );
+ vi.stubGlobal('fetch', fetchMock);
+ await expect(
+ getValidAccessToken(
+ 'conn-1',
+ 'https://mcp.atlassian.com/v2/mcp?tools=all',
+ ),
+ ).resolves.toBe('fresh-access-token');
+ expect(fetchMock).toHaveBeenCalledOnce();
+ expect(fetchMock.mock.calls[0]?.[0]).toBe(
+ 'https://auth.atlassian.com/oauth/token',
+ );
+ const body = new URLSearchParams(
+ fetchMock.mock.calls[0]?.[1]?.body as string,
+ );
+ expect(body.get('resource')).toBe('https://mcp.atlassian.com/v2/mcp');
+ expect(body.get('client_id')).toBe('jira-v2-client');
+ expect(body.get('refresh_token')).toBe('jira-refresh');
+ });
+
it('includes the monday.com MCP resource when refreshing tokens', async () => {
findFirstMock.mockResolvedValue({
id: 'conn-1',
diff --git a/packages/sdk/src/server/routers/mcp-connections.test.ts b/packages/sdk/src/server/routers/mcp-connections.test.ts
index 75d7bd958f..313a3824af 100644
--- a/packages/sdk/src/server/routers/mcp-connections.test.ts
+++ b/packages/sdk/src/server/routers/mcp-connections.test.ts
@@ -953,7 +953,7 @@ describe('mcpConnectionsRouter.getMcpServerConfigs', () => {
expect(getValidAccessToken).toHaveBeenCalledWith(
'conn-jira',
- 'https://mcp.atlassian.com/v1/mcp/authv2',
+ 'https://mcp.atlassian.com/v2/mcp?tools=all',
);
expect(result).toEqual({
diff --git a/packages/types/src/__tests__/mcp-oauth.test.ts b/packages/types/src/__tests__/mcp-oauth.test.ts
index ecb24cc82c..275cc35af7 100644
--- a/packages/types/src/__tests__/mcp-oauth.test.ts
+++ b/packages/types/src/__tests__/mcp-oauth.test.ts
@@ -59,6 +59,31 @@ describe('Linear OAuth scopes', () => {
});
});
+describe('Jira MCP v2 OAuth', () => {
+ it('uses flat tools and the v2 OAuth resource with Jira-only read scopes', () => {
+ expect(getMcpIntegration('jira')).toMatchObject({
+ url: 'https://mcp.atlassian.com/v2/mcp?tools=all',
+ connectionScope: 'deployment',
+ oauthResource: 'https://mcp.atlassian.com/v2/mcp',
+ oauthScopeMode: 'read-only',
+ oauthEndpoints: {
+ authorizationEndpoint: 'https://auth.atlassian.com/authorize',
+ tokenEndpoint: 'https://auth.atlassian.com/oauth/token',
+ registrationEndpoint:
+ 'https://auth.atlassian.com/VCeDsk8ZHncYF1g234fKtc4lNipbBhu3/dcr/register',
+ tokenEndpointAuthMethod: 'none',
+ },
+ });
+ expect(getMcpIntegrationOauthScopes('jira')).toEqual([
+ 'read:me',
+ 'read:account',
+ 'offline_access',
+ 'read:jira:agent-interface',
+ 'search:jira:agent-interface',
+ ]);
+ });
+});
+
describe('monday.com OAuth', () => {
it('uses the hosted MCP with a user-scoped read-only connection', () => {
expect(getMcpIntegration('monday')).toMatchObject({
diff --git a/packages/types/src/__tests__/mcp-tool-policy.test.ts b/packages/types/src/__tests__/mcp-tool-policy.test.ts
index ed82cf037b..e20477eea4 100644
--- a/packages/types/src/__tests__/mcp-tool-policy.test.ts
+++ b/packages/types/src/__tests__/mcp-tool-policy.test.ts
@@ -1,6 +1,7 @@
import {
filterMcpToolDefinitions,
getAllowedIntegrationMcpToolNames,
+ getIntegrationMcpDisabledToolNames,
} from '../mcp-tool-policy';
describe('Better Stack MCP tool policy', () => {
@@ -54,6 +55,61 @@ describe('Better Stack MCP tool policy', () => {
});
});
+describe('Jira MCP v2 tool policy', () => {
+ it('preserves disabled operations across renames without affecting other integrations', () => {
+ expect(
+ getIntegrationMcpDisabledToolNames('jira', ['getVisibleJiraProjects']),
+ ).toEqual(['getVisibleJiraProjects', 'listJiraProjects']);
+ expect(
+ getIntegrationMcpDisabledToolNames('jira', ['listJiraIssueTransitions']),
+ ).toEqual(['listJiraIssueTransitions', 'getTransitionsForJiraIssue']);
+ expect(
+ getIntegrationMcpDisabledToolNames('other', ['getVisibleJiraProjects']),
+ ).toEqual(['getVisibleJiraProjects']);
+ });
+ it('allows equivalent v2 reads while excluding executors, mutations, and other products', () => {
+ const reads = [
+ 'atlassianUserInfo',
+ 'getAccessibleAtlassianResources',
+ 'getJiraIssue',
+ 'getJiraIssueTypeMetaWithFields',
+ 'listJiraProjects',
+ 'listJiraProjectIssueTypesMetadata',
+ 'listJiraIssueLinkTypes',
+ 'listJiraIssueTransitions',
+ 'listJiraIssueRemoteIssueLinks',
+ 'lookupJiraAccountId',
+ 'searchJiraIssuesUsingJql',
+ ];
+ const excluded = [
+ 'discover',
+ 'execute',
+ 'executeRead',
+ 'executeWrite',
+ 'executeDestructive',
+ 'createJiraIssue',
+ 'editJiraIssue',
+ 'transitionJiraIssue',
+ 'addOrEditJiraIssueComment',
+ 'deleteJiraIssue',
+ 'updateJiraScreen',
+ 'getConfluenceContent',
+ 'getTeamworkGraphContext',
+ 'search',
+ 'unverifiedHelper',
+ ];
+ const tools = [...reads, ...excluded].map((name) => ({ name }));
+ expect(
+ filterMcpToolDefinitions(tools, {
+ allowedToolNames: getAllowedIntegrationMcpToolNames('jira'),
+ disabledToolNames: ['getJiraIssue'],
+ }),
+ ).toEqual(
+ reads.filter((name) => name !== 'getJiraIssue').map((name) => ({ name })),
+ );
+ });
+});
+
describe('X MCP tool policy', () => {
it('matches the snake_case tool names the hosted X server advertises', () => {
const allowedToolNames = getAllowedIntegrationMcpToolNames('x');
diff --git a/packages/types/src/chatgpt-subscription.test.ts b/packages/types/src/chatgpt-subscription.test.ts
index 7e0f8337fc..3bb6b7a90c 100644
--- a/packages/types/src/chatgpt-subscription.test.ts
+++ b/packages/types/src/chatgpt-subscription.test.ts
@@ -16,6 +16,8 @@ describe('mergeOpenCodeChatGptFastModeOptions', () => {
'openai/gpt-6-astra',
'openai/gpt-6-sol',
'openai/gpt-6.1-sol',
+ 'openai/gpt-6.2-sol',
+ 'openai/gpt-6.2-astra',
'openai/gpt-6.1-terra',
'openai/gpt-6-luna',
'openai/gpt-5.6-terra',
@@ -30,6 +32,8 @@ describe('mergeOpenCodeChatGptFastModeOptions', () => {
'gpt-6-astra': { options: { serviceTier: 'priority' } },
'gpt-6-sol': { options: { serviceTier: 'priority' } },
'gpt-6.1-sol': { options: { serviceTier: 'priority' } },
+ 'gpt-6.2-sol': { options: { serviceTier: 'priority' } },
+ 'gpt-6.2-astra': { options: { serviceTier: 'priority' } },
'gpt-6.1-terra': { options: { serviceTier: 'priority' } },
'gpt-6-luna': { options: { serviceTier: 'priority' } },
'gpt-5.6-terra': {
@@ -50,6 +54,8 @@ describe('mergeOpenCodeChatGptFastModeOptions', () => {
'openrouter/openai/gpt-5.4',
'openrouter/openai/gpt-6.1-terra',
'vercel/openai/gpt-6.1-terra',
+ 'openrouter/openai/gpt-6.2-sol',
+ 'vercel/openai/gpt-6.2-astra',
'openai/gpt-5.4-mini',
'openai/gpt-5.3-codex-spark',
]),
diff --git a/packages/types/src/chatgpt-subscription.ts b/packages/types/src/chatgpt-subscription.ts
index bde67c1a11..5013e6b451 100644
--- a/packages/types/src/chatgpt-subscription.ts
+++ b/packages/types/src/chatgpt-subscription.ts
@@ -36,8 +36,10 @@ export const CHATGPT_OPENCODE_PROVIDER_ID = 'openai';
const CHATGPT_FAST_MODE_MODEL_IDS = new Set([
'gpt-6-astra',
+ 'gpt-6.2-astra',
'gpt-6-sol',
'gpt-6.1-sol',
+ 'gpt-6.2-sol',
'gpt-6.1-terra',
'gpt-6-luna',
'gpt-5.4',
diff --git a/packages/types/src/integration-tool-approvals.ts b/packages/types/src/integration-tool-approvals.ts
index 91619ff63e..07cd92631a 100644
--- a/packages/types/src/integration-tool-approvals.ts
+++ b/packages/types/src/integration-tool-approvals.ts
@@ -1,4 +1,5 @@
import { z } from 'zod';
+import { getIntegrationMcpToolAliases } from './mcp-tool-policy';
import {
extractVisibleAcpPromptText,
@@ -321,6 +322,30 @@ type IntegrationToolPolicyEntry = Pick<
'integrationId' | 'toolName' | 'mode'
>;
+/** Resolve legacy/current names conservatively until an explicit edit updates the whole group. */
+export function expandRenamedIntegrationToolPolicies<
+ T extends IntegrationToolPolicyEntry,
+>(policies: readonly T[]): T[] {
+ const expanded = new Map();
+ for (const policy of policies) {
+ for (const toolName of getIntegrationMcpToolAliases(
+ policy.integrationId,
+ policy.toolName,
+ )) {
+ const key = integrationToolPolicyKey(policy.integrationId, toolName);
+ const previous = expanded.get(key);
+ if (
+ !previous ||
+ INTEGRATION_TOOL_POLICY_MODE_STRICTNESS[policy.mode] >
+ INTEGRATION_TOOL_POLICY_MODE_STRICTNESS[previous.mode]
+ ) {
+ expanded.set(key, { ...policy, toolName });
+ }
+ }
+ }
+ return [...expanded.values()];
+}
+
/**
* The one rule for combining policy layers, shared by every enforcement
* point (the Session runtime and the integration proxy): per tool, the
diff --git a/packages/types/src/mcp-oauth.ts b/packages/types/src/mcp-oauth.ts
index d7dd4ab77d..023e801463 100644
--- a/packages/types/src/mcp-oauth.ts
+++ b/packages/types/src/mcp-oauth.ts
@@ -595,17 +595,31 @@ export const MCP_INTEGRATIONS: McpIntegration[] = [
{
id: 'jira',
name: 'Jira',
- url: 'https://mcp.atlassian.com/v1/mcp/authv2',
+ // Flat tools keep the Jira-only policy enforceable without generic executors.
+ url: 'https://mcp.atlassian.com/v2/mcp?tools=all',
description: `Access Jira issues, projects, workflows, and JQL search from ${PRODUCT_NAME} tasks`,
icon: 'jira',
connectionScope: 'deployment',
+ // The host-root discovery document still advertises v1. These endpoints
+ // come from the issuer advertised by v2's protected-resource metadata.
+ oauthEndpoints: {
+ authorizationEndpoint: 'https://auth.atlassian.com/authorize',
+ tokenEndpoint: 'https://auth.atlassian.com/oauth/token',
+ registrationEndpoint:
+ 'https://auth.atlassian.com/VCeDsk8ZHncYF1g234fKtc4lNipbBhu3/dcr/register',
+ tokenEndpointAuthMethod: 'none',
+ },
+ oauthResource: 'https://mcp.atlassian.com/v2/mcp',
oauthScopes: [
'read:me',
'read:account',
'offline_access',
- 'read:jira-work',
- 'search:jira-work',
+ 'read:jira:agent-interface',
+ 'search:jira:agent-interface',
],
+ oauthScopeMode: 'read-only',
+ instructions:
+ 'Use Jira to read issues, projects, workflow metadata, and JQL search results. This connection is read-only and exposes individual Jira tools. Call getAccessibleAtlassianResources to obtain the cloudId before reading Jira data. Existing Atlassian MCP v1 connections must be reconnected by a deployment admin for v2 OAuth consent.',
},
{
id: 'linear',
diff --git a/packages/types/src/mcp-response-parsing.ts b/packages/types/src/mcp-response-parsing.ts
index b127e3e452..8b6a6c132b 100644
--- a/packages/types/src/mcp-response-parsing.ts
+++ b/packages/types/src/mcp-response-parsing.ts
@@ -1,6 +1,6 @@
export type McpToolsListJsonRpcPayload = {
error?: { code?: unknown; message?: unknown };
- result?: { tools?: Array> };
+ result?: { tools?: Array>; nextCursor?: unknown };
};
/**
diff --git a/packages/types/src/mcp-tool-policy.ts b/packages/types/src/mcp-tool-policy.ts
index 7661526eb8..f923aea3e0 100644
--- a/packages/types/src/mcp-tool-policy.ts
+++ b/packages/types/src/mcp-tool-policy.ts
@@ -101,6 +101,44 @@ const JIRA_SHARED_TOOL_NAMES = [
'getAccessibleAtlassianResources',
] as const;
+const JIRA_TOOL_RENAME_GROUPS = [
+ ['getVisibleJiraProjects', 'listJiraProjects'],
+ ['getJiraProjectIssueTypesMetadata', 'listJiraProjectIssueTypesMetadata'],
+ ['getIssueLinkTypes', 'listJiraIssueLinkTypes'],
+ ['getTransitionsForJiraIssue', 'listJiraIssueTransitions'],
+ ['getJiraIssueRemoteIssueLinks', 'listJiraIssueRemoteIssueLinks'],
+] as const;
+
+/** Names for the same built-in operation, including its pre-upgrade name. */
+export function getIntegrationMcpToolAliases(
+ integrationId: string,
+ toolName: string,
+): readonly string[] {
+ return integrationId === 'jira'
+ ? (JIRA_TOOL_RENAME_GROUPS.find((group) =>
+ group.some((name) => name === toolName),
+ ) ?? [toolName])
+ : [toolName];
+}
+
+/** Preserve disabled operations across provider tool renames without rewriting saved settings. */
+export function getIntegrationMcpDisabledToolNames(
+ integrationOrId: McpIntegration | string,
+ disabledToolNames: readonly string[] | null | undefined,
+): string[] {
+ const disabled = new Set(disabledToolNames ?? []);
+ const id =
+ typeof integrationOrId === 'string' ? integrationOrId : integrationOrId.id;
+ if (id === 'jira') {
+ for (const group of JIRA_TOOL_RENAME_GROUPS) {
+ if (group.some((name) => disabled.has(name))) {
+ for (const name of group) disabled.add(name);
+ }
+ }
+ }
+ return [...disabled];
+}
+
const JIRA_READ_ONLY_TOOL_NAMES = [
...JIRA_SHARED_TOOL_NAMES,
'getJiraIssue',
@@ -110,6 +148,13 @@ const JIRA_READ_ONLY_TOOL_NAMES = [
'getIssueLinkTypes',
'getTransitionsForJiraIssue',
'getVisibleJiraProjects',
+ // v2 names for the existing project, issue-type, link, and transition reads.
+ // Keep v1 aliases for stored tool policies and in-flight clients.
+ 'listJiraProjects',
+ 'listJiraProjectIssueTypesMetadata',
+ 'listJiraIssueLinkTypes',
+ 'listJiraIssueTransitions',
+ 'listJiraIssueRemoteIssueLinks',
'lookupJiraAccountId',
'searchJiraIssuesUsingJql',
] as const;
diff --git a/packages/types/src/model-provider-config.test.ts b/packages/types/src/model-provider-config.test.ts
index 48a15d2d75..a5542d755c 100644
--- a/packages/types/src/model-provider-config.test.ts
+++ b/packages/types/src/model-provider-config.test.ts
@@ -771,6 +771,19 @@ describe('SETUP_MODEL_PROVIDER_CATALOG', () => {
'chatgpt',
],
},
+ {
+ displayName: 'GPT-6.2 Astra',
+ modelId: 'gpt-6.2-astra',
+ providerIds: [
+ 'roomote',
+ 'openrouter',
+ 'vercel',
+ 'openai',
+ 'opencode',
+ 'github-copilot',
+ 'chatgpt',
+ ],
+ },
{
displayName: 'GPT 5.6 Sol',
modelId: 'gpt-5.6-sol',
@@ -786,6 +799,11 @@ describe('SETUP_MODEL_PROVIDER_CATALOG', () => {
modelId: 'gpt-6.1-sol',
providerIds: pairedGpt6ProviderIds,
},
+ {
+ displayName: 'GPT-6.2 Sol',
+ modelId: 'gpt-6.2-sol',
+ providerIds: pairedGpt6ProviderIds,
+ },
{
displayName: 'GPT 5.6 Terra',
modelId: 'gpt-5.6-terra',
@@ -1251,6 +1269,7 @@ describe('SETUP_MODEL_PROVIDER_CATALOG', () => {
'requesty/gpt-5.6-sol@eu',
'requesty/gpt-6-sol@eu',
'requesty/gpt-6.1-sol@eu',
+ 'requesty/gpt-6.2-sol@eu',
'requesty/azure/gpt-6.1-terra@swedencentral',
'requesty/gpt-5.6-terra@eu',
'requesty/gpt-5.6-luna@eu',
diff --git a/packages/types/src/model-provider-config.ts b/packages/types/src/model-provider-config.ts
index ef01164c86..fe310019af 100644
--- a/packages/types/src/model-provider-config.ts
+++ b/packages/types/src/model-provider-config.ts
@@ -775,9 +775,11 @@ export const SETUP_MODEL_PROVIDER_CATALOG = [
'claude-opus-5-5': 'vercel/anthropic/claude-opus-5.5',
'claude-sonnet-5-5': 'vercel/anthropic/claude-sonnet-5.5',
'gpt-6-astra': 'vercel/openai/gpt-6-astra',
+ 'gpt-6-2-astra': 'vercel/openai/gpt-6.2-astra',
'gpt-5-6-sol': 'vercel/openai/gpt-5.6-sol',
'gpt-6-sol': 'vercel/openai/gpt-6-sol',
'gpt-6-1-sol': 'vercel/openai/gpt-6.1-sol',
+ 'gpt-6-2-sol': 'vercel/openai/gpt-6.2-sol',
'gpt-6-1-terra': 'vercel/openai/gpt-6.1-terra',
'gpt-5-6-terra': 'vercel/openai/gpt-5.6-terra',
'gpt-5-6-luna': 'vercel/openai/gpt-5.6-luna',
@@ -822,6 +824,7 @@ export const SETUP_MODEL_PROVIDER_CATALOG = [
'gpt-5-6-sol': 'requesty/gpt-5.6-sol@eu',
'gpt-6-sol': 'requesty/gpt-6-sol@eu',
'gpt-6-1-sol': 'requesty/gpt-6.1-sol@eu',
+ 'gpt-6-2-sol': 'requesty/gpt-6.2-sol@eu',
// Requesty's live catalog publishes explicit Azure regional routes.
'gpt-6-1-terra': 'requesty/azure/gpt-6.1-terra@swedencentral',
'gpt-5-6-terra': 'requesty/gpt-5.6-terra@eu',
@@ -906,9 +909,11 @@ export const SETUP_MODEL_PROVIDER_CATALOG = [
authKind: 'api-key',
suggestedTaskModels: mapRecommendedTaskModels({
'gpt-6-astra': 'openai/gpt-6-astra',
+ 'gpt-6-2-astra': 'openai/gpt-6.2-astra',
'gpt-5-6-sol': 'openai/gpt-5.6-sol',
'gpt-6-sol': 'openai/gpt-6-sol',
'gpt-6-1-sol': 'openai/gpt-6.1-sol',
+ 'gpt-6-2-sol': 'openai/gpt-6.2-sol',
'gpt-6-1-terra': 'openai/gpt-6.1-terra',
'gpt-5-6-terra': 'openai/gpt-5.6-terra',
'gpt-5-6-luna': 'openai/gpt-5.6-luna',
@@ -940,6 +945,7 @@ export const SETUP_MODEL_PROVIDER_CATALOG = [
'gpt-5-6-sol': 'azure/gpt-5.6-sol',
'gpt-6-sol': 'azure/gpt-6-sol',
'gpt-6-1-sol': 'azure/gpt-6.1-sol',
+ 'gpt-6-2-sol': 'azure/gpt-6.2-sol',
'gpt-6-1-terra': 'azure/gpt-6.1-terra',
'gpt-5-6-terra': 'azure/gpt-5.6-terra',
'gpt-5-6-luna': 'azure/gpt-5.6-luna',
@@ -983,6 +989,7 @@ export const SETUP_MODEL_PROVIDER_CATALOG = [
'gpt-5-6-sol': 'azure-cognitive-services/gpt-5.6-sol',
'gpt-6-sol': 'azure-cognitive-services/gpt-6-sol',
'gpt-6-1-sol': 'azure-cognitive-services/gpt-6.1-sol',
+ 'gpt-6-2-sol': 'azure-cognitive-services/gpt-6.2-sol',
'gpt-6-1-terra': 'azure-cognitive-services/gpt-6.1-terra',
'gpt-5-6-terra': 'azure-cognitive-services/gpt-5.6-terra',
'gpt-5-6-luna': 'azure-cognitive-services/gpt-5.6-luna',
@@ -1097,9 +1104,11 @@ export const SETUP_MODEL_PROVIDER_CATALOG = [
'claude-opus-5-5': 'opencode/claude-opus-5-5',
'claude-sonnet-5-5': 'opencode/claude-sonnet-5-5',
'gpt-6-astra': 'opencode/gpt-6-astra',
+ 'gpt-6-2-astra': 'opencode/gpt-6.2-astra',
'gpt-5-6-sol': 'opencode/gpt-5.6-sol',
'gpt-6-sol': 'opencode/gpt-6-sol',
'gpt-6-1-sol': 'opencode/gpt-6.1-sol',
+ 'gpt-6-2-sol': 'opencode/gpt-6.2-sol',
'gpt-5-6-terra': 'opencode/gpt-5.6-terra',
'gpt-5-6-luna': 'opencode/gpt-5.6-luna',
'gpt-6-luna': 'opencode/gpt-6-luna',
@@ -1196,6 +1205,7 @@ export const SETUP_MODEL_PROVIDER_CATALOG = [
'gpt-5-6-sol': 'bedrock-mantle/openai.gpt-5.6-sol',
'gpt-6-sol': 'bedrock-mantle/openai.gpt-6-sol',
'gpt-6-1-sol': 'bedrock-mantle/openai.gpt-6.1-sol',
+ 'gpt-6-2-sol': 'bedrock-mantle/openai.gpt-6.2-sol',
'gpt-5-6-terra': 'bedrock-mantle/openai.gpt-5.6-terra',
'gpt-5-6-luna': 'bedrock-mantle/openai.gpt-5.6-luna',
'gpt-6-luna': 'bedrock-mantle/openai.gpt-6-luna',
@@ -1320,9 +1330,11 @@ export const SETUP_MODEL_PROVIDER_CATALOG = [
'claude-haiku-4-5': 'github-copilot/claude-haiku-4.5',
'claude-opus-5-5': 'github-copilot/claude-opus-5.5',
'gpt-6-astra': 'github-copilot/gpt-6-astra',
+ 'gpt-6-2-astra': 'github-copilot/gpt-6.2-astra',
'gpt-5-6-sol': 'github-copilot/gpt-5.6-sol',
'gpt-6-sol': 'github-copilot/gpt-6-sol',
'gpt-6-1-sol': 'github-copilot/gpt-6.1-sol',
+ 'gpt-6-2-sol': 'github-copilot/gpt-6.2-sol',
'gpt-5-6-terra': 'github-copilot/gpt-5.6-terra',
'gpt-5-6-luna': 'github-copilot/gpt-5.6-luna',
'gpt-6-luna': 'github-copilot/gpt-6-luna',
@@ -1414,9 +1426,11 @@ export const SETUP_MODEL_PROVIDER_CATALOG = [
authKind: 'oauth',
suggestedTaskModels: mapRecommendedTaskModels({
'gpt-6-astra': 'openai/gpt-6-astra',
+ 'gpt-6-2-astra': 'openai/gpt-6.2-astra',
'gpt-5-6-sol': 'openai/gpt-5.6-sol',
'gpt-6-sol': 'openai/gpt-6-sol',
'gpt-6-1-sol': 'openai/gpt-6.1-sol',
+ 'gpt-6-2-sol': 'openai/gpt-6.2-sol',
'gpt-6-1-terra': 'openai/gpt-6.1-terra',
'gpt-5-6-terra': 'openai/gpt-5.6-terra',
'gpt-5-6-luna': 'openai/gpt-5.6-luna',
diff --git a/packages/types/src/recommended-task-models.ts b/packages/types/src/recommended-task-models.ts
index 18782832f0..d77c02962b 100644
--- a/packages/types/src/recommended-task-models.ts
+++ b/packages/types/src/recommended-task-models.ts
@@ -50,9 +50,11 @@ export const RECOMMENDED_TASK_MODELS = [
family: 'Sonnet',
},
{ id: 'gpt-6-astra', displayName: 'GPT-6 Astra', family: 'GPT' },
+ { id: 'gpt-6-2-astra', displayName: 'GPT-6.2 Astra', family: 'GPT' },
{ id: 'gpt-5-6-sol', displayName: 'GPT 5.6 Sol', family: 'GPT' },
{ id: 'gpt-6-sol', displayName: 'GPT-6 Sol', family: 'GPT' },
{ id: 'gpt-6-1-sol', displayName: 'GPT-6.1 Sol', family: 'GPT' },
+ { id: 'gpt-6-2-sol', displayName: 'GPT-6.2 Sol', family: 'GPT' },
{ id: 'gpt-6-1-terra', displayName: 'GPT-6.1 Terra', family: 'GPT' },
{ id: 'gpt-5-6-terra', displayName: 'GPT 5.6 Terra', family: 'GPT' },
{ id: 'gpt-5-6-luna', displayName: 'GPT 5.6 Luna', family: 'GPT' },
@@ -128,9 +130,11 @@ export const OPENROUTER_RECOMMENDED_TASK_MODEL_SLUGS = {
'claude-opus-5-5': 'openrouter/anthropic/claude-opus-5.5',
'claude-sonnet-5-5': 'openrouter/anthropic/claude-sonnet-5.5',
'gpt-6-astra': 'openrouter/openai/gpt-6-astra',
+ 'gpt-6-2-astra': 'openrouter/openai/gpt-6.2-astra',
'gpt-5-6-sol': 'openrouter/openai/gpt-5.6-sol',
'gpt-6-sol': 'openrouter/openai/gpt-6-sol',
'gpt-6-1-sol': 'openrouter/openai/gpt-6.1-sol',
+ 'gpt-6-2-sol': 'openrouter/openai/gpt-6.2-sol',
'gpt-6-1-terra': 'openrouter/openai/gpt-6.1-terra',
'gpt-5-6-terra': 'openrouter/openai/gpt-5.6-terra',
'gpt-5-6-luna': 'openrouter/openai/gpt-5.6-luna',
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index da03be11e8..6cc244da26 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -556,8 +556,8 @@ importers:
specifier: 3.1000.0
version: 3.1000.0
'@better-auth/drizzle-adapter':
- specifier: ^1.7.12
- version: 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.0)(drizzle-orm@0.45.2(@electric-sql/pglite@0.3.0)(@libsql/client-wasm@0.15.5)(@opentelemetry/api@1.9.1)(@types/pg@8.16.0)(better-sqlite3@11.10.0)(kysely@0.29.4)(pg@8.15.6)(postgres@3.4.8))
+ specifier: ^1.7.25
+ version: 1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.1)(drizzle-orm@0.45.2(@electric-sql/pglite@0.3.0)(@libsql/client-wasm@0.15.5)(@opentelemetry/api@1.9.1)(@types/pg@8.16.0)(better-sqlite3@11.10.0)(kysely@0.29.4)(pg@8.15.6)(postgres@3.4.8))
'@codemirror/lang-yaml':
specifier: ^6.0.0
version: 6.1.3
@@ -748,8 +748,8 @@ importers:
specifier: ^6.2.6
version: 6.2.6(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
better-auth:
- specifier: ^1.7.12
- version: 1.7.12(@opentelemetry/api@1.9.1)(drizzle-kit@0.31.9)(drizzle-orm@0.45.2(@electric-sql/pglite@0.3.0)(@libsql/client-wasm@0.15.5)(@opentelemetry/api@1.9.1)(@types/pg@8.16.0)(better-sqlite3@11.10.0)(kysely@0.29.4)(pg@8.15.6)(postgres@3.4.8))(next@16.4.5(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@types/node@24.12.4)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(pg@8.15.6)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vitest@4.1.12(@edge-runtime/vm@3.2.0)(@opentelemetry/api@1.9.1)(@types/node@24.12.4)(jsdom@26.1.0(bufferutil@4.1.0)(utf-8-validate@6.0.6))(vite@7.3.7(@types/node@24.12.4)(jiti@2.7.0)(lightningcss@1.32.0)(terser@5.48.0)(tsx@4.20.4)(yaml@2.9.0)))
+ specifier: ^1.7.25
+ version: 1.7.25(@opentelemetry/api@1.9.1)(drizzle-kit@0.31.9)(drizzle-orm@0.45.2(@electric-sql/pglite@0.3.0)(@libsql/client-wasm@0.15.5)(@opentelemetry/api@1.9.1)(@types/pg@8.16.0)(better-sqlite3@11.10.0)(kysely@0.29.4)(pg@8.15.6)(postgres@3.4.8))(next@16.4.5(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@types/node@24.12.4)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(pg@8.15.6)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vitest@4.1.12(@edge-runtime/vm@3.2.0)(@opentelemetry/api@1.9.1)(@types/node@24.12.4)(jsdom@26.1.0(bufferutil@4.1.0)(utf-8-validate@6.0.6))(vite@7.3.7(@types/node@24.12.4)(jiti@2.7.0)(lightningcss@1.32.0)(terser@5.48.0)(tsx@4.20.4)(yaml@2.9.0)))
better-sse:
specifier: ^0.16.1
version: 0.16.1
@@ -2221,13 +2221,13 @@ packages:
'@balena/dockerignore@1.0.2':
resolution: {integrity: sha512-wMue2Sy4GAVTk6Ic4tJVcnfdau+gx2EnG7S+uAEe+TWJFqE4YoWN4/H8MSLj4eYJKxGg26lZwboEniNiNwZQ6Q==}
- '@better-auth/core@1.7.12':
- resolution: {integrity: sha512-SUStBGHJ13KnSO6+7U/1DSlfuOtln4jtOrFZqzQtxZVHZIrAoMjwHNGitlF+s7hvKbuC3Z14xjnqfLLqIqGfxw==}
+ '@better-auth/core@1.7.25':
+ resolution: {integrity: sha512-L20SJSCpgKQIiZHZZBP28gvvqwkQ+IJxFwtNEeC4PSWBG1/yu5VckGGAoiieUBOcR/OZNHXW+lPFWcgQHK4ZYQ==}
peerDependencies:
'@better-auth/utils': ^0.4.2 || ^0.5.0
- '@better-fetch/fetch': 1.3.2
+ '@better-fetch/fetch': 1.3.3
'@opentelemetry/api': ^1.9.0
- better-call: 1.4.4
+ better-call: ~1.4.5
jose: ^6.1.0
kysely: ^0.28.5 || ^0.29.0
nanostores: ^1.0.1
@@ -2235,46 +2235,46 @@ packages:
'@opentelemetry/api':
optional: true
- '@better-auth/drizzle-adapter@1.7.12':
- resolution: {integrity: sha512-Qzoyuf05aK01Pc0k3EXv8Xj3XCT2m2dCWc5HoB7x+xX6N3Pm2eQsca+UIArsJcbuNEWWP3L51oIebnBoHJ5DTw==}
+ '@better-auth/drizzle-adapter@1.7.25':
+ resolution: {integrity: sha512-zQvK6PnUUeD3m5B6U/tHUYCRNtvdq2nZ1aT5jV+jdTt4JUpkt0CATYHf1BrXFt0Y9b0vIeCyVk7QjpF5oxJE9w==}
peerDependencies:
- '@better-auth/core': ^1.7.12
+ '@better-auth/core': ^1.7.25
'@better-auth/utils': ^0.4.2 || ^0.5.0
drizzle-orm: ^0.45.2 || >=1.0.0-rc.1 <2.0.0
peerDependenciesMeta:
drizzle-orm:
optional: true
- '@better-auth/kysely-adapter@1.7.12':
- resolution: {integrity: sha512-1PaFXktLv4n3DmrGbPaCj5SsvcT40NnWw7NLua5/J1+8/A051N5ZzqOwJifXEIQX5k6NdwvmymwDQxKytduEAQ==}
+ '@better-auth/kysely-adapter@1.7.25':
+ resolution: {integrity: sha512-G/HT0Xg+ZIwAu2W2jUaWkUgAD/R6wws+RYsZ8aBX+JMn8ngSdzVC9brjfJ8JZNaTcm9E0XgfUp8uiZk5CTbVYQ==}
peerDependencies:
- '@better-auth/core': ^1.7.12
+ '@better-auth/core': ^1.7.25
'@better-auth/utils': ^0.4.2 || ^0.5.0
kysely: ^0.28.17 || ^0.29.0
peerDependenciesMeta:
kysely:
optional: true
- '@better-auth/memory-adapter@1.7.12':
- resolution: {integrity: sha512-glaDwXzDptnddHqRuu7fj47FAssUcOzLNgdlTGJoEPrspkX69x2vnXwgAzNuApjZI21WLtPH/rQ6CN+DQGybPA==}
+ '@better-auth/memory-adapter@1.7.25':
+ resolution: {integrity: sha512-yn6XdL3FAR0u1qmyZtzpbQl4ZTdxQ9liym6AamiT2Rtu7S3OAwz1ivqpQIAQY4o6aXi/MrCqOlnqXScJCqO+2g==}
peerDependencies:
- '@better-auth/core': ^1.7.12
+ '@better-auth/core': ^1.7.25
'@better-auth/utils': ^0.4.2 || ^0.5.0
- '@better-auth/mongo-adapter@1.7.12':
- resolution: {integrity: sha512-HKV4sgYSw/Gdt9AuHlESMkiKL72SWdGweDy1Wsyxoh06BpG7aNu4aSJ7marNpMdKZteyRbxWWqQkA9ediA8qFw==}
+ '@better-auth/mongo-adapter@1.7.25':
+ resolution: {integrity: sha512-cEErkz3eTTN8Wxgq5PJbF9UN93ypH6EJSVjw+bOFvn6v6RkPzKxwA3kvqsETsM0WVUfnl4zc0J1Np6MhxrJN0g==}
peerDependencies:
- '@better-auth/core': ^1.7.12
+ '@better-auth/core': ^1.7.25
'@better-auth/utils': ^0.4.2 || ^0.5.0
mongodb: ^6.0.0 || ^7.0.0
peerDependenciesMeta:
mongodb:
optional: true
- '@better-auth/prisma-adapter@1.7.12':
- resolution: {integrity: sha512-FZRX6ORbwhDmeYE1Tl0IPtUn8v3BlVFgbJxDnm/DCNHxuFRf+0t4HfddUgYeYehHFR8aSDsdYX44fEFWM9877w==}
+ '@better-auth/prisma-adapter@1.7.25':
+ resolution: {integrity: sha512-s3qr9juC+g53/vNWWn5QqqZywg1EiCwfg+E884GRM6Ves+zp8lREjlXAo0E9Sshz5rcw9rxzJDJY7G/vlxhVEA==}
peerDependencies:
- '@better-auth/core': ^1.7.12
+ '@better-auth/core': ^1.7.25
'@better-auth/utils': ^0.4.2 || ^0.5.0
'@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0
prisma: ^5.0.0 || ^6.0.0 || ^7.0.0
@@ -2284,18 +2284,18 @@ packages:
prisma:
optional: true
- '@better-auth/telemetry@1.7.12':
- resolution: {integrity: sha512-DaDkKNnI99vKGGbWq9KJg2uYeaOjsK9nIBw9T2m2KG/RkxpvQRjYkZ00++up2bZQkR5pB1nukGbplza3UJG/Xg==}
+ '@better-auth/telemetry@1.7.25':
+ resolution: {integrity: sha512-O5RqANZISVLX4/lpsRvNjKWqbiZPErJKpnFg1mzrUxhDnROEKniaQdlm+vdxXcxVC5RClh9hrJG7oXVGDHQHnQ==}
peerDependencies:
- '@better-auth/core': ^1.7.12
+ '@better-auth/core': ^1.7.25
'@better-auth/utils': ^0.4.2 || ^0.5.0
- '@better-fetch/fetch': 1.3.2
+ '@better-fetch/fetch': 1.3.3
- '@better-auth/utils@0.5.0':
- resolution: {integrity: sha512-BL8W4EfIZFwlu0r54m3v1ztjDhu6dDe/amLTm0xybmbZaNgYUqhD3SjpAsnq0q8YD6/ki4iwIgxJNLP/N3TxiA==}
+ '@better-auth/utils@0.5.1':
+ resolution: {integrity: sha512-WETqw5vQ52uQ/xwWR4E8rTgT6fDEr/wnS+otDNkBCa/69281FCF32OKDdQUcahMCnjsvqXBNiEvAQHFB0EVRRg==}
- '@better-fetch/fetch@1.3.2':
- resolution: {integrity: sha512-Gs7n99b5tqUC6cQAPbV0uED3IraHB6xQbHLQ/C3l7ZFafHScOx9pQ+DYmP5blbLFShVWLqxNUlI9wi4xU/X+ow==}
+ '@better-fetch/fetch@1.3.3':
+ resolution: {integrity: sha512-U6SlDt/GUWtK2JAxS/NhdoYTEim+EL1G5byz2TUj83KjLZBUpYzb5SmX0aXaCnbGkAjFKnV/o/0+cyXMbEcqqg==}
'@blaxel/core@0.3.0':
resolution: {integrity: sha512-QfTpeh+qEe57GiwPfkT9HvBkMILrrq8k8fo2pyjU/nm2y+1tbBVK9reXwgy2Ne8oTPjlDJN/uBJb54nGSm0lmA==}
@@ -7151,8 +7151,8 @@ packages:
before-after-hook@4.0.0:
resolution: {integrity: sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ==}
- better-auth@1.7.12:
- resolution: {integrity: sha512-f1fEG0QdTslzbmFA+vOGFFW/XXCWkG4kBxLeH9n1vp1otTH9+ZzV6EJ6797GStWeiYYgS5Vnt9xqE12KwSyAAw==}
+ better-auth@1.7.25:
+ resolution: {integrity: sha512-OglRnzasyXpZHMceZBW76tQRbS6lSJhqkxm0l/7db1qJ415ecD1YkKHgOUCvmPbVDLJiB4/fumD2vw2hf+1VCQ==}
peerDependencies:
'@lynx-js/react': '*'
'@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0
@@ -7210,8 +7210,8 @@ packages:
vue:
optional: true
- better-call@1.4.4:
- resolution: {integrity: sha512-Gq4XdGFy4dmUxFEAX2nj0ycFcFbD9ZWh8YROouZoyXeF1M11TpYbplk0pDByTFF8Wz+MYa6W9052c9m7dD+mfw==}
+ better-call@1.4.5:
+ resolution: {integrity: sha512-GVOWfn3pjEfUXn6GrfGf2h7tPAqj1oMLFBWBEswJrSkDKcLk6TIcjV0zexibcZZ0c5N1mkLMsPFopXWzWj/gDQ==}
peerDependencies:
zod: 4.6.7
peerDependenciesMeta:
@@ -13108,12 +13108,12 @@ snapshots:
'@balena/dockerignore@1.0.2': {}
- '@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)':
+ '@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)':
dependencies:
- '@better-auth/utils': 0.5.0
- '@better-fetch/fetch': 1.3.2
+ '@better-auth/utils': 0.5.1
+ '@better-fetch/fetch': 1.3.3
'@standard-schema/spec': 1.1.0
- better-call: 1.4.4(zod@4.6.7)
+ better-call: 1.4.5(zod@4.6.7)
jose: 6.2.4
kysely: 0.29.4
nanostores: 1.4.1
@@ -13121,46 +13121,46 @@ snapshots:
optionalDependencies:
'@opentelemetry/api': 1.9.1
- '@better-auth/drizzle-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.0)(drizzle-orm@0.45.2(@electric-sql/pglite@0.3.0)(@libsql/client-wasm@0.15.5)(@opentelemetry/api@1.9.1)(@types/pg@8.16.0)(better-sqlite3@11.10.0)(kysely@0.29.4)(pg@8.15.6)(postgres@3.4.8))':
+ '@better-auth/drizzle-adapter@1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.1)(drizzle-orm@0.45.2(@electric-sql/pglite@0.3.0)(@libsql/client-wasm@0.15.5)(@opentelemetry/api@1.9.1)(@types/pg@8.16.0)(better-sqlite3@11.10.0)(kysely@0.29.4)(pg@8.15.6)(postgres@3.4.8))':
dependencies:
- '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)
- '@better-auth/utils': 0.5.0
+ '@better-auth/core': 1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)
+ '@better-auth/utils': 0.5.1
optionalDependencies:
drizzle-orm: 0.45.2(@electric-sql/pglite@0.3.0)(@libsql/client-wasm@0.15.5)(@opentelemetry/api@1.9.1)(@types/pg@8.16.0)(better-sqlite3@11.10.0)(kysely@0.29.4)(pg@8.15.6)(postgres@3.4.8)
- '@better-auth/kysely-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.0)(kysely@0.29.4)':
+ '@better-auth/kysely-adapter@1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.1)(kysely@0.29.4)':
dependencies:
- '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)
- '@better-auth/utils': 0.5.0
+ '@better-auth/core': 1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)
+ '@better-auth/utils': 0.5.1
optionalDependencies:
kysely: 0.29.4
- '@better-auth/memory-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.0)':
+ '@better-auth/memory-adapter@1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.1)':
dependencies:
- '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)
- '@better-auth/utils': 0.5.0
+ '@better-auth/core': 1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)
+ '@better-auth/utils': 0.5.1
- '@better-auth/mongo-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.0)':
+ '@better-auth/mongo-adapter@1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.1)':
dependencies:
- '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)
- '@better-auth/utils': 0.5.0
+ '@better-auth/core': 1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)
+ '@better-auth/utils': 0.5.1
- '@better-auth/prisma-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.0)':
+ '@better-auth/prisma-adapter@1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.1)':
dependencies:
- '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)
- '@better-auth/utils': 0.5.0
+ '@better-auth/core': 1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)
+ '@better-auth/utils': 0.5.1
- '@better-auth/telemetry@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)':
+ '@better-auth/telemetry@1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)':
dependencies:
- '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)
- '@better-auth/utils': 0.5.0
- '@better-fetch/fetch': 1.3.2
+ '@better-auth/core': 1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)
+ '@better-auth/utils': 0.5.1
+ '@better-fetch/fetch': 1.3.3
- '@better-auth/utils@0.5.0':
+ '@better-auth/utils@0.5.1':
dependencies:
'@noble/hashes': 2.2.0
- '@better-fetch/fetch@1.3.2': {}
+ '@better-fetch/fetch@1.3.3': {}
'@blaxel/core@0.3.0(@cfworker/json-schema@4.1.1)(@hey-api/openapi-ts@0.99.0(typescript@5.9.3))(bufferutil@4.1.0)(utf-8-validate@6.0.6)':
dependencies:
@@ -18169,20 +18169,20 @@ snapshots:
before-after-hook@4.0.0: {}
- better-auth@1.7.12(@opentelemetry/api@1.9.1)(drizzle-kit@0.31.9)(drizzle-orm@0.45.2(@electric-sql/pglite@0.3.0)(@libsql/client-wasm@0.15.5)(@opentelemetry/api@1.9.1)(@types/pg@8.16.0)(better-sqlite3@11.10.0)(kysely@0.29.4)(pg@8.15.6)(postgres@3.4.8))(next@16.4.5(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@types/node@24.12.4)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(pg@8.15.6)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vitest@4.1.12(@edge-runtime/vm@3.2.0)(@opentelemetry/api@1.9.1)(@types/node@24.12.4)(jsdom@26.1.0(bufferutil@4.1.0)(utf-8-validate@6.0.6))(vite@7.3.7(@types/node@24.12.4)(jiti@2.7.0)(lightningcss@1.32.0)(terser@5.48.0)(tsx@4.20.4)(yaml@2.9.0))):
- dependencies:
- '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)
- '@better-auth/drizzle-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.0)(drizzle-orm@0.45.2(@electric-sql/pglite@0.3.0)(@libsql/client-wasm@0.15.5)(@opentelemetry/api@1.9.1)(@types/pg@8.16.0)(better-sqlite3@11.10.0)(kysely@0.29.4)(pg@8.15.6)(postgres@3.4.8))
- '@better-auth/kysely-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.0)(kysely@0.29.4)
- '@better-auth/memory-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.0)
- '@better-auth/mongo-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.0)
- '@better-auth/prisma-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.0)
- '@better-auth/telemetry': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)
- '@better-auth/utils': 0.5.0
- '@better-fetch/fetch': 1.3.2
+ better-auth@1.7.25(@opentelemetry/api@1.9.1)(drizzle-kit@0.31.9)(drizzle-orm@0.45.2(@electric-sql/pglite@0.3.0)(@libsql/client-wasm@0.15.5)(@opentelemetry/api@1.9.1)(@types/pg@8.16.0)(better-sqlite3@11.10.0)(kysely@0.29.4)(pg@8.15.6)(postgres@3.4.8))(next@16.4.5(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@types/node@24.12.4)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(pg@8.15.6)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vitest@4.1.12(@edge-runtime/vm@3.2.0)(@opentelemetry/api@1.9.1)(@types/node@24.12.4)(jsdom@26.1.0(bufferutil@4.1.0)(utf-8-validate@6.0.6))(vite@7.3.7(@types/node@24.12.4)(jiti@2.7.0)(lightningcss@1.32.0)(terser@5.48.0)(tsx@4.20.4)(yaml@2.9.0))):
+ dependencies:
+ '@better-auth/core': 1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)
+ '@better-auth/drizzle-adapter': 1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.1)(drizzle-orm@0.45.2(@electric-sql/pglite@0.3.0)(@libsql/client-wasm@0.15.5)(@opentelemetry/api@1.9.1)(@types/pg@8.16.0)(better-sqlite3@11.10.0)(kysely@0.29.4)(pg@8.15.6)(postgres@3.4.8))
+ '@better-auth/kysely-adapter': 1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.1)(kysely@0.29.4)
+ '@better-auth/memory-adapter': 1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.1)
+ '@better-auth/mongo-adapter': 1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.1)
+ '@better-auth/prisma-adapter': 1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.1)
+ '@better-auth/telemetry': 1.7.25(@better-auth/core@1.7.25(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.5(zod@4.6.7))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)
+ '@better-auth/utils': 0.5.1
+ '@better-fetch/fetch': 1.3.3
'@noble/ciphers': 2.2.0
'@noble/hashes': 2.2.0
- better-call: 1.4.4(zod@4.6.7)
+ better-call: 1.4.5(zod@4.6.7)
defu: 6.1.7
jose: 6.2.4
kysely: 0.29.4
@@ -18199,10 +18199,10 @@ snapshots:
transitivePeerDependencies:
- '@opentelemetry/api'
- better-call@1.4.4(zod@4.6.7):
+ better-call@1.4.5(zod@4.6.7):
dependencies:
- '@better-auth/utils': 0.5.0
- '@better-fetch/fetch': 1.3.2
+ '@better-auth/utils': 0.5.1
+ '@better-fetch/fetch': 1.3.3
rou3: 0.9.2
set-cookie-parser: 3.1.2
optionalDependencies: