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
- Add the thewiki server.
- Start the OAuth flow.
- Approve access in your browser.
- Confirm the server status.
codex mcp add thewiki --url https://thewiki.dev/mcp
codex mcp login thewiki
codex mcp list
Connect Claude Code
- Add the thewiki server to your user configuration.
- Start Claude Code.
- Run
/mcp. - 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_spacescreate_space
Use these tools for documents:
list_documentsread_documentcreate_documentupdate_document_contentrename_documentmove_documentdelete_documentpublish_document
Use these tools for folders:
create_folderrename_folderdelete_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.