使用说明
从以下位置搜索Markdown和.txt页面 llms.txt 地点。提供CLI、SDK、MCP服务器和代理技能。
安装
npm install @statespace-tech/statespace
查询句法
纯查询搜索所有站点:
mcp server setup
vector database embeddings
rate limiting middleware
oauth2 token refresh
websocket reconnection strategy
将查询范围限定到特定站点 site: query:
stripe: webhook verification
supabase: edge functions auth
vercel: edge middleware caching
mistral.ai: function calling # match by domain
docs.aws.amazon.com: s3 presigned urls # match by subdomain
使用引号进行精确短语匹配:
"context window limit"
vector database "semantic search"
stripe: "webhook signature verification"
命令行界面
从命令行搜索文档: npx @statespace-tech/statespace search <query> [options]
npx @statespace-tech/statespace search "mcp server setup"
npx @statespace-tech/statespace search "stripe: webhook verification" --limit 5
npx @statespace-tech/statespace search "redis connection pooling" --limit 10 --offset 3
npx @statespace-tech/statespace search "anthropic: tool function calling" --limit 5 --human
| 标志 | 短 | 默认 | 最大 | 描述 |
|---|---|---|---|---|
--limit <n> |
-l |
10 |
50 |
返回的最大结果 |
--offset <n> |
-o |
0 |
-- | 要跳过的结果(用于分页) |
--human |
-- | -- | -- | 人类可读的输出,而不是JSON |
软件开发工具包
导入和调用 search() 直接来自TypeScript或JavaScript。
import { search } from '@statespace-tech/statespace';
const results = await search("mcp server setup");
const results = await search("stripe: webhook verification", { limit: 5 });
const results = await search("redis connection pooling", { limit: 10, offset: 3 });
主控程序
添加到MCP配置中以公开 search 工具给您的代理:
{
"mcpServers": {
"statespace": {
"command": "npx",
"args": ["@statespace-tech/statespace", "mcp"]
}
}
}
代理技能
看 技能.md
需求
Node.js 18+
社区与贡献
许可证
麻省理工学院
