Skip to content

Connect an MCP client

EkLine serves a Model Context Protocol (MCP) server, so you can work with EkLine from your own AI client without switching to the web app. Describe what you want to your client (Claude Code, Claude on the web, Cursor, or another) and it calls EkLine for you: start an agent session, find past work, ask how a feature works, or set your organization up.

For every tool and its parameters, see MCP tools.

  • You are a member of an EkLine organization.
  • You use an MCP client that connects over HTTP and lets you set a request header. Claude Code, Claude on the web, Claude Desktop and Cursor all qualify. See Supported clients.

Your client authenticates with a personal API key. The key acts as you, in one organization: every session you start through it is recorded under your name, and no other member can see or use it.

  1. Open Settings > Profile > Personal API keys, or go directly to your API keys.

  2. Confirm the organization named on the page is the one you want the key to act in. A key works in a single organization. To create a key for another organization, switch to it first.

  3. Click Create key. Under What is it for?, enter a name you will recognize later, such as Claude Code on my laptop, and click Create key.

  4. The Set up your client dialog shows the key once, inside a setup snippet for each client. Click your client’s tab, click Copy setup, and keep the snippet somewhere safe, such as a password manager. Then click Done.

A key looks like ek_<id>_<secret>. The <id> half is not secret (you see it in your key list long after the secret is gone), but the whole value is a credential. Treat it like a password and never commit it to a repository.

The Set up your client dialog gives you a setup snippet for each client with your key filled in. After you close it, the Connecting a client section of the API keys page shows the same snippets with YOUR_KEY where the key goes. Use the snippet for your client and follow the instructions below.

The server URL is https://ekline.io/api/mcp.

Run this in your terminal, then open a new session, since Claude Code loads MCP servers at start:

Terminal window
claude mcp add --transport http ekline \
https://ekline.io/api/mcp \
--header "Authorization: Bearer ek_<id>_<secret>"

Once the client reconnects, it lists the EkLine tools. That confirms your key resolved and the server is reachable.

Connect from Claude on the web or Claude Desktop

Section titled “Connect from Claude on the web or Claude Desktop”

Claude on the web and Claude Desktop do not take the command line setup. Add EkLine as a custom connector instead, with your key sent as a request header. Both use the same connector dialog.

  1. Open Settings > Connectors and click Add > Add custom connector.

  2. Give the connector a name, such as ekline, enter the server URL https://ekline.io/api/mcp, and click Continue.

    The Add custom connector dialog in Claude settings, with the connector named ekline and the server URL https://ekline.io/api/mcp entered
  3. Under Authentication, select No sign-in. Claude detects this for EkLine, which authenticates with a key rather than a sign-in flow.

  4. Under Request headers, add a header named Authorization with the value Bearer ek_<id>_<secret>, then click Connect.

    The custom connector authentication panel in Claude with No sign-in selected and an Authorization request header set to a Bearer token

The EkLine tools then appear under the connector’s Tool permissions, which confirms your key resolved.

Ask your client to use the create_session tool, and describe the task in your own words, including any references you have, such as a pull request, a ticket, or a doc path. For example:

Use EkLine to document the retry behavior added in PR #4821. The reasoning is in the linked ticket.

The tool takes two inputs:

InputRequiredDescription
promptYesThe task, in your own words, including the reasoning behind it.
agentNoWhich agent runs the session: docs (the default) for documentation work, or marketing for a Marketing Agent session.

create_session returns a session id and a link to follow the work in the app. The session appears in EkLine with you as its author.

Ask your client to use the get_session_status tool with the session id that create_session returned. It reports the current status and the session’s most recent messages, so your client can tell you what the agent is working on rather than only that it is busy.

The status is one of:

StatusMeaning
workingThe agent is still running the session.
completedThe session finished successfully.
failedThe session ran into a problem, or has had no activity for more than 15 minutes without finishing.
cancelledThe session was stopped.

Ask for the status whenever you want an update, including while the session is still running. A session keeps running to completion even after create_session returned, so checking in does not interrupt it.

To open the session yourself, follow the link in either tool’s response. Docs sessions open in the editor; marketing sessions open in the Marketing Agent.

A session does not end when create_session returns. To correct a running session, add a requirement, or hand it a reference you left out, ask your client to use the send_session_message tool with the session id and your message:

Tell session abc123 to also cover the retry limits, which are in the linked ticket.

The tool takes two inputs:

InputRequiredDescription
sessionIdYesThe session to send the message to. Use the id that create_session returned, or copy it from your session list.
promptYesWhat to tell the agent, in your own words, including the reasoning behind it.

The message joins the session you named rather than starting a new one. If the session id is wrong, the tool reports that the session was not found instead of creating one.

Ask your client to use the list_sessions tool to see your organization’s recent sessions: what each was asked to do and when it was last active. Many sessions list no pull request even when they opened one. To check, call get_session_details with the session id, or open the session.

Use it before you start a new session, to check whether the work is already under way. Paste a pull request, merge request, Jira, or session link and the tool returns the sessions related to it, or describe what you are looking for in plain words.

list_sessions does not report whether a session is still running. It shows when a session was last active and whether someone marked it done. To read a session’s live status, call get_session_status with its id.

Ask your client to use the get_session_details tool with a session id. It returns what the session was asked, where it came from (the editor, Slack, or a scheduled job), the pull requests it opened, and its conversation, oldest first.

Each pull request shows its number, title, state, link, and the branch it went into. The state is the one EkLine last recorded, and the answer says when that was.

Use it with list_sessions to check what earlier work did before you repeat it. For example, before you ask for a guide, check whether an earlier run of a scheduled job already wrote it.

A long conversation comes back with messages from the middle left out. The request and the last report are always included, and the answer says how many messages were left out. To read the rest, open the session.

To follow a session that is still running, use get_session_status instead.

Paste a link to a journey, one of its reports or runs, a collection or one of its reports, or a shared report into your client and ask what it says. Your client reads it with the tool that matches the link, such as get_journey_report or get_collection_report. For example:

What does this report say about how often we’re recommended, and what should we fix first? https://ekline.io/journeys/collections/abc123/reports/def456

The tools read reports from your own organization only. A link from another organization, or a shared link that was turned off, reads as not found.

Reading a report doesn’t change it. A collection run that’s still going shows how many answers are in, and its written summary appears after the run finishes. If your client doesn’t list these tools, contact support@ekline.io. See MCP tools for every journeys and collections tool.

Ask your client to group published journeys into a collection with create_collection, rename it or change its journeys with update_collection, and run it with run_collection. A run sends each journey’s questions to the AI agents it names and uses credits, so ask for one only when you want it. When it finishes, read the report with get_collection_report.

To share a finished report with someone outside EkLine, ask for a link: share_collection_report returns the report’s link, and anyone with it can open the report without signing in. To turn a link off, open the report in EkLine and click Share, then Stop sharing. EkLine’s own agents can create, change and run collections, but only you can make a share link.

The Buyer questions collection’s journeys can’t be changed. To delete a collection, use EkLine.

Ask your client to add a reference document from text with add_knowledge_base_document, such as a product brief or a glossary in Markdown, and to list your reference documents with list_knowledge_base_documents. A document added this way is processed like an uploaded file: EkLine gives it a title and a summary. Both agents use it in sessions that start after it’s ready, and the list shows whether each document is ready. The tool refuses text that’s already a reference document.

To add a file that isn’t text, such as a PDF or a Word document, or to delete a document, use Settings > Organization > Knowledge Base. EkLine’s own agents can list your reference documents, but only you can add one. If your client doesn’t list these tools, contact support@ekline.io.

Ask your client to use the search_ekline_docs tool with a question about EkLine, such as how a feature works or what a reviewer rule means. It returns the relevant sections of the product documentation and a link to each page, so your client answers from the docs rather than from memory.

Two tools write settings that apply to your whole organization, not only the current session. Sessions that start after the change use them.

Ask your client to use the update_company_profile tool to set your organization’s company profile. The Marketing Agent reads it in every session, and the Docs Agent reads it when company context is turned on for your organization. The tool sets these fields:

