Agents and MCP
Any MCP client can read and push artifacts in 1dotmd: the Claude app, Claude Code, Codex, Cursor, Gemini CLI, Grok Bot, Hermes, Muse Code, OpenClaw, OpenCode and others. An agent connects to https://api.1dotmd.ai/mcp with its agent key and only ever acts through the grants you give it.
1. Register the agent and issue a key
- In the app, open Agents and click New agent. Pick the provider (Claude Code, Codex, Cursor, Grok Bot, Hermes, Muse Code, OpenClaw, OpenCode or other), optionally the model and client, and a name such as “Claude Code on my laptop”.
- Click Issue key. The key (
1dk_…) is shown once; copy it into the agent’s configuration straight away. 1dotmd keeps only a fingerprint. Keys expire after 30 days by default and can be revoked at any time. - Create a grant for the agent: the context or folder it may work in, read or write, and an expiry. Without a grant the agent can identify itself but sees nothing.
2. Connect your client
ChatGPT
ChatGPT adds a remote MCP server as a custom MCP server under Plugins (Business and Enterprise workspaces, on the web) and connects through a sign-in. Enter https://api.1dotmd.ai/mcp as the server URL and choose OAuth as the authentication; ChatGPT identifies itself to 1dotmd on its own, so there is no client ID or secret to fill in. When you connect, a 1dotmd page opens: sign in, choose the workspace, keep or change the agent’s name (ChatGPT), pick how long the connection lasts and approve. ChatGPT receives an agent key that never passes through your hands. The agent appears under Agents like any other and sees nothing until you create a grant for it. Revoking its key, or the connection reaching its end, makes ChatGPT ask you to sign in again; connecting again to the same agent keeps its grants.
Claude app
The Claude desktop app, claude.ai and the phone apps share one list of connectors on your Claude account. Open Customize, then Connectors, click Add and Add custom connector. Name it 1dotmd, enter https://api.1dotmd.ai/mcp as the server URL and continue. Under Authentication you have two options. Sign in (now or when needed) opens the 1dotmd page where you sign in, choose the workspace and approve; Claude receives an agent key of its own and you never copy anything. No sign in takes a key you issued in the app: under Request headers add a header named Authorization with the value Bearer 1dk_your_key; click Add. Claude connects from Anthropic’s cloud and stores the header encrypted. On Team and Enterprise plans an owner adds the connector under Organization settings and everyone who connects shares that header, so give that agent a narrow grant; with the sign-in option each person connects as their own agent instead.
The desktop app can also keep the key on your machine: a local bridge forwards a stdio connection to https://api.1dotmd.ai/mcp. Without the header arguments below it signs you in through your browser the first time and keeps the key it receives; with them it uses a key from the app. Add it to ~/Library/Application Support/Claude/claude_desktop_config.json (Windows: %APPDATA%\Claude\claude_desktop_config.json) and restart the app; it needs Node 18 or newer:
{
"mcpServers": {
"1dotmd": {
"command": "npx",
"args": ["-y", "mcp-remote@latest", "https://api.1dotmd.ai/mcp", "--transport", "http-only",
"--header", "Authorization:${AUTH_HEADER}"],
"env": { "AUTH_HEADER": "Bearer 1dk_your_key" }
}
}
}If the app cannot start the server (spawn npx ENOENT in ~/Library/Logs/Claude/mcp-server-1dotmd.log), give the full path of npx as the command (which npx) and add PATH with that folder to env.
Claude Code
claude mcp add --transport http 1dotmd https://api.1dotmd.ai/mcp \
--header "Authorization: Bearer 1dk_your_key"Add --scope user to make it available in every project. To share the configuration with a team without sharing the key, put it in the project’s .mcp.json and keep the key in an environment variable:
{
"mcpServers": {
"1dotmd": {
"type": "http",
"url": "https://api.1dotmd.ai/mcp",
"headers": { "Authorization": "Bearer ${ONEDOTMD_KEY}" }
}
}
}Codex CLI
Add the server to ~/.codex/config.toml and export the key as an environment variable (export ONEDOTMD_KEY=1dk_your_key):
[mcp_servers.onedotmd]
url = "https://api.1dotmd.ai/mcp"
bearer_token_env_var = "ONEDOTMD_KEY"Cursor
Create .cursor/mcp.json in the project (or ~/.cursor/mcp.json for all projects):
{
"mcpServers": {
"1dotmd": {
"url": "https://api.1dotmd.ai/mcp",
"headers": { "Authorization": "Bearer ${env:ONEDOTMD_KEY}" }
}
}
}Gemini CLI
gemini mcp add --transport http \
--header "Authorization: Bearer 1dk_your_key" 1dotmd https://api.1dotmd.ai/mcpOr in ~/.gemini/settings.json:
{
"mcpServers": {
"1dotmd": {
"httpUrl": "https://api.1dotmd.ai/mcp",
"headers": { "Authorization": "Bearer 1dk_your_key" }
}
}
}Grok Bot
Grok Bot adds MCP servers from the conversation rather than a configuration file. Ask it to add a custom MCP server named 1dotmd at https://api.1dotmd.ai/mcp; when it asks how the server authenticates, give it the header Authorization with the value Bearer 1dk_your_key. It stores the header on the server entry. xAI’s terminal agent, Grok Build, takes the same URL and header through grok mcp add or ~/.grok/config.toml; see xAI’s documentation for the current flags.
Hermes
Add the server to ~/.hermes/config.yaml; Hermes connects to it at startup:
mcp_servers:
1dotmd:
url: "https://api.1dotmd.ai/mcp"
headers:
Authorization: "Bearer 1dk_your_key"Muse Code
Edit ~/.config/muse/settings.json (create it if it does not exist; the schema_version field is required):
{
"schema_version": 1,
"mcp_servers": {
"1dotmd": {
"transport": "streamable_http",
"url": "https://api.1dotmd.ai/mcp",
"headers": { "Authorization": "Bearer 1dk_your_key" }
}
}
}Muse Code is in beta and its settings schema may still change; check Meta’s documentation if the file is rejected.
OpenClaw
In ~/.openclaw/openclaw.json under mcp.servers (or with openclaw mcp set). Export the key as ONEDOTMD_KEY in the environment of the gateway process:
{
mcp: {
servers: {
"1dotmd": {
url: "https://api.1dotmd.ai/mcp",
transport: "streamable-http",
headers: { Authorization: "Bearer ${ONEDOTMD_KEY}" }
}
}
}
}OpenCode
Add the server to opencode.json in the project (or your global OpenCode configuration):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"1dotmd": {
"type": "remote",
"url": "https://api.1dotmd.ai/mcp",
"enabled": true,
"headers": { "Authorization": "Bearer {env:ONEDOTMD_KEY}" }
}
}
}Any other MCP client
1dotmd speaks Streamable HTTP. Point the client at https://api.1dotmd.ai/mcp and send the header Authorization: Bearer 1dk_your_key with every request. Requests without a valid key are answered with 401. A client that supports the MCP sign-in flow (OAuth with PKCE, dynamic client registration or a client ID metadata document) needs no key in hand: it follows the 401 to the sign-in, you approve on the 1dotmd page it opens, and it receives its key as the access token. Either way the key is the agent’s, and grants decide what it can reach.
3. What the agent can do
| Tool | Does |
|---|---|
whoami | Your agent identity, the workspace that owns you, your key's expiry and every grant you hold. Call it first. |
list_contexts | The contexts you can reach through grants, with the role and folder each one covers. |
list_artifacts | Artifacts and folders at an address (a context or a folder), optionally at an earlier version. |
read_artifact | One artifact by address: text comes back as text, small binary files as base64. |
write_artifact | Create or replace one text artifact and push it as a new version, with a note. |
push_artifacts | Several put, delete and move operations in one version, relative to a context or folder. |
pull_context | A whole context, or one folder, as your grant reads it, in one call. Add @vN for an earlier version. |
history | The versions of a context, newest first, with notes and provenance. |
All tools take 1dotmd:// addresses, so you can hand an agent an address from the app (Copy address) and it knows exactly what you mean. A typical first prompt:
Read 1dotmd://northwind/product/specs/roadmap.md, summarise the open questions
into 1dotmd://northwind/product/notes/roadmap-questions.md and push it with a note.Good practice
- Scope grants narrowly. A write grant on
notes/lets an agent draft without touching the specs next to it. - Let agents pass
expected_version. The tools accept the version the agent read before editing; if someone pushed in between, the push is refused instead of overwriting. - Review history and activity. Every agent push carries its provider, model, grant and key, and every denied attempt is recorded too.
- Rotate keys. Issue a new key before the old one expires and revoke the old one from the app; revocation is immediate.
Using the HTTP API instead
The same key works as a bearer token on the HTTP API at https://api.1dotmd.ai, for scripts and clients that do not speak MCP.