Required Environment Variables
DESCOPE_PROJECT_ID
: your-descope-project-id-hereDESCOPE_MANAGEMENT_KEY
: your-descope-management-key-here
Steps
-
Install Meshagent CLI and Tools
- Sign Up and Authenticate Follow the guide at docs.meshagent.com/cli/getting_started to register your account and authenticate.
-
Start a Room-Level MCP Service
- This starts a Meshagent Room (
test
) with a dedicated MCP server. The room and its services are automatically removed when no longer active.
- This starts a Meshagent Room (
-
Add a Chatbot Connected to the MCP Tools
- This launches a Meshagent chatbot in the same room, enabled to use the Descope toolset. You can use multiple toolkits per agent if needed.
- The command output provides a browser link to your room.
-
Try It Out
- Open the provided room link in your browser and interact with the agent to use the MCP tools in real time.
Project Level Deployment (Persistent MCP & Chatbot)
For production scenarios, deploy persistent services to your Meshagent project. These services are available in all rooms, every time a new room is created. No need to manage local processes—your MCP server and chatbot are ready on room creation.Deploy Persistent MCP Service
Deploy Persistent Chatbot
Tools Available
The Meshagent-wrapped Descope MCP Server offers the following tools for automation and management:Tools provided by this Server | Short Description |
---|---|
create-user | Create a new user in Descope project |
invite-user | Create and invite a new user to the Descope project |
search-audits | Search Descope project audit logs |
search-users | Search for users in Descope project |
Tool Details
create-user
Create a new user in Descope projectParameters:
loginId
(string
): Primary login identifier for the useradditionalLoginIds
(array
, optional): Additional login identifierscustomAttributes
(object
, optional): Custom attributes for the userdisplayName
(string
, optional): User’s display nameemail
(string
, optional): User’s email addressfamilyName
(string
, optional): User’s family/last namegivenName
(string
, optional): User’s given/first namemiddleName
(string
, optional): User’s middle namephone
(string
, optional): User’s phone number in E.164 formatpicture
(string
, optional): URL to user’s profile pictureroles
(array
, optional): Global role names to assign to the userssoAppIds
(array
, optional): SSO application IDs to associateuserTenants
(array
, optional): Tenant associations with specific rolesverifiedEmail
(boolean
, optional): Whether the email is pre-verifiedverifiedPhone
(boolean
, optional): Whether the phone is pre-verified
invite-user
Create and invite a new user to the Descope projectParameters:
loginId
(string
): Primary login identifier for the useradditionalLoginIds
(array
, optional): Additional login identifierscustomAttributes
(object
, optional): Custom attributes for the userdisplayName
(string
, optional): User’s display nameemail
(string
, optional): User’s email addressfamilyName
(string
, optional): User’s family/last namegivenName
(string
, optional): User’s given/first nameinviteUrl
(string
, optional): Custom URL for the invitation linkmiddleName
(string
, optional): User’s middle namephone
(string
, optional): User’s phone number in E.164 formatpicture
(string
, optional): URL to user’s profile pictureroles
(array
, optional): Global role names to assign to the usersendMail
(boolean
, optional): Send invite via email (default follows settings)sendSMS
(boolean
, optional): Send invite via SMS (default follows settings)ssoAppIds
(array
, optional): SSO application IDs to associatetemplateId
(string
, optional): Custom template ID for the invitationtemplateOptions
(object
, optional): Options for customizing the invitation templateuserTenants
(array
, optional): Tenant associations with specific rolesverifiedEmail
(boolean
, optional): Whether the email is pre-verifiedverifiedPhone
(boolean
, optional): Whether the phone is pre-verified
search-audits
Search Descope project audit logsParameters:
actions
(array
, optional): Filter by specific action typesexcludedActions
(array
, optional): Actions to exclude from resultsgeos
(array
, optional): Filter by geographic locationshoursBack
(number
, optional): Hours to look back (max 720 hours / 30 days)limit
(number
, optional): Number of audit logs to fetch (max 10)loginIds
(array
, optional): Filter by specific login IDsmethods
(array
, optional): Filter by authentication methodsnoTenants
(boolean
, optional): If true, only show events without tenantstenants
(array
, optional): Filter by specific tenant IDs
search-users
Search for users in Descope projectParameters:
emails
(array
, optional): Filter by specific email addresseslimit
(number
, optional): Number of users per page (max 100)loginIds
(array
, optional): Filter by specific login IDspage
(number
, optional): Page number for paginationphones
(array
, optional): Filter by specific phone numbersroles
(array
, optional): Filter users by role namesssoAppIds
(array
, optional): Filter users by SSO application IDsstatuses
(array
, optional): Filter by user statuses (enabled
,disabled
, orinvited
)tenantIds
(array
, optional): Filter users by specific tenant IDstestUsersOnly
(boolean
, optional): Return only test userstext
(string
, optional): Text to search for in user fieldswithTestUser
(boolean
, optional): Include test users in results
Useful Links
- Main Site: meshagent.com
- Meshagent Documentation: Read The Docs
- Meshagent MCP Tool Docker Image: docker.com/r/meshagent/mcp-descope