chat.start and chat.execute, bound to the agent in the connection’s environment.
The setup requires:
- Create the connection in Artemis and copy its resource and metadata URLs.
- Choose an authentication method: an API key or CIMD.
- Configure the MCP client with the resource URL and the credential.
- Verify the connection with a complete conversation.
chat.start to open a session, keeps the returned sessionId, and passes it to chat.execute to continue the conversation with the agent.
Important considerations
- The direction is inbound: An MCP connection lets an external client call your agent. To let your agent call tools on an external MCP server, use MCP tools instead.
- This isn’t the Arch MCP server: Arch MCP gives a coding assistant platform-building tools. An MCP connection gives a client only chat with one deployed agent.
- The connection fixes the scope: The connection ID is a lookup key. It doesn’t let a client select another tenant, project, environment, or deployment.
- A visible tool isn’t permission: Artemis checks the caller’s permission on every tool call, not when the client lists the tools.
- Calls have deadlines: Each chat call must finish within a bounded request time. Long-running or human-approval work needs an asynchronous workflow pattern, not an open MCP request.
Prerequisites
Confirm these before you start.- Artemis project access with permission to open Deployments > Channels and Deployments > API Keys, and a deployed agent in the environment you intend to bind.
- An MCP client that can connect to a remote MCP server over HTTPS.
- For CIMD authentication, an MCP client that supports Client ID Metadata Documents, and MCP OAuth/OIDC enabled for your workspace by a workspace administrator.
Create the connection in Artemis
Create the connection first. Artemis generates the resource URL when you create it.- Open Artemis and select the project.
- Go to Deployments > Channels > MCP.
- Select Create MCP connection. The New MCP Connection dialog opens.
-
Configure the fields:
- Select Create.
- Open the connection’s Configuration tab and copy the resource URL and the protected-resource metadata URL.
Choose an authentication method
Select the method your MCP client supports.- API Key
- CIMD
Use a platform API key when the client can send a fixed request header.
- Go to Deployments > API Keys > Platform Keys and create a key.
- Grant the key Chat Execute and MCP Tools access for this project.
- Store the key in your client’s secret store. Don’t paste it into prompts, scripts, or tickets.
Configure the MCP client
Point the client at the connection and give it the credential.- Add a remote MCP server in your client, and paste the connection’s resource URL as the server endpoint.
- Configure the credential:
- API Key: Set the client to send the key in the
X-API-Keyrequest header. - CIMD: Let the client discover sign-in from the protected-resource metadata URL, then complete the OAuth sign-in.
- API Key: Set the client to send the key in the
- List the server’s tools. Confirm the list contains only
chat.startandchat.execute. Their descriptions include the project and the entry agent.
Verify the connection
Each check exercises a different part of the MCP path.- Call
chat.startwith a test message. Confirm the response contains the agent’s reply and asessionId. - Call
chat.executewith the samesessionIdand a follow-up message. Confirm the agent continues the same conversation. - Open Sessions in the project. Confirm the conversation appears in the environment you bound.
- Call a tool with a key that lacks Chat Execute or MCP Tools access. Confirm Artemis rejects the call.
- Deactivate the connection and call
chat.executeagain. Confirm Artemis rejects the call.
chat.start and chat.execute round trip.
MCP behavior
Artemis applies these rules to every call.Security and environment boundaries
The MCP endpoint accepts calls from outside Artemis, so protect it deliberately.- API keys: Grant only Chat Execute and MCP Tools for the project, store keys in the client’s secret store, and rotate a key immediately if someone exposes it.
- OAuth clients: Publish client metadata documents only at HTTPS URLs you control.
- Revocation: Deactivate the connection to stop all access through it. Delete or rotate the API key to stop a single client.
- Examples and screenshots: Use placeholders for hosts, connection IDs, and keys. Don’t share real values.
- Environments: Use separate connections and API keys for development, staging, and production.
Manage the channel connection
Open a connection from Deployments > Channels > MCP to manage it. Use the Configuration tab to copy the resource and metadata URLs, and the connection page to update the display name and environment binding, and to activate or deactivate the connection. A connection on the working copy changes as you edit the agent. Bind it to a published environment before production.Troubleshoot connection issues
Most failures trace to the resource URL, the credential, or the connection state.Related articles: