Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Knuckles-Team/mattermost-mcp --skill mattermost-api-users-and-sessionsgit clone --depth 1 https://github.com/Knuckles-Team/mattermost-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/knuckles-team/mattermost-mcp/mattermost-api-users-and-sessions)<a href="https://agentmods.dev/skills/knuckles-team/mattermost-mcp/mattermost-api-users-and-sessions"><img src="https://agentmods.dev/badge/skills/knuckles-team/mattermost-mcp/mattermost-api-users-and-sessions/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/knuckles-team/mattermost-mcp/mattermost-api-users-and-sessions"><img src="https://agentmods.dev/badge/skills/knuckles-team/mattermost-mcp/mattermost-api-users-and-sessions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00073 | $0.02429 |
| Opus 5.5 | $0.00029 | $0.00972 |
| Sonnet 5.5 | $0.00015 | $0.00486 |
| Haiku 4.5 | $0.00007 | $0.00243 |
Grade A, and why
mattermost-api-users-and-sessions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Mattermost users, sessions, tokens and roles API
User records, access tokens, sessions, preferences, status, bots, roles, authentication and multi-factor settings.
Steps
- Resolve the user with
mattermost_get_user_by_username(username) and verify the returned user_id and email match the request. - Check availability with
mattermost_get_user_status(user_id) and verify the status field is present. - Review sign-ins with
mattermost_get_sessions(user_id) and verify the session ids and last activity times returned. - Change the account with
mattermost_update_user_active(user_id, active) ormattermost_revoke_session(user_id, session_id) after approval, and verify the response reports success. - Read the user back with
mattermost_get_user(user_id) and verify the active flag or session list reflects the change.
Failure recovery
| Failure | Cause | Recovery |
|---|---|---|
| Request answers 401 or 403 | The credential is missing, expired or lacks the permission for this area | Confirm the acting identity with mattermost_get_user, then supply a token whose role covers the call and send it again with the corrected credential |
mattermost_get_user_by_username returns 404 |
The username is misspelled or the user is deactivated | Search with mattermost_get_user_by_email(email) or mattermost_get_users(page, per_page) and use the id it returns |
| A revoke or role change is refused | The destructive call was sent without approval | Obtain the requester's approval of the user id and session id, then send the call again with confirm=true where the tool takes it |
Every operation is its own typed tool; arguments follow the upstream API (path parameters are required, filters are optional arguments). Read first (get, list, search), change second, and obtain approval before any delete, disable, revoke or reset.
| Tool | Summary |
|---|---|
mattermost_assign_bot |
Assign a bot to a user |
mattermost_autocomplete_users |
Autocomplete users |
mattermost_convert_bot_to_user |
Convert a bot into a user |
mattermost_convert_user_to_bot |
Convert a user into a bot |
mattermost_create_bot |
Create a bot |
mattermost_create_o_auth_app |
Register OAuth app |
mattermost_create_outgoing_o_auth_connection |
Create a connection |
mattermost_create_terms_of_service |
Creates a new terms of service |
mattermost_create_user |
Create a user |
mattermost_create_user_access_token |
Create a user access token |
mattermost_delete_o_auth_app |
Delete an OAuth app |
mattermost_delete_outgoing_o_auth_connection |
Delete a connection |
mattermost_delete_preferences |
Delete user's preferences |
mattermost_delete_user |
Deactivate a user account. |
mattermost_demote_user_to_guest |
Demote a user to a guest |
mattermost_disable_bot |
Disable a bot |
mattermost_disable_user_access_token |
Disable personal access token |
mattermost_enable_bot |
Enable a bot |
mattermost_enable_user_access_token |
Enable personal access token |
mattermost_generate_mfa_secret |
Generate MFA secret |
mattermost_get_agents_status |
Get agents bridge status |
mattermost_get_all_roles |
Get a list of all the roles |
mattermost_get_authorization_server_metadata |
Get OAuth 2.0 Authorization Server Metadata |
mattermost_get_authorized_o_auth_apps_for_user |
Get authorized OAuth apps |
mattermost_get_bot |
Get a bot |
mattermost_get_bots |
Get bots |
mattermost_get_cluster_status |
Get cluster status |
mattermost_get_known_users |
Get user IDs of known users |
mattermost_get_login_type |
Get login authentication type |
mattermost_get_non_compliant_user_access_token_count |
Count non-compliant personal access tokens |
mattermost_get_o_auth_app |
Get an OAuth app |
mattermost_get_o_auth_app_info |
Get info on an OAuth app |
mattermost_get_o_auth_apps |
Get OAuth apps |
mattermost_get_outgoing_o_auth_connection |
Get a connection |
mattermost_get_plugin_statuses |
Get plugins status |
mattermost_get_preferences |
Get the user's preferences |
mattermost_get_preferences_by_category |
List a user's preferences by category |
mattermost_get_preferences_by_category_by_name |
Get a specific user preference |
mattermost_get_role |
Get a role |
mattermost_get_role_by_name |
Get a role |
mattermost_get_roles_by_names |
Get a list of roles by name |
mattermost_get_saml_certificate_status |
Get certificate status |
mattermost_get_session_attributes_manifest |
Get the session attributes manifest |
mattermost_get_sessions |
Get user's sessions |
mattermost_get_terms_of_service |
Get latest terms of service |
mattermost_get_total_users_stats |
Get total count of users in the system |
mattermost_get_total_users_stats_filtered |
Get total count of users in the system matching the specified filters |
mattermost_get_uploads_for_user |
Get uploads for a user |
mattermost_get_user |
Get a user |
mattermost_get_user_access_token |
Get a user access token |
mattermost_get_user_access_tokens |
Get user access tokens |
mattermost_get_user_access_tokens_for_user |
Get user access tokens |
mattermost_get_user_by_auth_data |
Get a user by auth data |
mattermost_get_user_by_email |
Get a user by email |
mattermost_get_user_by_username |
Get a user by username |
mattermost_get_user_status |
Get user status |
mattermost_get_user_terms_of_service |
Fetches user's latest terms of service action if the latest action was for acceptance. |
mattermost_get_users |
Get users |
mattermost_get_users_by_ids |
Get users by ids |
mattermost_get_users_by_usernames |
Get users by usernames |
mattermost_get_users_statuses_by_ids |
Get user statuses by id |
mattermost_get_users_with_invalid_emails |
Get users with invalid emails |
mattermost_ingest_users |
Ingest Mattermost users as shared :Person / :Bot nodes. |
mattermost_list_outgoing_o_auth_connections |
List all connections |
mattermost_login |
Login to Mattermost server |
mattermost_login_by_cws_token |
Auto-Login to Mattermost server using CWS token |
mattermost_login_intune |
Login with Microsoft Intune MAM |
mattermost_login_s_s_o_code_exchange |
Exchange SSO login code for session tokens |
mattermost_login_with_desktop_token |
Login using desktop token |
mattermost_migrate_auth_to_ldap |
Migrate user accounts authentication type to LDAP. |
mattermost_migrate_auth_to_saml |
Migrate user accounts authentication type to SAML. |
mattermost_patch_bot |
Patch a bot |
mattermost_patch_c_p_a_values_for_user |
Update custom profile attribute values for a user |
mattermost_patch_role |
Patch a role |
mattermost_patch_user |
Patch a user |
mattermost_permanent_delete_all_users |
Permanent delete all users |
mattermost_promote_guest_to_user |
Promote a guest to user |
mattermost_publish_user_typing |
Publish a user typing websocket event. |
mattermost_regen_command_token |
Generate a new token |
mattermost_regen_outgoing_hook_token |
Regenerate the token for the outgoing webhook. |
mattermost_regenerate_o_auth_app_secret |
Regenerate OAuth app secret |
mattermost_register_o_auth_client |
Register OAuth client using Dynamic Client Registration |
mattermost_register_terms_of_service_action |
Records user action when they accept or decline custom terms of service |
mattermost_remove_recent_custom_status |
Delete user's recent custom status |
mattermost_reset_password |
Reset password |
mattermost_reset_password_failed_attempts |
Reset the failed password attempts for a user |
mattermost_reset_saml_auth_data_to_email |
Reset AuthData to Email |
mattermost_revoke_all_sessions |
Revoke all active sessions for a user |
mattermost_revoke_non_compliant_user_access_tokens |
Revoke non-compliant personal access tokens |
mattermost_revoke_session |
Revoke a user session |
mattermost_revoke_sessions_from_all_users |
Revoke all sessions from all users. |
mattermost_revoke_user_access_token |
Revoke a user access token |
mattermost_rotate_user_access_token |
Rotate a personal access token |
mattermost_search_user_access_tokens |
Search tokens |
mattermost_search_users |
Search users |
mattermost_send_password_reset_email |
Send password reset email |
mattermost_send_verification_email |
Send verification email |
mattermost_test_email |
Send a test email |
mattermost_unset_user_custom_status |
Unsets user custom status |
mattermost_update_job_status |
Update the status of a job |
mattermost_update_o_auth_app |
Update an OAuth app |
mattermost_update_outgoing_o_auth_connection |
Update a connection |
mattermost_update_preferences |
Save the user's preferences |
mattermost_update_user |
Update a user |
mattermost_update_user_active |
Activate or deactivate a user |
mattermost_update_user_auth |
Update a user's authentication method |
mattermost_update_user_custom_status |
Update user custom status |
mattermost_update_user_mfa |
Update a user's MFA |
mattermost_update_user_password |
Update a user's password |
mattermost_update_user_roles |
Update a user's roles |
mattermost_update_user_status |
Update user status |
mattermost_upgrade_to_enterprise_status |
Get the current status for the inplace upgrade from Team Edition to Enterprise Edition |
mattermost_validate_business_email |
Validate business email |
mattermost_validate_outgoing_o_auth_connection |
Validate a connection configuration |
mattermost_validate_workspace_business_email |
Validate workspace business email |
mattermost_verify_user_email |
Verify user email |
mattermost_verify_user_email_without_token |
Verify user email by ID |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago Changed · +16 lines c883b6325429
- 23d ago First seen · 139 lines · 73 tokens per session scan A 726f5de3fe3a
mattermost-api-users-and-sessions is a skill published in the GitHub repository Knuckles-Team/mattermost-mcp (0 stars, last pushed 4d ago), licensed MIT. It adds 73 tokens to every session and 2,429 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-07.
mattermost-api-users-and-sessions compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mattermost-api-users-and-sessionsKnuckles-Team/mattermost-mcp | Skill | 0 | 4d ago | MIT | A | 73 | Claude Code, Codex |
| querying-indonesian-gov-datasuryast/indonesia-gov-apis | Skill | 177 | yesterday | MIT | A | 61 | Claude Code, Codex |
| slackdumprusq/slackdump | Skill | 2.9k | 2d ago | AGPL-3.0 | A | 15 | Claude Code, Codex |
| slackdump-sqlite3rusq/slackdump | Skill | 2.9k | 2d ago | AGPL-3.0 | A | 25 | Claude Code, Codex |
| slackdump-sourcerusq/slackdump | Skill | 2.9k | 2d ago | AGPL-3.0 | A | 14 | Claude Code, Codex |
| jamdeskjamdesk/jamdesk-claude-plugin | Skill | 3 | 22d ago | Apache-2.0 | A | 57 | Claude Code |
| royalti-apiRoyalti-io/royalti-api-skill | Skill | 4 | 2mo ago | MIT | A | 96 | Claude Code |