[GH-ISSUE #2977] Documentation typo: auth.api.getMCPSession should be auth.api.getMcpSession #26745

Closed
opened 2026-04-17 17:24:53 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @MatteoUrso on GitHub (Jun 11, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/2977

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

  1. Go to the #MCP plugin documentation](https://www.better-auth.com/docs/plugins/mcp#mcp-session-handling)
  2. Scroll to the section where the auth.api.getMCPSession method is mentioned.
  3. Observe that the method name is incorrectly capitalized.
  4. The correct method is auth.api.getMcpSession (with lowercase "cp").

This caused confusion while integrating the plugin, as the incorrect method name doesn’t match the actual API.

Current vs. Expected behavior

Current Behavior

The documentation shows auth.api.getMCPSession with an uppercase "C" and "P", which is not the correct method name.

Expected Behavior

The documentation should use auth.api.getMcpSession, with a lowercase "c" and "p", matching the actual API method name.

What version of Better Auth are you using?

1.2.8

Provide environment information

- OS: Windows 10
- Browser: Chrome

Which area(s) are affected? (Select all that apply)

Documentation

Auth config (if applicable)

import { betterAuth } from "better-auth"
export const auth = betterAuth({
  emailAndPassword: {  
    enabled: true
  },
});

Additional context

No response

Originally created by @MatteoUrso on GitHub (Jun 11, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/2977 ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce 1. Go to the #[MCP plugin documentation](https://www.better-auth.com/docs/plugins/mcp)](https://www.better-auth.com/docs/plugins/mcp#mcp-session-handling) 2. Scroll to the section where the auth.api.getMCPSession method is mentioned. 3. Observe that the method name is incorrectly capitalized. 4. The correct method is auth.api.getMcpSession (with lowercase "cp"). This caused confusion while integrating the plugin, as the incorrect method name doesn’t match the actual API. ### Current vs. Expected behavior ### Current Behavior The documentation shows auth.api.getMCPSession with an uppercase "C" and "P", which is not the correct method name. ### Expected Behavior The documentation should use auth.api.getMcpSession, with a lowercase "c" and "p", matching the actual API method name. ### What version of Better Auth are you using? 1.2.8 ### Provide environment information ```bash - OS: Windows 10 - Browser: Chrome ``` ### Which area(s) are affected? (Select all that apply) Documentation ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ emailAndPassword: { enabled: true }, }); ``` ### Additional context _No response_
GiteaMirror added the locked label 2026-04-17 17:24:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#26745