mcp

v0.1.2
@shelby-protocol/mcp Checked 3 days ago Published 2 days ago

An MCP server that lets agents manage Shelby buckets

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_shelby_agent_key_info

Describe the configured agent key: its name, expiry, whether it's read-only, the projects and buckets it reaches, and the local directories this MCP may use. Never returns the key itself.

list_shelby_buckets

List the Shelby buckets this key can reach, with the project each is in, its S3 bucket name (s3_bucket) and its account address. Also says where new buckets can be created.

get_shelby_bucket

Get one Shelby bucket by name: its project, S3 bucket name (s3_bucket) and on-chain account.

ParameterTypeDescription
bucket *stringThe bucket name, as shown by list_shelby_buckets.
organizationstringThe organization name. Only needed for unscoped bot keys that reach several organizations.
projectstringThe project name. Only needed when the key reaches several buckets with the same name, or several projects to create in.

create_shelby_bucket

Create a Shelby bucket and the managed on-chain account that owns its data. Pass a project when the key can create in several (list_shelby_buckets shows where). With an unscoped bot key this also creates an API key, the S3 credential, and returns its secret once.

ParameterTypeDescription
name *stringThe bucket name, which is also its S3 bucket name. Must be 3-32 characters: lowercase letters, numbers and dashes, starting and ending with a letter or number, with at least one letter. Must not look…
api_key_namestringUnscoped bot keys only: name of the API key created with the bucket. Defaults to 'api-key-01'.
organizationstringThe organization name. Only needed for unscoped bot keys that reach several organizations.
projectstringThe project name. Only needed when the key reaches several buckets with the same name, or several projects to create in.

rename_shelby_bucket

Rename a Shelby bucket's display name. Its S3 bucket name (s3_bucket) and account address do not change, so existing S3 clients keep working.

ParameterTypeDescription
bucket *stringThe bucket name, as shown by list_shelby_buckets.
new_name *stringThe new bucket name. Must be 3-32 characters: lowercase letters, numbers, dashes and underscores.
organizationstringThe organization name. Only needed for unscoped bot keys that reach several organizations.
projectstringThe project name. Only needed when the key reaches several buckets with the same name, or several projects to create in.

delete_shelby_bucket

Delete a Shelby bucket and everything in it. This cannot be undone. Retrying after a partial failure is safe.

ParameterTypeDescription
bucket *stringThe bucket name, as shown by list_shelby_buckets.
organizationstringThe organization name. Only needed for unscoped bot keys that reach several organizations.
projectstringThe project name. Only needed when the key reaches several buckets with the same name, or several projects to create in.

list_shelby_objects

List objects in a Shelby bucket, optionally under a prefix. Pages of up to 1000; pass next_continuation_token to get the next page.

ParameterTypeDescription
bucket *stringThe bucket name, as shown by list_shelby_buckets.
continuation_tokenstringnext_continuation_token from the previous page.
delimiterstringGroup keys by this, usually "/", to list one level at a time.
max_keysinteger
organizationstringThe organization name. Only needed for unscoped bot keys that reach several organizations.
prefixstringOnly list keys starting with this.
projectstringThe project name. Only needed when the key reaches several buckets with the same name, or several projects to create in.

upload_shelby_object

Upload a local file to a Shelby bucket. Streams the file, using a multipart upload for large files. Only files inside the allowed directories can be read (/tmp).

ParameterTypeDescription
bucket *stringThe bucket name, as shown by list_shelby_buckets.
local_path *stringThe file to upload. Relative paths start at the first allowed directory.
content_typestring
keystringThe object key. Defaults to the file's name.
organizationstringThe organization name. Only needed for unscoped bot keys that reach several organizations.
projectstringThe project name. Only needed when the key reaches several buckets with the same name, or several projects to create in.

download_shelby_object

Download an object from a Shelby bucket to a local file. Only paths inside the allowed directories can be written (/tmp). Won't replace an existing file unless overwrite is set.

ParameterTypeDescription
bucket *stringThe bucket name, as shown by list_shelby_buckets.
key *stringThe object key to download.
local_pathstringWhere to save it. Relative paths start at the first allowed directory. Defaults to the key's last segment.
organizationstringThe organization name. Only needed for unscoped bot keys that reach several organizations.
overwritebooleanReplace an existing file. Defaults to false.
projectstringThe project name. Only needed when the key reaches several buckets with the same name, or several projects to create in.

get_shelby_s3_connection_guide

Get the guide and sample code (boto3, AWS SDK v3, AWS CLI) for reading and writing objects in a Shelby bucket over the S3 API. Use this before writing any code that uploads to or downloads from a Shelby bucket.

ParameterTypeDescription
bucketstringThe bucket's S3 bucket name (`s3_bucket` from list/get/create). Filled into the sample code when provided.

get_mcp_version

Returns the version of the MCP server