Skip to content

fix(factorydroid): keep the per-server enabledTools MCP allowlist - #3644

Merged
dyoshikawa merged 4 commits into
mainfrom
resolve-issue-3414-factorydroid-enabled-tools
Oct 26, 2026
Merged

dyoshikawa merged 4 commits into
mainfrom
resolve-issue-3414-factorydroid-enabled-tools

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Factory Droid's MCP docs now document a per-server enabledTools allowlist next to disabledTools ("When the list is non-empty, only these tools are loaded"; a tool named in both lists stays excluded). Rulesync still marked factorydroid as denylist-only (supportsEnabledTools: false), so the processor stripped enabledTools before writing .factory/mcp.json / ~/.factory/mcp.json, and the server loaded every tool.

Changes

  • src/features/mcp/mcp-processor.ts: set supportsEnabledTools: true for factorydroid and point the comment at the current docs page. The adapter already passes both fields through on generate and import.
  • Tests: processor unit test now expects nothing stripped; adapter tests cover both filters on generate and import; a new e2e test round-trips enabledTools / disabledTools through generate and import.
  • docs/reference/file-formats.md (and the embedded src/generated/docs-content.ts): add a Factory Droid note to the MCP tool-config section.

This fixes only the gap from the 2026-10-25 re-check comment. The older open items (native permissionRules, remaining docs.factory.ai links) are left as they are.

Refs #3414

🤖 Generated with Claude Code

https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth

dyoshikawa and others added 4 commits October 25, 2026 23:36
Factory Droid now documents a per-server `enabledTools` allowlist next to
`disabledTools` (https://docs.factory.com/harness/mcp): a non-empty list
loads only the named tools, and a tool named in both stays excluded. The
processor still marked factorydroid as denylist-only, so `enabledTools`
was stripped and the server loaded every tool. Mark the filter as
supported; the adapter already passes both fields through on generate
and import.

Refs #3414

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth
…ctorydroid-enabled-tools

# Conflicts:
#	src/generated/docs-content.ts
…ctorydroid-enabled-tools

# Conflicts:
#	src/generated/docs-content.ts
…ctorydroid-enabled-tools

# Conflicts:
#	src/generated/docs-content.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant