Skip to content

Manage the MCP Server

The MCP server connects external AI clients such as Codex and Claude Code so that they can call workspace features such as files, search, and team activity in a standardized way.

Before you begin

  • Required permission: Administrator
  • Check the member who will receive the connection key and the actions, spaces, and folder paths to allow.
  • First review the scope of the data that may be sent to the external AI provider.

Open the MCP settings

  1. Open the administrator page.
  2. Select AI Services > Tools & Integrations.
  3. Expand MCP Server.

Tools & Integrations page in AI Services

Management takes place in two steps. The administrator first sets the maximum scope allowed for the whole organization, and then sets a narrower scope of actions, spaces, and paths on each connection key for a member.


1. Organization-wide feature policy

Set the maximum allowed scope that applies to all external AI connections. A feature that is not allowed here cannot be turned on by a user in an individual key either.

Allowed toolsDescriptionCount
Basic informationChecks the current location, the time, and the work approval status.3
Read filesViews folders and file contents.5
Search files and documentsFinds content by file name or document content.2
Team informationViews team conversations and activity history. Related content may be sent to the external AI provider.2
Change files and foldersCreates, edits, and moves files and folders.5
TrashMoves only approved files to the recoverable trash. Folders are not supported.1

Each allowed tool consists of the detailed features (tools) below.

Basic information

  • Check work approval (getApprovalStatus): Checks whether a change may proceed · Required for approval flows
  • Check current location (getCurrentPath): Checks the virtual folder location currently being viewed
  • Check current time (getCurrentTime): Checks the current date and time of the server

Read files

  • View folder contents (listResources): Shows the files and subfolders inside a folder
  • Read files (readFile): Reads file contents or provides the download address of a large file
  • Read large text files (readTextFileRange): Reads a large text file in parts
  • View favorites (listFavoriteResources): Shows the documents registered as favorites
  • View recent documents (listRecentResources): Shows recently opened documents

Search files and documents

  • Find files (internalFindFiles): Finds files by name or file type
  • Search document contents (internalSearchContent): Quickly searches for the content you want inside documents

Team information

  • Search team conversations (searchChat): Finds content in the team conversations that you can view
  • View team activity (getAuditLogs): Shows the work records of the teams that you can view

Change files and folders

  • Edit part of a text file (applyPatch): Edits only the required part of the text so that it does not conflict with other changes
  • Create folders (createFolder): Creates a new folder
  • Create files (createFile): Creates a new file
  • Edit file contents (updateFile): Edits the contents of an existing file
  • Move files and folders (moveFile): Moves a file or folder to another location

Trash

  • Move files to trash (deleteFile): Moves a file to the trash after approval

You can adjust all tools at once with Select all/Clear all, or set each tool individually. After setting them, select the Save button.

2. External AI connection keys for members

In Member external AI connection keys, the administrator can select the target member and issue a key for each purpose. The actions and spaces allowed on a key cannot exceed the organization policy and the existing permissions of that member. Select Issue key to create a new key.

When you issue a key, you can set the following.

ItemDescription
Member receiving this keySpecifies the user account that connects with this key.
Key nameEnter a name that identifies the purpose of the key.
Expiry (optional)Specifies the period during which this key is valid.
Actions allowed for this keyAmong the tools allowed by the organization, narrow the selection to only the features that this key actually uses.
Spaces allowed for this keySpecifies the team folder or personal folder that this key can access.
Allowed paths (optional)Specifies the folder paths to which access is allowed.

When you issue a key, the raw key, the MCP endpoint, and the CLI setup command are provided together. The raw key is shown only once right after it is issued, so save it in a safe location immediately.

MCP endpoint: https://my-company.setfn.me/api/mcp

First set the issued key in the SETFN_MCP_TOKEN environment variable, then register the server with the command for the client you use.

# Codex CLI
codex mcp add setfn --url "https://my-company.setfn.me/api/mcp" --bearer-token-env-var SETFN_MCP_TOKEN
# Claude Code
claude mcp add --transport http setfn "https://my-company.setfn.me/api/mcp" --header "Authorization: Bearer $SETFN_MCP_TOKEN"

You can copy the settings above as they are with the Copy CLI setup button. Once registered, Codex or any other MCP client can call workspace features right away within the permission scope of the issued key.

Even after a key is issued, you can rotate or revoke it at any time.

ActionMeaning
RotateIssues a new key with the same settings (actions, spaces, paths). The existing key stops working immediately. Use it when the key may have been exposed.
RevokeInvalidates the key immediately. No request is authenticated with this key anymore.

When you replace a key, you must also update the SETFN_MCP_TOKEN value and the key registered in the client to the newly issued value.

Security precautions

  • Exposing the MCP endpoint directly to the outside is not recommended. If an external integration is required, apply HTTPS, authentication tokens, IP restrictions, and permission scope limits, and limit the callable tools to the required scope only.
  • Tools with a large impact, such as changing files, moving files to the trash, and running workflows, are safest when used only on an internal network or a trusted network.
  • AI tools that a user connected through the sign-in and consent screen (OAuth connections) are disconnected after any action that ends all sessions of that account, such as a password change or reset, account deactivation or deletion, or a two-factor authentication change or reset, and the user has to connect again from the AI tool. Connection keys issued on this screen and MCP connection keys users created themselves are kept, so revoke them if needed.