Skip to content

feat(mcp): add global_methods tool for listing global context methods#4199

Merged
nixel2007 merged 2 commits into
developfrom
claude/global-methods-tool-3wnzci
Jun 25, 2026
Merged

feat(mcp): add global_methods tool for listing global context methods#4199
nixel2007 merged 2 commits into
developfrom
claude/global-methods-tool-3wnzci

Conversation

@nixel2007

Copy link
Copy Markdown
Member

The global_member_info tool resolves a single global member by exact name,
but offers no way to discover global context methods when the name is
unknown. Add a global_methods MCP tool that lists global context
functions/procedures (Сообщить/Message, СтартовыйСценарий/StartupScript,
...) with their signatures, return types and platform metadata, optionally
narrowed by a case-insensitive name substring filter.

Closes #4144

Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01GQfb6S4BacvUH6mGxb7shs

The global_member_info tool resolves a single global member by exact name,
but offers no way to discover global context methods when the name is
unknown. Add a global_methods MCP tool that lists global context
functions/procedures (Сообщить/Message, СтартовыйСценарий/StartupScript,
...) with their signatures, return types and platform metadata, optionally
narrowed by a case-insensitive name substring filter.

Closes #4144

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GQfb6S4BacvUH6mGxb7shs
@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@nixel2007, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 14 minutes and 45 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: de43b0da-0bb6-4242-ba1a-0b18c9d0d1b4

📥 Commits

Reviewing files that changed from the base of the PR and between ae54448 and 4433ebb.

📒 Files selected for processing (9)
  • docs/en/features/McpMode.md
  • docs/features/McpMode.md
  • src/main/java/com/github/_1c_syntax/bsl/languageserver/mcp/tools/GlobalMemberCategory.java
  • src/main/java/com/github/_1c_syntax/bsl/languageserver/mcp/tools/GlobalMemberSearchTool.java
  • src/main/java/com/github/_1c_syntax/bsl/languageserver/mcp/tools/McpToolParams.java
  • src/test/java/com/github/_1c_syntax/bsl/languageserver/mcp/McpHttpServerTest.java
  • src/test/java/com/github/_1c_syntax/bsl/languageserver/mcp/McpSseServerTest.java
  • src/test/java/com/github/_1c_syntax/bsl/languageserver/mcp/McpStreamableServerTest.java
  • src/test/java/com/github/_1c_syntax/bsl/languageserver/mcp/McpToolsTest.java
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/global-methods-tool-3wnzci

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

…arch

Replace the methods-only global_methods tool with global_member_search,
covering global functions, properties and system enums grouped by category.
A categories parameter restricts the search; the query is matched with the
same FuzzyMatcher as the editor autocomplete (exact > prefix > substring >
subsequence, over both ru/en spelling) and results are ranked by relevance.

Also fix the registered-tool-name assertions in the MCP server-boot tests,
which the previous commit missed.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GQfb6S4BacvUH6mGxb7shs
@nixel2007

Copy link
Copy Markdown
Member Author

/buildJar

@github-actions

Copy link
Copy Markdown
Contributor

✅ Собраны JAR-файлы для этого PR по команде /buildJar.

Артефакт: 7852541549

Файлы внутри:

  • bsl-language-server-claude-global-methods-tool-3wnzci-4433ebb-exec.jar

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

 3 528 files   3 528 suites   1h 41m 36s ⏱️
 3 471 tests  3 453 ✅  18 💤 0 ❌
20 826 runs  20 714 ✅ 112 💤 0 ❌

Results for commit 4433ebb.

@nixel2007
nixel2007 merged commit 5b4582b into develop Jun 25, 2026
37 checks passed
@nixel2007
nixel2007 deleted the claude/global-methods-tool-3wnzci branch June 25, 2026 13:31
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.

Новый инструмент для mcp. Получение справки по методам глобального контекста

2 participants