thewiki Docs All spaces

Connect an AI agent with MCP

Connect one Model Context Protocol client to all your thewiki organizations.

Endpoint

Use this account endpoint:

https://thewiki.dev/mcp

Sign in once with your Glasstack account. The server refreshes your organization access during normal tool calls.

A new organization does not require another sign-in. A new organization does not require a Codex restart.

Connect Codex

  1. Add the thewiki server.
  2. Start the OAuth flow.
  3. Approve access in your browser.
  4. Confirm the server status.
codex mcp add thewiki --url https://thewiki.dev/mcp
codex mcp login thewiki
codex mcp list

Connect Claude Code

  1. Add the thewiki server to your user configuration.
  2. Start Claude Code.
  3. Run /mcp.
  4. Approve access in your browser.
claude mcp add --transport http --scope user thewiki https://thewiki.dev/mcp

Select an organization

Run list_spaces before a scoped operation. The result contains each organization slug and its spaces.

Supply the organization slug and the space slug to each scoped tool. The server checks your current organization membership before each operation.

Available tools

Use these tools for spaces:

  • list_spaces
  • create_space

Use these tools for documents:

  • list_documents
  • read_document
  • create_document
  • update_document_content
  • rename_document
  • move_document
  • delete_document
  • publish_document

Use these tools for folders:

  • create_folder
  • rename_folder
  • delete_folder

Update a document safely

Read the document before each update. Pass its current version to update_document_content.

The server reports a conflict when another person or agent saves a newer version. Read the document again before you retry.

Save and publication are separate operations. Run publish_document only when public readers must see the current version.