CanonicAI — cited Answers corpus
Read-only hosted MCP over CanonicAI's cited Answers corpus on canonicai.com.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"canonicai-answers": {
"url": "https://canonicai.com/api/mcp"
}
}
}远程端点
https://canonicai.com/api/mcpstreamable-http它能做什么
工具清单
工具(6)
🟢list_answers(limit, offset)
List published CanonicAI answer summaries from the static Answers corpus. Returns slug, id, question, canonical URLs, and citation counts.
输入模式
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 0,
"description": "Maximum summaries to return."
},
"offset": {
"type": "integer",
"minimum": 0,
"description": "Number of summaries to skip."
}
},
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"answers": {
"type": "array",
"items": {
"type": "object",
"required": [
"slug",
"id",
"question",
"url",
"jsonUrl",
"citationCount"
],
"properties": {
"slug": {
"type": "string"
},
"id": {
"type": "string"
},
"question": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"jsonUrl": {
"type": "string",
"format": "uri"
},
"citationCount": {
"type": "integer"
}
}
}
}
},
"required": [
"count",
"answers"
]
}🟢get_answer(slug)
Return one Answer contract v0 record with citations for a known slug. Never fabricates content for unknown slugs.
输入模式
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Answer slug from answers/index.json."
}
},
"required": [
"slug"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"slug": {
"type": "string"
},
"question": {
"type": "string"
},
"shortAnswer": {
"type": "string"
},
"answer": {
"type": "string"
},
"home": {
"type": "string"
},
"citations": {
"type": "array",
"items": {
"type": "object"
}
},
"url": {
"type": "string",
"format": "uri"
},
"code": {
"type": "string",
"enum": [
"not_found"
]
},
"message": {
"type": "string"
}
},
"required": [
"id",
"slug",
"question",
"answer",
"citations",
"url"
]
}🟢search_answers(q, limit)
Search CanonicAI answers by simple deterministic token scoring over question, shortAnswer, and answer fields.
输入模式
{
"type": "object",
"properties": {
"q": {
"type": "string",
"description": "Search query."
},
"limit": {
"type": "integer",
"minimum": 0,
"description": "Maximum matches to return."
}
},
"required": [
"q"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"count": {
"type": "integer"
},
"matches": {
"type": "array",
"items": {
"type": "object",
"required": [
"score",
"slug",
"id",
"question",
"url",
"jsonUrl",
"citationCount"
],
"properties": {
"score": {
"type": "integer"
},
"slug": {
"type": "string"
},
"id": {
"type": "string"
},
"question": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"jsonUrl": {
"type": "string",
"format": "uri"
},
"citationCount": {
"type": "integer"
},
"shortAnswer": {
"type": "string"
}
}
}
}
},
"required": [
"query",
"count",
"matches"
]
}🟢list_canons(limit, offset)
List published CanonicAI domain canons from the static canon bundle. Returns slug, action statement, construct/source counts, and canonical URLs.
输入模式
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 0,
"description": "Maximum summaries to return."
},
"offset": {
"type": "integer",
"minimum": 0,
"description": "Number of summaries to skip."
}
},
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"canons": {
"type": "array",
"items": {
"type": "object",
"required": [
"slug",
"action_statement",
"n_constructs",
"n_source_works",
"url",
"jsonUrl"
],
"properties": {
"slug": {
"type": "string"
},
"action_statement": {
"type": "string"
},
"n_constructs": {
"type": "integer"
},
"n_source_works": {
"type": "integer"
},
"url": {
"type": "string",
"format": "uri"
},
"jsonUrl": {
"type": "string",
"format": "uri"
},
"date_modified": {
"type": "string"
}
}
}
}
},
"required": [
"count",
"canons"
]
}🟢get_canon(slug)
Return one canon-v1 record (constructs, relationships, open divergences, provenance, source works) for a known slug. Never fabricates content for unknown slugs; returns close-match slugs instead.
输入模式
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Canon slug from canons/index.json."
}
},
"required": [
"slug"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"slug": {
"type": "string"
},
"action_statement": {
"type": "string"
},
"constructs": {
"type": "array",
"items": {
"type": "object"
}
},
"relationships": {
"type": "array",
"items": {
"type": "object"
}
},
"open_divergences": {
"type": "array",
"items": {
"type": "object"
}
},
"coverage": {
"type": "object"
},
"provenance": {
"type": "object"
},
"source_works": {
"type": "array",
"items": {
"type": "object"
}
},
"guide_url": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"code": {
"type": "string",
"enum": [
"not_found"
]
},
"message": {
"type": "string"
},
"closeMatches": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"slug",
"constructs",
"url"
]
}🟢search_constructs(q, canon, limit)
Search construct names and definitions across all canons (or one canon) by deterministic token scoring.
输入模式
{
"type": "object",
"properties": {
"q": {
"type": "string",
"description": "Search query."
},
"canon": {
"type": "string",
"description": "Restrict to one canon slug."
},
"limit": {
"type": "integer",
"minimum": 0,
"description": "Maximum matches to return."
}
},
"required": [
"q"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"count": {
"type": "integer"
},
"matches": {
"type": "array",
"items": {
"type": "object",
"required": [
"score",
"canon",
"name",
"definition",
"url"
],
"properties": {
"score": {
"type": "integer"
},
"canon": {
"type": "string"
},
"name": {
"type": "string"
},
"definition": {
"type": "string"
},
"url": {
"type": "string"
}
}
}
}
},
"required": [
"query",
"count",
"matches"
]
}社区
证据