whoami
Identify the current session's username, anonymous status, and user groups on a MediaWiki wiki. Use before editing to confirm attribution, such as building a user subpage.
Instructions
Returns the identity the current session is authenticated as on the targeted wiki: the username, whether the session is anonymous (no user is logged in), and the user groups it belongs to. Set includeRights to also return the full list of user rights. Use to confirm who edits and uploads will be attributed to before writing — for example, to resolve your own username before building a title under your own user namespace (User:/…). Reports anonymous access rather than failing when the session has no credentials. For which wikis have stored OAuth tokens and their scopes, use oauth-status instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeRights | No | Also return the full list of user rights granted on this wiki (a long list). Defaults to false. | |
| wiki | No | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |