Skip to content

MCP Configuration

MidLyr’s MCP server is a Streamable HTTP remote MCP server, centrally hosted and managed. There is nothing to install or run locally — point any MCP-compatible client at the endpoint:

https://mcp.midlyr.com/mcp

MidLyr implements OAuth 2.1 with Dynamic Client Registration (RFC 7591), so your MCP client provisions itself on first connect. There is no app to register and no client ID or secret to paste — sign in interactively and you’re done.

PathUse whenHow it looks on the wire
OAuth (default)Any MCP client that natively speaks remote MCP — most desktop, IDE, and chat clients.Client registers itself via DCR, runs the OAuth flow on first connect, and sends Authorization: Bearer <oauth_token> afterwards. Nothing to configure beyond the URL.
Bearer API keyHeadless agents, CI/CD, server-to-server, restricted-scope tokens, or any flow where interactive sign-in isn’t possible.Generate an API key (mlyr_…) from the MidLyr dashboard and send it as Authorization: Bearer mlyr_….

A single header — Authorization: Bearer … — carries either token type, so client configurations don’t need to switch shape based on auth mode.

Treat API keys like passwords: store them in a secret manager or shell environment, never in committed config files.

ClientSetup styleConfig location
ChatGPTNative UICustom apps / connectors
Claude (Web, Desktop)Native UISettings → Connectors
Claude CodeCLI commandclaude mcp add
CursorConfig file~/.cursor/mcp.json or .cursor/mcp.json
VS CodeConfig file.vscode/mcp.json
CodexPrompt + CLI authCodex-managed MCP config
ZedConfig file~/.config/zed/settings.json
WindsurfConfig file~/.codeium/windsurf/mcp_config.json
Anything elseConfig fileClient-specific

Pick your client below for copy-paste configuration. Examples default to OAuth (just the URL); each tab shows the Bearer variant if you need a programmatic flow. Clients that don’t natively speak remote MCP use the mcp-remote bridge under the hood — you’ll see it in the relevant tabs.

These steps use ChatGPT on the web (chatgpt.com). The desktop app does not yet expose the Create app flow.

  1. Click your avatar → SettingsApps.

  2. Under Advanced settings, click Create app.

  3. In the New App dialog:

    • Name: MidLyr (or anything you like)
    • MCP Server URL: https://mcp.midlyr.com/mcp
    • Authentication: leave as OAuth
    • Check I understand and want to continue
  4. Open Advanced OAuth settings. Confirm Dynamic Client Registration (DCR) is selected, then make these two changes:

    1. Under Scopes → Default scopes, uncheck openid. Leave profile and email checked.
    2. Under OpenID support, uncheck OIDC enabled.
  5. Click Create, then open the new app from your Drafts and click Connect. Sign in to MidLyr in the popup.

If Connect fails with “There was a problem connecting…”, both openid and OIDC enabled must be off. Re-check both, delete the draft, and create the app again — the OAuth client re-registers from scratch.

Ask your MCP client to list available MidLyr tools. A working connection exposes:

ToolPurpose
browseRegulatoryLibrarySearch the regulatory library.
queryRegulationsPull the passages most relevant to a natural-language question.
readRegulatoryDocumentInspect document metadata and structure.
readRegulatoryContentPull source text by byte range.
complianceScreeningRun a compliance screening, waiting inline for the result by default.
getJobPoll a screening job for results.
listJobsList recent screening jobs for the current team.

If any are missing, double-check the endpoint URL and that auth completed successfully — most clients log the OAuth handshake or the response status of the first request.

QuestionAnswer
Do I need to register an OAuth app?No. MidLyr implements OAuth 2.1 Dynamic Client Registration (RFC 7591), so any compliant MCP client provisions itself on first connect.
Does the server support Streamable HTTP?Yes — https://mcp.midlyr.com/mcp is the Streamable HTTP endpoint. It’s the only transport you need.
Can I authenticate with an API key instead of OAuth?Yes. Send Authorization: Bearer mlyr_... with any request. Use this for headless agents, CI/CD, or restricted-scope integrations.
Where do I get an API key?Generate one from the MidLyr dashboard. See Authentication for details.
How do I clear stale OAuth credentials?For clients that use mcp-remote, delete the cached token directory: rm -rf ~/.mcp-auth. Native MCP clients usually have a “disconnect” or “reset” option in their connector UI.
My client doesn’t speak remote MCP — what now?Use the mcp-remote bridge — see the Zed, Windsurf, or Generic JSON tabs for the stdio config shape. It works for any stdio-only MCP runtime and handles OAuth on your behalf.