# Manage object storage with an AI agent over MCP

Source: https://resilis.io/docs/object-storage/agents/

Your AI coding agent can manage object storage through the Resilis MCP server, within the access you authorize. This page covers the main storage tools and shows how to connect Claude Code or Codex.

## Connect your agent

Connect your agent to https://mcp.resilis.io and review the access it asks for. Creating data resources and deleting them are separate authorizations.

### Terminal

```sh
# Claude Code
claude mcp add --transport http resilis https://mcp.resilis.io
claude mcp login resilis

# Codex CLI
codex mcp add resilis --url https://mcp.resilis.io
codex mcp login resilis
```

- [Agent access and authorization](/docs/agents-and-mcp/)

## Main storage tools

Storage tools include the following. Each works on buckets in the organization you authorized, within your plan limits.

- storage.buckets.list: list buckets and their current usage.
- storage.buckets.get: get one bucket and its current usage.
- storage.buckets.create: create a bucket, subject to your plan’s bucket limit.
- storage.objects.list: list object metadata and prefixes without reading object contents.
- storage.objects.sign: create a short-lived GET or PUT URL for one object. Without a lifetime it lasts 900 seconds.
- storage.credentials.issue: issue a bucket credential with the read or write access and expiry you choose.
- storage.credentials.list: list a bucket’s access keys and their status. Secrets are never returned.
- storage.credentials.revoke: revoke one access key immediately, without deleting the bucket or its objects.

## Credentials and signed URLs

A credential issued this way returns its secret exactly once, so ask for the shortest expiry that fits the task and keep the value out of logs and source.

A URL from storage.objects.sign is meant for server-side use, such as curl or an SDK. For uploads from a browser, issue a credential and sign with an S3 presigner against the returned endpoint using path-style addressing, as shown in the presigned uploads page.

- [Upload from the browser with presigned URLs](/docs/object-storage/presigned-uploads/)

## Can my AI agent manage buckets and objects?

Yes, over MCP and within the access you authorize. An agent can create a bucket, list objects, create a short-lived signed URL for one object, and issue, list or revoke a bucket credential. It cannot read object contents through the list tool.

The credential secret is returned once, so ask for a short expiry and keep it out of logs and source.

- [Agent access and authorization](/docs/agents-and-mcp/)
