Choose your client
This is a connection-method guide, not a claim that TinyCloud is published in every client’s app directory. Client interfaces and administrator settings change; a working transport does not guarantee that an account has the UI.
If a bot cannot install the CLI or connect through MCP, sending it a setup
link does not add those capabilities. Do not send it an owner private key.
Use Windows installation for a Windows shell.
ChatGPT setup
- Open ChatGPT on the web and use its custom MCP server connection form. Follow OpenAI’s current custom MCP setup guide for the current UI and account/workspace availability. If the form is absent, check that guidance or your workspace administrator; this guide does not infer a subscription restriction.
- Enter
https://mcp.tinycloud.xyz/mcpand complete OpenKey OAuth. Use the same OpenKey owner/key that holds your TinyCloud data. - Enable/select the connection in the conversation, ask it to call
tinycloud_connect, and complete the scoped approval flow below. - Continue only when
tinycloud_connectreportsconnected: true; ask to list spaces and read one known record before requesting edits.
Connect a remote MCP client
For example, in Claude (web, iOS or Android), add a custom connector with this URL. Other compatible clients, including ChatGPT, use the same endpoint:- Ask the client to call
tinycloud_connect. - Open the returned
approvalUrland approve the account-registry delegation in OpenKey. - Ask the client to call
tinycloud_connectagain. It now returnsconnected: true. - Ask the client to list your spaces, then perform the KV or SQLite operation you
want. When a tool returns
authority_required, open itsapproval.urland retry the same tool unchanged.
tinycloud_connect and four personal-record tools to the local
surface, and omits the local-only tinycloud_auth_import and
tinycloud_secrets_status. The service stores a distinct delegated session key
for each OpenKey OAuth subject and accepts only delegations from an owner DID
carried by that subject’s resource-bound access token. It never receives an
owner private key.
Keep personal records naturally
Ask “Log my weight: 80.5 kg today”, “Mark my passport todo done”, or “How much did I run last month?” Claude can keep and read the same records as coding agents usingtc-apps, without a local CLI or skill installation.
At first use, approve connect and then personal-record access in OpenKey.
Records use one grant for get, list, put and delete under
xyz.tinycloud.agent-data/ in your default space, not a separate approval
for every key. Supply an IANA timezone once; the client must not infer your
local date from the hosted server’s clock or require your precise location.
In Settings → Connectors → TinyCloud, you can set tinycloud_apps_write
to Always allow to avoid per-call tool confirmations. This does not bypass
OpenKey permission approval.
For edits, read fresh and pass the returned ETag. A put without an ETag creates
only; a stale ETag returns
CHANGED, not an overwrite. A move requires the
source ETag; a delete can also be guarded by one. Inspect each operation’s
outcome and a move’s completed steps (written, deleted): an ok envelope
does not mean every operation succeeded. Report partial outcomes rather than
blindly replaying the batch. TIMEZONE_REQUIRED means the owner’s timezone
must be set before the write.
For questions over many records, Claude can first answer from the records and
offer a fast, searchable copy of your records. This is optional and needs
its own approval. KV records remain the source of truth. Developer reference:
the copy is the exact SQL database xyz.tinycloud.agent-data.index, with
read, write and schema authority; query refreshes derived data, not KV records.
COPY_PARTIAL is a successful result with the kinds still to rebuild; the
next query resumes them. A nonretryable NODE_ERROR with
error.details.reason: "copy_unavailable" needs the node team’s resolution.
Answer from KV instead; retrying the copy or changing its name is not a fix.
Production requests 30-day grants and uses 15-minute approval links. A missing
or expired session returns a fresh connect link in error.details; a missing
or expired grant returns an authority_required approval link. Open the new
link and retry after approval. If the owner declines, stop rather than asking
again in that conversation.
Requirements
- Node.js 22.20 or later
- The TinyCloud CLI, signed in with
tinycloud onboard, for local stdio - A hosted deployment with the apps tools for personal records; local stdio does not expose them
- A TinyCloud node running 1.6.0 or newer
- Local stdio requires structured tool results; hosted clients can also read canonical JSON in text results
Configure local stdio
Install both packages with Node.js 22.20 or later:tinycloud onboard (see
agents.tinycloud.xyz/onboarding),
then start the server with that profile. An onboarded profile signs in with
OpenKey, so pass --allow-owner-profile with it.
Then add the local stdio server to your MCP client:
Available tools
These tools use the same versioned operation contracts as the CLI projections.
Results use one of four statuses:
ok, authority_required, setup_required,
or error.
Generic data operations plan authority for the exact space and key, prefix, or
database in their input. The hosted apps tools use the single records-prefix
grant described above instead. When authority is missing, the tool returns
authority_required with a tinycloud.auth.request; it does not widen the
request or silently fall back to owner authority. Generic KV tools reject the
TinyCloud account and secrets spaces. Use the dedicated account and secret
tools for those protected spaces.
For the account and data discovery sequence, including how to handle
authority_required, see
Access and explore my TinyCloud.
Account registry discovery is capped at 1,000 records, 1 MiB per record, and 4
MiB total serialized output. It fails closed instead of returning a partial
registry.
Hosted text results include readable canonical JSON as well as
structuredContent, except that successful secret values remain structured-only.
Read-only results over 100,000 characters return a nonretryable size error with
narrowing guidance. This cap never truncates write results or conceals completed
writes. Tool-call logs contain only tool name, outcome code, duration and the
number of successfully replayed grants—not keys, values, catalog text, SQL or
parameters.
KV data safety
tinycloud_kv_list returns at most 100 keys by default, accepts a limit from 1
through 1,000, and reports whether the result was truncated. KV reads and
writes are limited to 1 MiB per value.
tinycloud_kv_get returns the byte length, metadata, and a tagged
representation. Base64 is the default and preserves arbitrary files exactly;
request text or json only when the bytes use that representation. A decoded
GET can carry a weak representation ETag; use tinycloud_kv_head when a strong
validator is needed for a conditional mutation.
tinycloud_kv_put accepts one of these tagged content objects:
createsucceeds only when the key does not exist.replacerequires the current strong ETag fromtinycloud_kv_headand fails if the value changed.upsertwrites without a precondition and can overwrite an existing value.
tinycloud_kv_delete when concurrent
changes must be preserved. A failed create, replace, or guarded delete returns
a precondition error instead of overwriting or deleting newer data.
If a conditional mutation reports a retryable database serialization conflict,
re-read the key state, which may still be absent. If it exists, compare its
current ETag before deciding whether to retry. Deletion immediately removes
the key from reads and listings, but retained content-addressed blob bytes,
including historical versions, continue to count toward storage quota unless a
future garbage collector safely reclaims them.
SQLite reads
tinycloud_sql_schema_inspect uses a fixed query to list user tables, views,
indexes, and triggers. tinycloud_sql_query accepts exactly one SQLite
SELECT, optional bind parameters, and no write, DDL, attachment, pragma, or
multi-statement input. Both read tools request read authority for one exact
database.
Queries default to 100 rows and 1 MiB. Callers may request up to 1,000 rows and
4 MiB. Schema inspection is capped at 500 objects and 1 MiB. Limits are sent to
the node and verified again by the MCP operation; excess results fail rather
than being silently truncated. SQL BLOB parameters use
{ "type": "blob", "base64": "..." }; BLOB results add byteLength to the
same tagged representation.
SQLite writes
tinycloud_sql_execute is a destructive, non-idempotent tool. It accepts
exactly one INSERT, UPDATE, or DELETE, requires at least one positional
? placeholder, and requires one params value per placeholder. It rejects
literal-only mutations, CTEs, DDL, pragmas, attachments, and multiple
statements. The input must also set
acknowledgeDatabaseWideAuthority: true.
Delegated secret flow
- Call
tinycloud_secrets_getwith the secret name and scope. - If the result is
authority_required, send the owner itsapproval.urland one line saying what it allows. The server never silently falls back to owner authority. - In local stdio, pass the code or delegation the owner sends back, exactly as
sent, to
tinycloud_auth_import. In hosted mode the owner approves and says continue. - Retry
tinycloud_secrets_get. Requests are persisted so approval and retry can happen in separate client sessions. - If the result is
setup_required, follow its Secret Manager action to add the missing value, then retry.
Owner profiles
Owner-profile data access is disabled by default. A profile signed in withtinycloud onboard is an OpenKey owner profile, so select it explicitly and
pass both flags, as in Configure local stdio.
Omitting either flag keeps owner data execution closed.
