cap_discover
Check whether a website has a CAP front door, and whether visitors can log in.
domain必填
io.github.conciergeprotocol由 GitHub 账号 conciergeprotocol 发布v0.1.6更新于 Oct 29, 2026
Ask a company through its Concierge Agent Protocol front door.
让助手向发布 CAP 前门的公司提问,检查网站是否有前门,并读取仍在回答中的消息。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
参照 仓库 中的启动说明。
Packages for both sides of a CAP front door. @conciergeprotocol/client calls a door. @conciergeprotocol/mcp exposes that client as three tools, so Claude, Cursor, and other MCP hosts can ask a company. @conciergeprotocol/server runs a door from one answer function. @conciergeprotocol/agent builds that function from a model, an llms.txt file, and MCP tools.
The protocol is at conciergeprotocol.org. A company publishes agent.txt. It does not publish an MCP server for visitors. An MCP server, when there is one, stays behind the door.
The MCP server is a command. Install it, or run it with npx as in the block below.
A follow-up sends only the new question:
discover returns null when a site has no front door. ask throws NoDoorError for the same case, which is the signal to browse the site instead.
ask waits up to two minutes. If the company is still answering, the message comes back with status: 'working' and no reply. get reads it again.
Account questions use login. The client opens the company's page, and finishLogin stores the token for the next ask. The token stays in the token store you pass to createClient.
Cursor, Claude Desktop, and VS Code use the same block. In VS Code it goes in .vscode/mcp.json. In Cursor and Claude Desktop it goes in the MCP settings file.
CAP_FROM defaults to agent:cap-mcp. The tools are cap_discover, cap_ask, and cap_check. The server is listed in the MCP registry as io.github.conciergeprotocol/mcp. cap_ask waits 60 seconds. If the company is still answering, it returns the message id and the model calls cap_check instead of guessing.
answer is the company's own function. The server keeps the thread, hides one caller's reply from another, and enforces the daily message cap.
A company that already has a bot can skip the agent package and pass its own answer. npx cap-check http://127.0.0.1:8088 reads agent.txt, asks one question, and checks that a second caller cannot read the reply.
Add a changeset, then merge to main:
Package Checks runs on every push. When it passes on main, the publish workflow opens a version pull request, or publishes both packages and tags the release. The two packages stay on one version. When the npm publish succeeds, the same workflow lists the server in the MCP registry. The repository needs an NPM_TOKEN secret.
Apache 2.0
来源:README.md,提交 a117299
Check whether a website has a CAP front door, and whether visitors can log in.
domain必填Ask a company that publishes a CAP front door. Use this when the person asks about a specific company, product, store, or organization with a known website. Prefer it to browsing when the site has a front door. Send only the new question in a follow-up, with conversation_id. Never write an answer for the site while it is still answering. The reply is the site's own framing. For comparisons and reviews, check other sources too. Never put the person's password or another site's data in context.
domain必填contextmessage必填conversation_idRead a CAP message that was still being answered. Do not guess a reply while the status is working.
domain必填message_id必填已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
npm install @conciergeprotocol/clientnpm install @conciergeprotocol/mcpimport { createClient } from '@conciergeprotocol/client'
const cap = createClient({ from: 'agent:my-assistant' })
const answer = await cap.ask('example.com', 'Do you have a free plan?')console.log(answer.reply)const thread = cap.thread('example.com')await thread.ask('What do you sell?')const price = await thread.ask('How much is the cheapest paid plan?'){ "mcpServers": { "cap": { "command": "npx", "args": ["-y", "@conciergeprotocol/mcp"], "env": { "CAP_FROM": "agent:my-assistant" } } }}import { createAnswer } from '@conciergeprotocol/agent'import { createCapServer } from '@conciergeprotocol/server'
const answer = await createAnswer({ model: 'anthropic/claude-sonnet-4.5', instructions: 'You answer for Harbor Goods. Link to the page.', sources: [{ type: 'llms', url: 'https://harborgoods.example/llms.txt' }],})
const cap = await createCapServer({ agent: { name: 'Harbor Goods', chat: 'https://harborgoods.example/chat' }, answer,})
await cap.listen(8088)bun run changeset