| Age | Commit message (Collapse) | Author |
|
Change initDebugLog() and defaultLogPath() to return errors instead of
panicking. Callers now handle errors gracefully with proper messages.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
|
Replace per-iteration time.After with a single time.NewTimer that is
reused via Reset() and cleaned up with defer Stop(). Prevents leaking
a timer and channel on every retry iteration.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
|
Replace bare package-level vars with atomic.Pointer[log.Logger] for std
and atomic.Int32 for logPreviewLimit to prevent concurrent access races.
Add comprehensive tests including concurrency, edge cases, and nil logger.
Coverage: 100%.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
|
Bring unit test coverage from ~75% to 85.1% project-wide. All internal
packages now exceed 80% coverage. Refactored cmd entrypoints to extract
testable run() functions with injectable seams.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Add deprecation notices across hexai-mcp-server codebase and documentation.
The MCP server is now considered experimental and not actively maintained,
as prompts are managed through slash commands and meta-commands instead.
Changes:
- Add runtime deprecation warning to stderr on binary startup
- Mark feature as deprecated in README.md
- Add deprecation notices to all 8 MCP documentation files
- Add deprecation log message to run.go
- Update Magefile.go build comment
The code remains fully functional but warns users of its experimental status.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
|
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
|
Amp-Thread-ID: https://ampcode.com/threads/T-019c50bc-2906-77db-a31e-0d553338d99b
Co-authored-by: Amp <amp@ampcode.com>
|
|
Adds optional syncing of MCP prompts to Markdown slash command files
for AI agents that don't yet support MCP prompts (e.g., Cursor IDE).
Features:
- Syncs prompts on create/update/delete operations
- Configurable via TOML config, environment vars, or CLI flags
- Backfill support with --sync-all flag
- Thread-safe atomic file writes
- Non-fatal sync failures (logged but don't break operations)
- Comprehensive test coverage (81.1% total)
Configuration:
- Config: [mcp] slashcommand_sync = true, slashcommand_dir = "~/.cursor/commands"
- Env: HEXAI_MCP_SLASHCOMMAND_SYNC, HEXAI_MCP_SLASHCOMMAND_DIR
- CLI: --slashcommand-sync, --slashcommand-dir, --sync-all
Fixes config merging bug where project config would reset global MCP settings.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
|
|
|
Update update_prompt and delete_prompt meta-prompts to work without requiring
Claude to programmatically fetch prompts via prompts/get (which isn't available
as a callable tool in the MCP client).
Changes:
- delete_prompt: Simplified to just ask for confirmation without fetching
- update_prompt: Ask what changes to make without fetching current version
- Removed duplicate/confusing instructions
- More direct workflow: confirm → execute tool
This fixes the issue where Claude would try to use listMcpResources or other
incorrect APIs when trying to follow the meta-prompt instructions.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
|
Update update_prompt and delete_prompt meta-prompts to explicitly instruct
Claude to use "prompts/get" instead of vague "access via prompts capability".
This prevents Claude from incorrectly trying to use the resources API.
Changes:
- update_prompt: "use prompts/get to retrieve the current prompt"
- delete_prompt: "use prompts/get to retrieve the prompt and show details"
Fixes issue where Claude would try to access "plugin:hexai-prompts" resources
instead of using the correct prompts/get method on the hexai-prompts server.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
|
Adds a third built-in meta-prompt for interactively deleting custom prompts
with confirmation. This completes the prompt management trilogy (save, update,
delete).
Changes:
- Add delete_prompt meta-prompt with prompt_name argument
- Interactive workflow: show prompt → confirm → delete via delete_prompt tool
- Update test to expect 3 built-in prompts (was 2)
- Includes safety notes about built-in prompts and backups
The meta-prompt ensures users see what they're deleting and must explicitly
confirm before the delete_prompt tool is called.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|