fix: update MCP server tests after removing additionalPermissions

- Change github_ci server logic to check for workflow token presence
- Update test names to reflect new behavior
- Fix test that was incorrectly setting workflow token
This commit is contained in:
km-anthropic
2025-08-08 01:10:43 -07:00
parent f59258677e
commit f407f21830
2 changed files with 8 additions and 8 deletions

View File

@@ -111,10 +111,10 @@ export async function prepareMcpConfig(
};
}
// CI server is disabled by default in v1.0 (users can enable via claudeArgs)
const hasActionsReadPermission = false;
// CI server is included when we have a workflow token and context is a PR
const hasWorkflowToken = !!process.env.DEFAULT_WORKFLOW_TOKEN;
if (context.isPR && hasActionsReadPermission) {
if (context.isPR && hasWorkflowToken) {
// Verify the token actually has actions:read permission
const actuallyHasPermission = await checkActionsReadPermission(
process.env.DEFAULT_WORKFLOW_TOKEN || "",