FieldWhat it describes
companyProfileWhat your company does.
domainYour company’s website, such as acme.com, without https:// or www.. Journeys reports use it to recognize your pages. Agents don’t read it.
keyFeaturesThe product capabilities worth naming.
audienceWho your documentation is written for.
competitorsWho your company is compared against, in your own words. The named competitor list is changed as described in the next section.
toneAndVoiceHow your documentation should sound.
visualStyleHow images the agents make should look: your brand colors, one per line as a role and a hex code (Primary: #cb2e2f), then any notes on style.
additionalContextAnything else the agent should know.

Each field you set replaces its current value in full. Fields you leave out keep their current value, and the tool reports what each changed field held before, so you can confirm the result. To clear a field, use EkLine settings.

Because each field you set replaces the old value, ask your client to read the profile with get_company_profile first.

See and change the company profile in Settings > Organization > Company Profile. If you don’t see it, contact support@ekline.io.

Change brand names, competitors, personas and documentation sites

Section titled “Change brand names, competitors, personas and documentation sites”

Ask your client to use the update_company_profile tool to add or change rows in your company profile’s Brand names, Competitor profiles, Personas and Documentation sites. Name the row you want changed as it appears in your profile. For example:

Rename the brand name Acme Cloud to Acme Platform, add Globex and Initech as competitors, and rewrite the Support Lead persona to say they answer tickets but don’t change billing.

The tool makes every change you ask for in one request or none of them, including changes to the fields above. If one change can’t be made, such as a persona name that doesn’t exist or a competitor that’s already listed, it changes nothing and says which change failed and why. When the changes are made, it reports each row as it was and as it is now.

The agents read these rows with the rest of your company profile, and Journeys reports use your brand names and competitor profiles to find your company and its competitors in AI answers. To remove a row or clear a field, use EkLine settings. See MCP tools for the fields each row takes.

Ask your client to use the create_rules tool to add a standing instruction the agents follow. Give it a name, the instruction itself, and the type of rule:

  • A general rule (the default) applies to every task the agent works on.
  • A review rule is applied to every documentation change the agent makes before it opens or updates a pull request.

You can also pass file globs, such as docs/**/*.mdx, to limit a rule to matching files. Omit them to apply the rule everywhere.

create_rules only adds rules. If you ask for a rule whose name your organization already uses, the tool refuses and names the existing rule rather than creating a duplicate. To change, disable, or delete a rule, use EkLine settings.

Manage rules in Settings > Docs Agent > Rules.

  • Keys are personal. A session you start through your key is recorded under your name in the app, the same as a session you start in the web app.
  • Membership is checked on every call. If you leave an organization, your keys for it stop working on the next request, and you do not need to revoke them first.
  • Revoking takes effect immediately. To revoke a key, open your Personal API keys page and click Revoke next to it. The key stays in your list, marked revoked, and stops authenticating on its next use.
  • Your key is never forwarded. EkLine does not pass it to the agent.
ClientSupported
Claude CodeYes
Claude on the webYes, as a custom connector. See Connect from Claude on the web or Claude Desktop.
Claude DesktopYes, as a custom connector. See Connect from Claude on the web or Claude Desktop.
CursorYes
ChatGPTNot yet. ChatGPT connectors sign in with OAuth 2.1 and do not accept an API key.
Other clients that let you set a request header (VS Code, Windsurf, and others)Yes
SymptomCause and fix
The client lists no EkLine toolsThe key did not resolve. Check that the Authorization header reads Bearer followed by your full key, that the key is not revoked, and that you are still a member of the organization it was created for. A revoked, removed, or unknown key all produce an empty tool list.
The claude mcp add command does not work in a browserThat command sets up the Claude Code command line. In Claude on the web or Claude Desktop, add EkLine as a custom connector instead. See Connect from Claude on the web or Claude Desktop.
create_session returns an error about reaching EkLineEkLine could not be reached and no session was started. Try again.
create_session reports a session was accepted but its id did not arriveThe session is running but its id did not return in time. Find it in your session list rather than starting another one.
get_session_status says it could not read the sessionEkLine could not be reached to read the session. The session may still be running, so try again rather than starting a new one.
get_session_details says it could not read the session’s pull requestsEkLine could not read them this time. It does not mean the session opened none. Try again before you rely on the answer.
send_session_message says the session was not foundThe session id is wrong, or the session belongs to another organization. Check the id in your session list.
send_session_message returns an error about reaching EkLineEkLine could not be reached and the message was not sent. Try again.

Built on Potluck Docs, our open source template.