CometChat Docs
CometChat docs and recipes, plus your account after sign-in: apps, users, settings, keys, webhooks.
使うべきか
品質と安全性
検出事項(1)
- LOWget_cometchat_implementation_bundle 内
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"docs-mcp": {
"url": "https://mcp.cometchat.com/mcp"
}
}
}リモートエンドポイント
https://mcp.cometchat.com/mcpstreamable-httpできること
ツール一覧
ツール(4)
🟢search_cometchat_docs(query, version, limit)
Searches all of CometChat's documentation (SDKs, UI Kits, Calls, REST API, AI agents, notifications, moderation, the no-code widget, UI Kit Builder and more) for the pages covering a topic or API name, and returns ranked excerpts with each page's url. When a page's url or path is already in hand, fetch_cometchat_doc_page returns that page in full; for a common setup scenario (a UI Kit quickstart, SDK messaging, the widget, moderation), list_cometchat_bundles names the implementation bundles, each the scenario's current docs pages compiled into one document. Pages holding every keyword rank first, falling back to any keyword when no page holds them all; no match is an empty results list, not an error. For a query of 4 to 8 distinct keywords, pages missing one incidental keyword join the ranking at half weight, which is how an API renamed between versions is still found; a platform or language word is never the one dropped. Without the version filter, current-version pages lead, and each result reports isCurrent plus a version label when the page is versioned; the filter restricts results to pages carrying that label, so unversioned pages such as the REST API reference are excluded. limit caps the rows returned, never the totalAvailable count, and there is no offset. Results come from a snapshot of the documentation repository, rebuilt periodically, so a page published since the last rebuild is missing until then; fetch_cometchat_doc_page reads the live site. Errors: invalid_input for a malformed argument, backend_unavailable when the index cannot be read. Over HTTP, every MCP request counts against one per-client-IP limit, initialize and tools/list included, by default 120 per 60 s, then HTTP 429 with Retry-After; no authentication.
入力スキーマ
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Plain keywords, 1–500 characters; short queries work best. Name the platform or framework when the answer is platform-specific (\"iOS delete message\", \"React UI Kit message list\"); otherwise results span platforms. API names such as markAsRead are searchable, as are the languages of a page's code examples. Quotes and operators such as OR have no special meaning, and common words such as \"how\", \"is\" and \"can\" are not counted as keywords. A version written in the query (\"v4\") is matched as a keyword: it favours pages mentioning it but does not restrict results to that version, even when it is the whole query. To get one version's pages, put the label in the version filter instead."
},
"version": {
"type": "string",
"description": "Version label from the docs version picker, e.g. 'v5'. The leading v is optional and case does not matter, so V7, 7 and v7.0 all name v7. Each SDK and UI Kit numbers its versions independently, so one label spans every product that uses it. A label no page carries returns no results rather than an error."
},
"limit": {
"type": "integer",
"description": "Maximum results, from 1 to 25; default 10.",
"minimum": 1,
"maximum": 25,
"default": 10
}
},
"required": [
"query"
],
"additionalProperties": false
}出力スキーマ
{
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "Matching pages, best first.",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Page title."
},
"url": {
"type": "string",
"description": "Absolute page url, accepted as-is by fetch_cometchat_doc_page."
},
"snippet": {
"type": "string",
"description": "Matched excerpt with context, up to 300 characters."
},
"section": {
"type": "string",
"description": "Documentation section the page belongs to, e.g. 'UI Kit / React'."
},
"version": {
"type": "string",
"description": "Version label of the page's SDK or UI Kit, e.g. 'v7'. Absent on a page that carries no version, including the pages of a retired SDK or UI Kit."
},
"isCurrent": {
"type": "boolean",
"description": "False when the page documents an older version of its SDK or UI Kit, or a doc set retired from the docs navigation, which may carry no version label."
}
},
"required": [
"title",
"url",
"snippet",
"section",
"isCurrent"
],
"additionalProperties": false
}
},
"totalAvailable": {
"type": "number",
"description": "Number of matching pages, which can exceed the rows returned. For a query of 4 to 8 distinct keywords it also counts the pages holding all but one of them."
}
},
"required": [
"results",
"totalAvailable"
],
"additionalProperties": false
}🟢fetch_cometchat_doc_page(path)
Returns one CometChat documentation page in full, as markdown with its title, url and section. Takes a url or path already in hand: a docs link from a bundle, or a result url from search_cometchat_docs, which is where a topic or API name goes instead, since that is not a path. Each call reads the live docs site, so it sees pages the search index has not picked up yet. A moved page is followed for up to 3 redirects; a page over 50 KiB is truncated, ending in a link to the full page. No key or account is needed, and nothing is cached. Errors: not_found for an unknown page or one redirected to the docs root, invalid_input for a path resolving outside the documentation, backend_unavailable when the site fails or the whole redirect chain exceeds the 5 s default timeout (retryable).
入力スキーマ
{
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Page path such as '/sdk/javascript/overview' (a leading slash, a '/docs' prefix and a '.md' or '.mdx' suffix are optional), or a full https://www.cometchat.com/docs/... URL; up to 500 characters. Query strings and #fragments are ignored."
}
},
"required": [
"path"
],
"additionalProperties": false
}出力スキーマ
{
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Page title."
},
"url": {
"type": "string",
"description": "Absolute canonical page url, after any redirect."
},
"section": {
"type": "string",
"description": "Documentation section, derived from the page's path."
},
"content": {
"type": "string",
"description": "Page body as markdown."
},
"contentLength": {
"type": "number",
"description": "Byte length of content, after any truncation."
},
"redirectedFrom": {
"type": "string",
"description": "Path originally requested, present only when that page has moved; url and section describe where it landed."
}
},
"required": [
"title",
"url",
"section",
"content",
"contentLength"
],
"additionalProperties": false
}🟢get_cometchat_implementation_bundle(bundle)
Returns one CometChat implementation bundle: the scenario's current documentation pages (for a UI Kit, its integration guide, then the platform's AI reference page) compiled into one markdown document, each headed by its source URL, plus paths of related pages, the prerequisites, and a last_verified date. Eleven bundles cover UI Kit quickstarts (React, Angular, React Native, Flutter, iOS, Android), JavaScript SDK messaging, the no-code widget, moderation setup, multi-tenant chat, and presence and typing. list_cometchat_bundles names them all; for a topic no bundle covers, or for one reference page rather than a setup's pages, search_cometchat_docs searches the documentation. bundle is an identifier, not a title and not a framework: 'react-uikit-quickstart', rather than 'React UI Kit' or 'react'. One that is well-formed but names no bundle returns unknown_bundle listing every valid one; anything else, invalid_input. Pages are included whole, in order, while the document fits in 60 KiB; a page that does not fit is listed by path under More pages rather than cut, except a first page too big on its own, which is cut at a paragraph and ends with a link to the full page. Pages are read from the live docs site; no key or account is needed. A built bundle is served for 10 minutes, then refreshed in the background. A page that cannot be loaded does not fail the call: the previous bundle, or a partial one naming the pages it lacks, is served instead, and backend_unavailable is returned only when no page loads and nothing is cached yet.
入力スキーマ
{
"type": "object",
"properties": {
"bundle": {
"type": "string",
"description": "Bundle identifier as list_cometchat_bundles returns it, e.g. 'react-uikit-quickstart': lowercase letters, digits and hyphens, opening with a letter or digit, up to 100 characters."
}
},
"required": [
"bundle"
],
"additionalProperties": false
}出力スキーマ
{
"type": "object",
"properties": {
"bundle": {
"type": "string",
"description": "Bundle identifier, as passed in."
},
"title": {
"type": "string",
"description": "Human-readable bundle title."
},
"framework": {
"type": "string",
"description": "Framework or platform the bundle targets; 'any' when platform-neutral."
},
"prerequisites": {
"type": "array",
"items": {
"type": "string"
},
"description": "What must be in place before following the bundle's pages, such as a runtime version or CometChat app credentials."
},
"last_verified": {
"type": "string",
"description": "ISO date this bundle's list of documentation pages was last reviewed. The page content itself is read from the live documentation."
},
"content": {
"type": "string",
"description": "The bundle's documentation pages as markdown, each headed by its source URL, followed by the paths of related pages and of any page that did not fit or could not be loaded."
}
},
"required": [
"bundle",
"title",
"framework",
"prerequisites",
"last_verified",
"content"
],
"additionalProperties": false
}🟢list_cometchat_bundles
Lists every CometChat implementation bundle: the setup scenarios whose current docs pages get_cometchat_implementation_bundle compiles by identifier, with each one's title, framework ('any' when platform-neutral) and last_verified date. No parameters are required: one call returns the complete set, ordered by identifier, with no filter, paging or cap. The set is fixed at startup, since only page content is read from the docs site; the listing itself opens no connection and needs no key or account, so repeat calls return the same bundles. For a topic no bundle covers, or for one reference page rather than a setup's pages, search_cometchat_docs searches the documentation.
入力スキーマ
{
"type": "object",
"properties": {},
"additionalProperties": false
}出力スキーマ
{
"type": "object",
"properties": {
"bundles": {
"type": "array",
"description": "Every bundle, ordered by identifier.",
"items": {
"type": "object",
"properties": {
"bundle": {
"type": "string",
"description": "Bundle identifier to pass to get_cometchat_implementation_bundle."
},
"title": {
"type": "string",
"description": "Human-readable bundle title."
},
"framework": {
"type": "string",
"description": "One of android, angular, any, flutter, ios, javascript, react, react-native, or widget."
},
"last_verified": {
"type": "string",
"description": "ISO date this bundle's list of documentation pages was last reviewed."
}
},
"required": [
"bundle",
"title",
"framework",
"last_verified"
],
"additionalProperties": false
}
},
"total": {
"type": "number",
"description": "Number of bundles."
}
},
"required": [
"bundles",
"total"
],
"additionalProperties": false
}コミュニティ
エビデンス