Fix: migrate /search to /lookup after Capacities API deprecation#9
Merged
jem-computer merged 17 commits intoApr 21, 2026
Merged
Conversation
This commit adds a new tool `capacities_read_object_content` that allows retrieving the full content of Capacities objects by their ID. Features: - Attempts undocumented API endpoints first for direct object retrieval - Falls back to search API with smart aggregation of highlights/snippets - Supports optional title parameter to improve search results - Handles multiple highlight data structures (strings, objects with various field names) - Aggregates content from snippet, highlights, and other content fields The tool works around the limitation that the official Capacities API doesn't provide a dedicated endpoint for reading individual objects. Files changed: - src/tools/readObjectContent.ts: Main implementation - src/tools/readObjectContent.test.ts: Test file - src/tools/index.ts: Export new tool - src/server.ts: Register tool with MCP server - README.md: User documentation - CLAUDE.md: Developer documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
The completion/complete handler error was caused by fastmcp 1.x not properly declaring capabilities when setting up completion handlers. Updating to latest fastmcp should resolve the "Server does not support completions" error.
New package name for independent npm publishing with enhanced features. Reset version to 1.0.0 for fresh start.
- Add "What's Different from Original" comparison table - Add Windows installation instructions with cmd wrapper - Update repository links to Im-Hal-9K fork - Add new tool documentation for capacities_read_object_content - Add Credits section acknowledging original author - Update example prompts with reading content examples
- Add glama.json with server metadata and tool descriptions - Add Glama badge to README
New prompt `capacities-job-application` generates properly formatted markdown files with YAML frontmatter for importing job applications into Capacities. Includes fields for company, role, job board, posting link, description, skills, summary, tags, and status. Workaround for Capacities API not having a create object endpoint.
This fixes tool registration issues with Claude Desktop by using the same MCP library that working servers (like gtoolsmcp) use. - Replace fastmcp dependency with @modelcontextprotocol/sdk - Rewrite server.ts to use official SDK patterns - Consolidate tools and prompts into server.ts - Remove separate tool and prompt module files - Update biome config to ignore dist/ - Bump version to 1.2.0
- Add startup log to stderr like gtoolsmcp - Remove prompts capability (gtoolsmcp only has tools) - Rename server to 'capacities-mcp' (lowercase with hyphen)
The configuration field is not recognized by Claude Desktop's DXT installer and was causing installation to fail with: "Invalid manifest: Unrecognized key(s) in object: 'configuration'"
- Remove 4 undocumented endpoint attempts in handleReadObjectContent that were firing on every call and likely triggering rate limits - Default search mode to "title" when not specified - Add specific error messages for 500 and 429 responses with endpoint context Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Owner
|
totally missed this, sorry for the delay in merging! thank you! |
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.
Summary
/searchon Jan 30, 2026 and hard-removed it ~end of Marchcapacities_read_object_contentwas failing with 404 because it called/searchinternallyhandleSearch()andhandleReadObjectContent()to use/lookupfirst with fallback to/searchTest plan
capacities_searchreturns resultscapacities_read_object_contentno longer 404s🤖 Generated with Claude Code