beans_init
Initialize Beans Workspace
Initialize Beans in the current workspace, equivalent to the extension init command.
prefix
io.github.voxslopuli由 GitHub 账号 voxslopuli 发布v0.7.1更新于 Nov 3, 2026
以代理方式与 Beans CLI 问题跟踪器交互
AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。
Interact with the Beans CLI issue tracker agentically
Beans 的本地 MCP 服务;无需登录;STDIO;14 个工具。
暂无 AI 概览:以下信息来自注册中心条目和服务本身。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
参照 仓库 中的启动说明。
[Test & Build] [codecov] [NPM Version]
MCP (Model Context Protocol) server for Beans issue tracker. Provides programmatic and CLI interfaces for AI-powered interactions with Beans workspaces.
Documentation: beans-mcp.voxslopuli.org
🤖 Try Beans fully-integrated with GitHub Copilot in VS Code! Install the selfagency.beans-vscode extension.
The beans CLI binary is bundled via platform-specific optional dependencies
(@voxslopuli/beans-cli-darwin-arm64, -darwin-x64, -linux-arm64,
-linux-x64, -win32-x64), pinned to the supported Beans version (0.4.2).
At startup the server resolves the bundled binary first and falls back to the
beans command in PATH. An explicit --cli-path always wins.
To release new platform packages when Beans publishes a new version:
Or dispatch the Release beans CLI packages workflow on GitHub Actions.
@voxslopuli/beans-mcp has its own package versioning. Compatibility with the
Beans CLI is tracked separately.
At startup, the server compares the installed beans CLI version against the
hardcoded supported Beans version: 0.4.2. If they differ, it prints a warning
to stderr and continues startup.
--workspace-root or positional arg: Workspace root path--cli-path: Path to Beans CLI--port: MCP server port (default: 39173)--log-dir: Log directory-h, --help: Print usage and exitbeans_query tool is intentionally broad: prefer it for listing, searching, filtering or sorting beans, and for generating Copilot instructions (operation: 'llm_context')..beans/ prefix is automatically stripped from paths — you can pass either some-bean.md or .beans/some-bean.md and the result is the same.beans_update replaces many fine-grained update tools; callers should use it to keep the public tool surface small and predictable.beans_archive provides CLI parity for archiving completed/scrapped beans.beans_update (status: completed or status: scrapped) cascades the same status to all descendants.beans_reopen cascades the target status to closed descendants (completed / scrapped).beans_bulk_create and beans_bulk_update are best-effort: they process each item sequentially and return a per-item result array with success/error entries rather than failing atomically.title: values are automatically double-quoted on write. Pass raw titles — quoting and escaping is handled for you.beans_bean_file supports update_frontmatter for atomic frontmatter-only writes; supported fields include pr and branch.beans_create, beans_update, beans_delete, etc.) invalidate the cache immediately.beans-mcp and the Beans CLI are warning-only and non-blocking by design.beanId is missing in tool input, validation errors include a hint: Did you mean \beanId`?`.Request:
Response (structuredContent):
Request:
Request (multiple beans):
Response (structuredContent):
Request:
Response (example):
Request:
descriptionis accepted as a deprecated alias forbody.
Response (structuredContent):
Request:
The top-level parent is applied as a default to any bean that does not specify its own parent. Here Design mockups and Implement API are assigned to epic-123; Write tests overrides with epic-456.
Response (structuredContent):
Request (move a batch of tasks to in-progress and assign them to a parent):
Response (structuredContent):
Both bulk tools are best-effort: partial failures are reported per-item rather than aborting the whole batch.
Request (change status and add blocking):
Request (atomic body modifications):
Note:
body(full replacement) cannot be combined withbodyAppendorbodyReplacein the same request.
Response (structuredContent):
Request:
Response:
Batch request:
Batch response (summary):
Request:
Response:
Request:
Response:
Refresh (list all beans):
Response (partial):
Filter (statuses/types/tags):
Search (full-text):
Sort (modes: status-priority-type-title, updated, created, id):
Ready (actionable beans only):
LLM context (generate Copilot instructions; optional write-to-workspace):
Response (structuredContent):
Raw GraphQL passthrough (CLI parity with beans query):
With variables:
Request (read):
Response:
Request (atomic frontmatter update):
Response:
Request (read last 200 lines):
Response:
Creates and initializes a Beans MCP server instance.
Options:
workspaceRoot (string): Path to the Beans workspacecliPath (string, optional): Path to Beans CLI executable (default: 'beans')name (string, optional): Server name (default: 'beans-mcp-server')version (string, optional): Server versionlogDir (string, optional): Directory for server logsbackend (BackendInterface, optional): Custom backend implementationReturns: { server: McpServer; backend: BackendInterface }
CLI-compatible entrypoint for launching the server.
parseCliArgs(argv: string[]): Parse CLI argumentsisPathWithinRoot(root: string, target: string): boolean: Check if path is contained within rootsortBeans(beans, mode): Sort beans by specified modeExport of GraphQL schema, Zod validation schemas, and TypeScript types for Beans records and operations.
skills-npm, skills.sh)This package ships a built-in Agent Skill under skills/ and also publishes that skill in a format that fits the broader open skills ecosystem surfaced by skills.sh.
skills/beans-mcp/SKILL.mdhttps://beans-mcp.voxslopuli.org/.well-known/agent-skills/beans-mcp/SKILL.mdhttps://beans-mcp.voxslopuli.org/.well-known/agent-skills/index.jsonnode_modules/**/skills/*/SKILL.mdThat means you can use it with npm-based workflows such as skills-npm, while also pointing ecosystem tooling at the published skill artifact and discovery index used by skills catalogs like skills.sh.
To symlink installed npm-packaged skills into your agent workspace, you can use skills-npm in your consuming project.
MIT
来源:README.md,提交 cde19dd
Initialize Beans Workspace
Initialize Beans in the current workspace, equivalent to the extension init command.
prefixArchive Beans
Archive completed or scrapped beans, equivalent to the beans CLI archive command.
无需输入参数。
View Bean
Fetch full bean details by ID.
beanIdbeanIdsCreate Bean
Create a new bean.
bodytype必填title必填parentstatusprioritydescriptionEdit Bean Metadata
Update bean metadata fields (status/type/priority/parent/blocking).
无需输入参数。
Reopen Bean
Reopen a completed or scrapped bean into a non-closed status.
无需输入参数。
Update Bean
Update bean metadata fields (status/type/priority/parent/blocking). Consolidated replacement for per-field update tools.
无需输入参数。
Delete Bean
Delete a bean (intended for draft/scrapped beans).
forcebeanIdbeanIdsBulk Create Beans
Create multiple beans in one call. Optionally assign all of them (or a subset) to a shared parent.
beans必填parentBulk Update Beans
Update multiple beans in one call. Optionally assign all of them (or a subset) to a shared parent.
beans必填parentComplete Markdown Tasks
Mark all markdown checklist tasks within a bean as completed.
无需输入参数。
Query Beans
Unified query tool for refresh, filter, search, and sort operations.
modetagstypessearchgraphqlstatusesoperationvariablesincludeClosedwriteToWorkspaceInstructionsBean File Operations
Read, create, edit, or delete files under .beans (operation param).
path必填fieldscontentoperation必填overwriteBeans Output Tools
Read extension output log or show guidance (operation param).
linesoperation已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
npx @voxslopuli/beans-mcp /path/to/workspace# 1. Bump beansCli.version + optionalDependencies in package.jsonpnpm fetch-beans-binaries --version <beans-version># 2. Verify staged binaries in build/beans-cli/, then publishpnpm publish-beans-cli # add --dry-run to preview{ "prefix": "project" }{ "initialized": true }{ "beanId": "bean-abc" }{ "beanIds": ["bean-abc", "bean-def"] }{ "bean": { "id": "bean-abc", "title": "Fix login timeout", "status": "todo", "type": "bug", "priority": "critical", "body": "...markdown...", "createdAt": "2025-12-01T12:00:00Z", "updatedAt": "2025-12-02T08:00:00Z" }}{}{ "archived": true, "archivedCount": 3 }{ "title": "Add dark mode", "type": "feature", "status": "todo", "priority": "normal", "body": "Implement theme toggle and styles", "parent": "epic-123"}{ "bean": { "id": "new-1", "title": "Add dark mode", "status": "todo", "type": "feature" }}{ "parent": "epic-123", "beans": [ { "title": "Design mockups", "type": "task" }, { "title": "Implement API", "type": "task", "priority": "high" }, { "title": "Write tests", "type": "task", "parent": "epic-456" } ]}{ "requestedCount": 3, "successCount": 3, "failedCount": 0, "results": [ { "bean": { "id": "task-1", "title": "Design mockups" } }, { "bean": { "id": "task-2", "title": "Implement API" } }, { "bean": { "id": "task-3", "title": "Write tests" } } ]}{ "parent": "epic-123", "beans": [ { "beanId": "task-1", "status": "in-progress" }, { "beanId": "task-2", "status": "in-progress" }, { "beanId": "task-3", "status": "in-progress", "parent": "epic-456" } ]}{ "requestedCount": 3, "successCount": 3, "failedCount": 0, "results": [ { "beanId": "task-1", "bean": { "id": "task-1", "status": "in-progress" } }, { "beanId": "task-2", "bean": { "id": "task-2", "status": "in-progress" } }, { "beanId": "task-3", "bean": { "id": "task-3", "status": "in-progress" } } ]}{ "beanId": "bean-abc", "status": "in-progress", "blocking": ["bean-def"], "ifMatch": "etag-value"}{ "beanId": "bean-abc", "bodyReplace": [ { "old": "- [ ] Task 1", "new": "- [x] Task 1" }, { "old": "- [ ] Task 2", "new": "- [x] Task 2" } ], "bodyAppend": "## Summary\n\nAll checklist items completed."}{ "bean": { "id": "bean-abc", "status": "in-progress", "blockingIds": ["bean-def"] }}{ "beanId": "bean-old", "force": false }{ "deleted": true, "beanId": "bean-old" }{ "beanIds": ["bean-old", "bean-older"], "force": false }{ "requestedCount": 2, "deletedCount": 2, "failedCount": 0, "results": [ { "beanId": "bean-old", "deleted": true }, { "beanId": "bean-older", "deleted": true } ]}{ "beanId": "bean-closed", "requiredCurrentStatus": "completed", "targetStatus": "todo"}{ "bean": { "id": "bean-closed", "status": "todo" } }{ "beanId": "bean-abc" }{ "bean": { "id": "bean-abc", "status": "todo" }, "totalTaskCount": 5, "updatedTaskCount": 3, "unchangedTaskCount": 2}{ "operation": "refresh" }{ "count": 12, "beans": [] }{ "operation": "filter", "statuses": ["in-progress", "todo"], "types": ["bug", "feature"], "tags": ["auth"]}{ "operation": "search", "search": "authentication", "includeClosed": false }{ "operation": "sort", "mode": "updated" }{ "operation": "ready" }{ "operation": "llm_context", "writeToWorkspaceInstructions": true }{ "graphqlSchema": "...", "generatedInstructions": "...", "instructionsPath": "/workspace/.github/instructions/beans-prime.instructions.md"}{ "operation": "graphql", "graphql": "{ beans(filter: { type: [\"bug\"] }) { id title status } }"}{ "operation": "graphql", "graphql": "query($q: String!) { beans(filter: { search: $q }) { id title } }", "variables": { "q": "authentication" }}{ "operation": "read", "path": "beans-vscode-123--title.md" }{ "path": "/workspace/.beans/beans-vscode-123--title.md", "content": "---\n...frontmatter...\n---\n# Title\n"}{ "operation": "update_frontmatter", "path": "beans-vscode-123--title.md", "fields": { "status": "in-progress", "pr": "123", "branch": "feature/cascade-status-and-skills-npm" }}{ "path": "/workspace/.beans/beans-vscode-123--title.md", "bytes": 256, "updatedFields": ["status", "pr", "branch"], "frontmatter": { "status": "in-progress", "pr": "123", "branch": "feature/cascade-status-and-skills-npm" }}{ "operation": "read", "lines": 200 }{ "path": "/workspace/.vscode/logs/beans-output.log", "content": "...log lines...", "linesReturned": 200}npm install beans-mcpimport { createBeansMcpServer, parseCliArgs } from '@voxslopuli/beans-mcp';
const server = await createBeansMcpServer({ workspaceRoot: '/path/to/workspace', cliPath: 'beans', // or path to beans CLI});
// Connect to stdio transport or your own transport