Skip to content

fix: replace agent-tools module with agentMode parameter#624

Merged
dcramer merged 1 commit into
mainfrom
fix-agent-mode
Nov 4, 2025
Merged

fix: replace agent-tools module with agentMode parameter#624
dcramer merged 1 commit into
mainfrom
fix-agent-mode

Conversation

@dcramer

@dcramer dcramer commented Nov 4, 2025

Copy link
Copy Markdown
Member

Fixes MCP-SERVER-EVJ by removing the agent-tools.ts module and replacing it with an agentMode parameter in buildServer() and configureServer().

This simplifies the architecture by:

  • Using a boolean flag instead of a separate tool registry
  • Keeping all tool logic in one place (tools/index.ts)
  • Removing an unnecessary level of indirection
  • Making agent mode filtering explicit in configureServer()

When agentMode is true, only use_sentry is registered and authorization checks are bypassed (use_sentry handles auth internally).

Fixes MCP-SERVER-EVJ by removing the agent-tools.ts module and replacing
it with an agentMode parameter in buildServer() and configureServer().

This simplifies the architecture by:
- Using a boolean flag instead of a separate tool registry
- Keeping all tool logic in one place (tools/index.ts)
- Removing an unnecessary level of indirection
- Making agent mode filtering explicit in configureServer()

When agentMode is true, only use_sentry is registered and authorization
checks are bypassed (use_sentry handles auth internally).

Co-Authored-By: Claude Code <noreply@anthropic.com>
@dcramer dcramer merged commit b67bed8 into main Nov 4, 2025
14 checks passed
@dcramer dcramer deleted the fix-agent-mode branch November 4, 2025 02:47
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