-
Notifications
You must be signed in to change notification settings - Fork 0
Add Directory Total Identities Tool #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
patrickcping
wants to merge
19
commits into
main
Choose a base branch
from
feature/add-directory-total-identities-tool/pc/20241128
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add Directory Total Identities Tool #16
patrickcping
wants to merge
19
commits into
main
from
feature/add-directory-total-identities-tool/pc/20241128
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…tool - Add new directory collection with DirectoryClient interface - Implement GetTotalIdentitiesByEnvironmentId tool for retrieving user identity counts - Add comprehensive test coverage including mock client tests - Tool supports custom date ranges with sensible defaults (32-day period) - Register directory collection in tool registry - All tests passing (13 tests, 100% pass rate)
Add warning message when users specify write tools with --include-tools but forget to add --disable-read-only flag. This helps users understand why their specified tools aren't available and provides clear guidance on how to enable them. The warning: - Detects write tools in the --include-tools list - Warns with specific tool names that will be filtered - Suggests adding --disable-read-only flag to enable them
…guides - Improve PingOne setup section readability with better structure and formatting - Fix Linux installation instructions to match macOS style and correct URLs - Add comprehensive worker application setup guide (docs/setup-pingone-worker-application.md) - Detailed instructions for both Authorization Code and Device Authorization grants - Manual (PingOne console) and automated (Ping CLI) setup options - Administrative user setup and role assignment guidance - Verification steps and security best practices - Add comprehensive troubleshooting guide (docs/troubleshooting.md) - Debug mode configuration and usage - Authentication issues (8 common scenarios) - Configuration issues (5 common scenarios) - Runtime and tool execution issues - MCP client integration issues - Guidance on getting additional help - Update README to reference new documentation - Consolidate troubleshooting information from multiple locations
…ature/add-directory-total-identities-tool/pc/20241128
Base automatically changed from
docs/improve-readme-and-setup-docs/pc/20251211
to
main
December 11, 2025 19:53
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Description
This PR adds a new MCP tool collection for directory operations, starting with the
get_total_identities_by_environmenttool that retrieves total identity counts from PingOne environments.Type of Change
Related Issues
Relates to internal feature request for directory total identities reporting.
Testing
This PR has been tested with:
Commands Run
make testTest Results
Expand Test Results
Implementation Details
New Directory Collection
Added a new
directorytool collection underinternal/tools/directory/with the following components:Collection Registration (
collection.go)Get Total Identities Tool (
get_total_identities_by_environment.go)Client Abstractions (
client_interface.go,client_wrapper.go)Comprehensive Test Coverage (
*_test.go)Schema Utilities Enhancement
Added
EncodeFilterParamfunction tointernal/tools/schema/schema_helpers.go:Tool Registration
Updated
internal/tools/register.goto include the new directory collection in the server's tool registry.Checklist
Dependencies
Important: This PR depends on an upcoming update to the PingOne Go SDK (
pingone-go-client) to correct the data type of the total identities response payload. The current SDK implementation may need adjustments to properly handle the API response structure.pingidentity/pingone-go-client#52
Additional Context
This is the first tool in the new directory collection. Future enhancements may include additional directory-related operations such as:
The implementation follows existing patterns from the environments, applications, and populations collections for consistency.