serve7-mcp-connectors
Serve7 MCP Connector Library
Amazon Connect AI Agents と Bedrock AgentCore 向けの再利用可能な MCP ツールです。7つの汎用コネクタ —顧客検索、サポートチケットの作成、チケット状況の確認、予約の設定、CRM レコードの更新、ナレッジの取得、タスクの作成— をここで一度構築し、プロジェクトごとにゼロから組み立てるのではなく、すべての Serve7 カスタマーエンゲージメントで再利用します。
これは 2026年秋の co-op アイデアリスト(「Serve7 MCP Connector Library」)のプロジェクト #6です。動作する初版です。現在、すべてのコネクタがインメモリのモックバックエンドに対してエンドツーエンドで動作します(AWSアカウントも実CRMも不要で、試すための認証情報もいりません)。後で実バックエンドに差し替えられるよう、きれいな接続境界も用意しています。
アダプター経由にする理由(直接接続しない理由)
各コネクタのビジネスロジック(スキーマ検証、何をエラーとみなすか、入出力されるフィールド)は src/connectors/*.ts にあり、具体的なバックエンド SDK と直接通信することはありません。その代わりに src/adapters/types.ts にある5つの小さなインターフェース — CrmAdapter・TicketingAdapter・SchedulingAdapter・KnowledgeAdapter・TaskAdapter — のいずれかを呼び出します。現時点ではこれらはすべてインメモリで実装されています(src/adapters/mock.ts)。将来、実際の Salesforce/ServiceNow/Connect-Cases/Bedrock-Knowledge-Base バックエンドを接続するときには、新しいアダプタークラスを1つ作成してスイッチ文 (src/adapters/index.ts) を1つ切り替えるだけで済みます。コネクタコード、そのテスト、エージェントが見る MCP ツール定義は一切変更する必要はありません。docs/adding-a-real-adapter.md を参照してください。
MCP client (Claude Desktop, Bedrock AgentCore, ...)
│ tool call: customer_lookup({ customerId: "cust-1001" })
▼
src/server.ts (stdio) or src/http-server.ts (deployed)
│ registers every connector as an MCP tool
▼
src/connectors/customer-lookup.ts
│ validates input (zod), calls adapters.crm.lookupCustomer(...)
▼
src/adapters/index.ts → mock.ts today, a real adapter laterRelated MCP server: CRM Agent Tools
プロジェクト構成
src/
connectors/ one file per MCP tool — schema + business logic only
adapters/ the CRM/ticketing/scheduling/knowledge/task interfaces,
plus the in-memory mock implementations
mock-data/ seed data the mock adapters serve
mcp-server-factory.ts registers every connector on an McpServer instance
server.ts stdio entrypoint (local dev, Claude Desktop, Claude Code)
http-server.ts Streamable-HTTP entrypoint (deployed, e.g. behind Lambda)
tests/ one test file per connector + a registry sanity test
deploy/ Dockerfile + AWS SAM template for a Lambda deployment
docs/ per-connector reference + how to add a real adapterローカルでの実行
npm install
npm test # 29 tests, all against the mock adapters
npm run typecheck # strict TypeScript, zero `any` in connector code
npm start # stdio MCP server — Ctrl+C to stop
npm run start:http # HTTP MCP server on :8080 (curl http://localhost:8080/health)
npm run smoke # real MCP client over stdio, calls all 7 tools end to end
npm run smoke:http # same, over HTTP — start:http must be running firstClaude Desktop / Claude Code への組み込み
MCP クライアントが stdio サーバーを向くようにします。たとえば Claude Desktop の claude_desktop_config.json で次のように設定します:
{
"mcpServers": {
"serve7-connectors": {
"command": "npx",
"args": ["tsx", "/absolute/path/to/serve7-mcp-connectors/src/server.ts"]
}
}
}その後、「顧客 cust-1001 を検索」や「緊急休業の案内について調べるナレッジ記事はありますか?」のように質問してください。customer_lookup / retrieve_knowledge がモックデータに対して呼び出されます。
本番利用のためのデプロイ(例: Bedrock AgentCore から)
deploy/README.md を参照してください。sam deploy を使用して、IAM 認証付きの Function URL の背後にコンテナイメージ Lambda を構築します。
8つ目のコネクタを追加する
defineConnector()を使用してsrc/connectors/my-new-tool.tsを作成します。既存のコネクタ(例:create-task.ts)と同じ形状に倣います。それを
src/connectors/index.tsのCONNECTORS配列に追加します。tests/内にテストファイルを追加します。docs/connectors.mdにドキュメントを追加します。
server.ts と http-server.ts、およびレジストリテストはすべて自動的に認識します。他に触るものはありません。
この初版で意図的にスコープ外にしているもの
元のプロジェクト概要によると、各コネクタは最終的に、認証方式(アダプターレイヤーで完了)、デプロイテンプレート(deploy/ で完了)、ドキュメント(未完了ではありません、docs/ にあります)も含むべきですが、それらはすべて同梱されています。まだ構築されておらず、フォローアップの価値があるのは、少なくとも1つのバックエンド向けの実アダプター(これによりオールモックが終わります)と、デプロイされた HTTP エンドポイントから呼び出すライブな Bedrock AgentCore エージェントのエンドツーエンドでの配線です。
Available Tools
7 toolscreate_support_ticketCreate Support TicketA
File a new support ticket for a customer when their issue can't be resolved in the current interaction. Use retrieve_status afterward to check progress on a ticket already created.
Inputs: subject (required), customerId (required), description (required), priority.
create_taskCreate TaskA
Create a follow-up task for a human teammate — e.g. 'call customer back with a refund confirmation' — when something needs manual handling after the AI-driven part of the interaction ends.
Inputs: title (required), assignee (required), description (required), dueDate.
customer_lookupCustomer LookupA
Look up a customer record by customer ID, email, or phone number. Returns account status and tier so an agent (human or AI) can personalize the interaction. Call this first in nearly every flow.
Inputs: email, phone, customerId.
retrieve_knowledgeRetrieve KnowledgeA
Search the knowledge base for articles relevant to a customer's question. Returns the top matches with a relevance score and source URL so responses can be grounded and cited.
Inputs: query (required), topK.
retrieve_statusRetrieve Ticket StatusA
Check the current status of a previously created support ticket by its ticket ID. Use this before telling a customer their issue is still 'in progress' vs resolved.
Inputs: ticketId (required).
schedule_appointmentSchedule AppointmentB
Book an appointment (call-back, in-branch visit, technician visit, etc.) for an existing customer.
Inputs: startTime (required), customerId (required), serviceType (required), durationMinutes.
update_crm_recordUpdate CRM RecordA
Patch fields on an existing customer's CRM record (e.g. after verifying a new phone number or email during a call). Only include the fields you want changed.
Inputs: customerId (required), tier, email, phone, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a clearly distinct resource and action: customer lookup, ticket creation/status, appointment scheduling, CRM patching, knowledge search, and task creation. There is no meaningful overlap or ambiguity between tool purposes.
Most tools follow the verb_noun pattern (create_support_ticket, retrieve_status, schedule_appointment, update_crm_record, retrieve_knowledge, create_task). The exception is customer_lookup, which reverses the order to noun_verb, creating a minor consistency deviation.
Seven tools is a well-scoped size for a customer support/CRM connector. Each tool covers a distinct workflow step, and none feel redundant or unnecessary.
The surface covers customer lookup, ticket creation and status, knowledge retrieval, and follow-up tasks, but ticket lifecycle is incomplete (no update or close) and appointment management lacks cancellation/rescheduling. These are notable gaps for a full customer support workflow.
Maintenance
Related MCP Connectors
Your team's custom tools and skills in every agent, through one MCP connection.
Unified MCP Server is a remote MCP connector for AI agents and vertical AI products that provides access to 22,000+ authorized SaaS tools across 400+ integrations and 24 categories directly inside LLMs (Claude, GPT, Gemini, Cohere). Tools operate only on explicitly authorized customer connections, enabling agents to safely read and write against live third-party systems.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Related MCP Servers
- AlicenseAqualityFmaintenanceProvides 14 MCP tools for AI agent infrastructure, enabling knowledge base queries, skill search, handoffs, blueprint validation, trust scoring, identity verification, SLA validation, and compliance checks.22MIT
- FlicenseNot gradedqualityDmaintenanceProvides Claude agents with CRM contact lookup, action logging, and prompt cost auditing tools. Includes a Streamlit UI to demo the same tools without an MCP client.-
- AlicenseNot gradedqualityDmaintenanceEnables an AI to perform customer support workflows by looking up customers, retrieving orders, and creating support tickets through MCP tools.ISC
- FlicenseNot gradedqualityDmaintenanceProvides MCP tools for hybrid knowledge base search, grounded Q&A with citations, agent execution, and ticket/account lookups.-