Add Intercom integration#177
Open
pagkt2 wants to merge 1 commit into
Open
Conversation
Proxy Intercom's official remote MCP server at https://mcp.intercom.com via the existing remotemcp package. Mirrors the Linear and pganalyze patterns so the integration auto-prefixes intercom_* on tool names and delegates configure / list / execute to the upstream server. - integrations/intercom: ~50-line wrapper around remotemcp.New plus tests - cmd/server/main.go: register intercom.New() in the integration list - config/config.go: defaultConfig entry + INTERCOM_ACCESS_TOKEN env mapping - README.md: env-var table entry Credentials: workspace Access Token under "access_token". OAuth path is not wired yet (Intercom MCP supports both, but PAT-style is sufficient for first-party data access). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Author
Local smoke test ✅Tested the integration locally against a real Intercom workspace. Results:
The remote MCP proxy handshake ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an
intercomintegration that proxies Intercom's official remote MCP server via the existingremotemcppackage. Same pattern aslinear.New("https://mcp.linear.app")(and the pganalyze migration in #156): a thin wrapper so tools are auto-prefixedintercom_*, andconfigure/tools/execute/healthydelegate to the upstream server.Intercom's MCP currently exposes 13 tools — universal (
search,fetch), conversations (search_conversations,get_conversation), contacts (search_contacts,get_contact), companies (list_companies,get_company), and articles (list_articles,search_articles,get_article,create_article,update_article). They'll surface automatically throughsearch/executeand follow upstream as Intercom expands tool coverage.Changes
integrations/intercom/intercom.go— ~50-line wrapper aroundremotemcp.New("intercom", "https://mcp.intercom.com"). Optional URL override for tests.integrations/intercom/intercom_test.go— constructor, name, configure delegation (incl. missing/empty token), healthy without config, execute against unreachable host.cmd/server/main.go— registerintercom.New()in the integration list (placed next tolinear.Newsince both are remote MCP proxies).config/config.go—defaultConfigentry withaccess_tokencredential,INTERCOM_ACCESS_TOKENenv mapping.README.md— env-vars table entry.Auth
Workspace Access Token from Intercom's developer hub — passed to
remotemcpascreds["access_token"], which wires it intoAuthorization: Bearer <token>via the existingbearerTransport. Required scopes per Intercom's MCP docs: read users/companies, read conversations, and read/write articles if the article tools are used. OAuth not wired (Intercom MCP supports both PAT and OAuth; PAT is sufficient for first-party data access — happy to follow up with an OAuth flow if useful).Test plan
INTERCOM_ACCESS_TOKEN=... ./switchboardthen callsearchwithintercomfilter — confirm 13 tools surfaceexecuteintercom_search_articleswith a query and verify a responseMade with Cursor