feat: Implement guided interactive register command (agent register) and unit tests - #1823
Merged
fderuiter merged 3 commits intoAug 13, 2026
Conversation
Contributor
Author
|
[CI/CD Fix Attempt 1] Root CauseThe pytest suite was failing to collect Resolution
|
Contributor
Author
|
[CI/CD Fix Attempt 2] Verification of the FixWe have successfully reproduced the previous failure locally and verified that the fix resolves the issue.
|
… fix docstring issues
Contributor
Author
|
[CI/CD Fix Attempt 3] Root Cause
Resolution
Local Verification
|
fderuiter
deleted the
jules/feature-interactive-register-js0-b7cfd1cf-ca67-4fe4-bf8e-16ca07e9fa39
branch
August 13, 2026 18:19
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
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.
Guided Interactive Register Command (
agent register)Context & Purpose
Manual registration of the MCP server previously required users to locate deep operating system folders, copy configurations, and merge JSON files manually. This pull request implements the requested interactive, guided registration command
agent registerwhich automates this setup safely.Key Changes
Interactive Subcommand Registration (
promptops/promptops/cli.py):agent registercommand.register_agent.generate-cli-docs(docs/CLI.md).Platform-Specific Path Resolution (
promptops/promptops/agent.py):~/Library/Application Support/Claude/claude_desktop_config.json) and Windows (expanding%APPDATA%, falling back to~/AppData/Roaming/Claude/claude_desktop_config.json).Secure JSON Parsing, Deep Merging, and Backup Operations:
proomptsconfiguration block, keeping existing settings intact.difflib.unified_diff) showing exact original vs. proposed states.[y/N]) before any disk writes..bakextension) prior to performing disk writes.Robust Mockable Unit Tests (
tests/test_register.py):WORKFLOWS_DIRinagent.pyto prevent pytest caching/collection interference.All unit tests are passing perfectly!