Skip to content

Connect an agent with scoped permissions

Meshploy’s remote MCP endpoint lets a compatible client operate as a dedicated agent identity. Use it when the agent should have a narrower scope than your own account.

ConnectionIdentityConfiguration
Local meshploy mcpYour logged-in CLI userClient launches the CLI over stdio.
Remote /mcpAgent authenticated with a magt- tokenClient connects over HTTP with bearer authentication.

Remote MCP omits operator-only tools, including node registration, system backups, member management, and raw database queries. Resource permissions still apply to the tools that are available.

In the console, open Agents and create a named identity for the workflow, such as staging-deployer.

Choose Member for an identity whose access you intend to restrict with grants. An Admin role grants broad organization access; it is not made narrowly scoped simply by adding a project grant. Agents cannot be owners.

Use the project or resource Permissions section to grant the agent only the actions needed by its task.

Start with read access to the intended resources. Add deployment or modification permissions when the workflow requires them. Project grants and resource grants affect the effective access together; inspect both rather than assuming a resource grant cancels broader access.

For example, a diagnostics agent should be able to inspect its application’s status and logs without receiving general administrative access.

3. Create a token and configure the client

Section titled “3. Create a token and configure the client”

Create an agent token, give it a recognizable name, and set an expiry when appropriate. Copy the plaintext token when shown; stored token metadata cannot recover it later.

Use the client-specific configuration provided by the agent’s connection panel. The remote endpoint is:

https://console.<your-domain>/mcp

Authenticate using:

Authorization: Bearer <agent-token>

Keep the token in the client’s protected configuration rather than a committed project file.

The current connection requires a client that supports the endpoint’s HTTP transport and bearer credentials. A client that only offers OAuth discovery cannot use this token flow; Meshploy’s MCP OAuth connector support is planned separately.

Before allowing changes:

  1. Ask the client to list the resources the agent can see.
  2. Read the status or logs of an allowed service.
  3. Confirm that an unrelated project is not accessible.
  4. Verify that a change outside the granted permissions is rejected using a harmless request against a disposable test resource.

A missing tool and a denied resource are different failures: the first concerns the remote tool surface, the second authorization.

Only then add the write permissions required for the intended workflow.

Meshploy enforces access through the authenticated identity. Your client’s approval settings determine when it asks before invoking a tool.

Destructive labels communicate intent; they do not guarantee a confirmation dialog. Configure the client to require review where appropriate, especially for deploys, deletion, and data changes.

To rotate a token, create a replacement, update the client, confirm it connects, then revoke the old token. Revoke unused or compromised tokens immediately.

Revoking a token does not undo earlier deployments or data changes. Inspect the resources affected by the agent separately.

After authenticating the CLI, a stdio-capable client can launch:

{
"mcpServers": {
"meshploy": {
"command": "meshploy",
"args": ["mcp"]
}
}
}

This runs as your user. Use remote MCP with a member agent when you need a distinct permission boundary. See the CLI reference for authentication and command details.