Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixes

- Claude Code auto-allow setup now includes `codegraph_files`, matching the documented manual configuration so the indexed file-structure tool is ready after install. (#565)

## [0.9.8] - 2026-06-01

Expand Down
10 changes: 10 additions & 0 deletions __tests__/installer-targets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,16 @@ describe('Installer targets — partial-state idempotency', () => {
expect(cfg.mcpServers.codegraph).toBeDefined();
});

it('claude: auto-allow includes the indexed file structure tool (#565)', () => {
const claude = getTarget('claude')!;
claude.install('global', { autoAllow: true });

const settings = JSON.parse(
fs.readFileSync(path.join(tmpHome, '.claude', 'settings.json'), 'utf-8'),
);
expect(settings.permissions.allow).toContain('mcp__codegraph__codegraph_files');
});

it('claude: local install migrates a legacy ./.claude.json codegraph entry into ./.mcp.json', () => {
const claude = getTarget('claude')!;
const legacy = path.join(tmpCwd, '.claude.json');
Expand Down
1 change: 1 addition & 0 deletions src/installer/targets/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export function getCodeGraphPermissions(): string[] {
'mcp__codegraph__codegraph_impact',
'mcp__codegraph__codegraph_node',
'mcp__codegraph__codegraph_status',
'mcp__codegraph__codegraph_files',
];
}

Expand Down