mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-30 22:13:28 +08:00
fix: disable claude plugin bundled mcps
This commit is contained in:
committed by
Affaan Mustafa
parent
d49f0329a9
commit
0c61710c43
@@ -217,6 +217,24 @@ test('claude plugin.json commands is an array', () => {
|
||||
assert.ok(Array.isArray(claudePlugin.commands), 'Expected commands to be an array');
|
||||
});
|
||||
|
||||
test('claude plugin.json disables bundled MCP servers for provider tool-name compatibility', () => {
|
||||
const reportedOverlongToolName = `mcp__plugin_${claudePlugin.name}_github__create_pull_request_review`;
|
||||
|
||||
assert.ok(
|
||||
reportedOverlongToolName.length > 64,
|
||||
'Expected the reported GitHub MCP tool name to exceed strict provider limits without the MCP opt-out',
|
||||
);
|
||||
assert.ok(
|
||||
Object.prototype.hasOwnProperty.call(claudePlugin, 'mcpServers'),
|
||||
'Expected mcpServers to be explicitly declared so Claude Code does not auto-load root .mcp.json',
|
||||
);
|
||||
assert.deepStrictEqual(
|
||||
claudePlugin.mcpServers,
|
||||
{},
|
||||
'Claude plugin installs must not auto-bundle root MCP servers; document/manual MCP install remains supported',
|
||||
);
|
||||
});
|
||||
|
||||
test('claude plugin.json does NOT have explicit hooks declaration', () => {
|
||||
assert.ok(
|
||||
!('hooks' in claudePlugin),
|
||||
|
||||
Reference in New Issue
Block a user