A structural code search engine for AI agents. Fast context layer that finds relevant files and provides code intelligence using Tree-sitter for precise, compiler-grade analysis.
Mantic provides solid naming conventions (all tools start with action verbs: search_, get_, find_, analyze_, session_) and comprehensive descriptions for all 9 tools. Tool descriptions are well-written (100-200 character range), explaining when to use each tool. However, there are critical gaps in schema documentation and parameter descriptions that prevent a higher score. All tools have Zod schemas in the source (SearchFilesSchema, GetDefinitionSchema, etc.) which are properly typed, but output schemas are not documented anywhere, LLMs cannot plan what fields to expect from responses. The session-based context carryover feature is well-designed, but several parameters lack format/constraint details in descriptions. Error handling is absent from tool definitions, no guidance on what to do if a search fails or a session cannot be created.
Analyze a natural language query to understand intent category and extract keywords. Returns the detected category (UI, backend, auth, etc.), confidence score, and extracted keywords. Useful for understanding what kind of code changes are being requested.
Find all usages/references of a symbol across the codebase. Useful for refactoring or understanding usage patterns. Returns a list of file paths and line numbers with context snippets.
Go to the definition of a class, function, or symbol. Uses Tree-sitter for precise, compiler-grade code intelligence. Returns the file path, line number, and snippets of the definition.
Fast code search that finds the most relevant files for a given query. Uses brain-inspired scoring to prioritize business logic over boilerplate. Returns file paths with relevance scores, metadata, and optional impact analysis. Perfect for finding where specific functionality is implemented and understanding blast radius before making changes. Supports context carryover when sessionId is provided.
End an agent session and persist its data. Sessions should be ended when the task is complete to free up resources.
Output schemas are completely undocumented. Tools return results but LLMs have no way to know what fields exist in responses (file paths, scores, metadata structure, session IDs, query history, etc.). This prevents downstream tool chaining and forces LLMs to guess at response structure.
No error handling guidance in tool definitions. What happens if search_files returns no results? If a sessionId is invalid? If the working directory doesn't exist? No recovery guidance provided to LLMs.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | C | 62 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 32 | - | v1 |
Get detailed information about a specific session. Returns full session data including viewed files, query history, and insights.
List all agent sessions in the current project. Returns session metadata including ID, name, intent, query count, and files viewed.
Record files viewed or modified during a session. This enables context carryover - viewed files will be boosted in subsequent searches.
Start a new agent session for tracking context across multiple queries. Sessions enable context carryover - files viewed in the session are boosted in future searches. Returns session ID and metadata.
Parameter 'cwd' is optional and defaults to 'current directory', but what constitutes the current directory in an MCP context? This is ambiguous for remote execution. The default should be explicit or the parameter should be required with clear semantics.
Parameter 'maxResults' has no min/max bounds documented. Can it be 0? 1000000? The description says 'default: 20' but does not specify valid range, inviting LLMs to pass invalid values.
Parameter 'filter' enum values ('code', 'config', 'test', 'all') lack explanation of what each includes. Does 'code' include TypeScript, JavaScript, JSON? Does 'config' include .env files? Descriptions are missing.
session_record_view parameter 'files' is an array of objects with properties 'path', 'viewed', 'modified', but the description does not explain the difference between 'viewed' and 'modified' or when to set each flag. LLMs cannot infer semantics.
The 'sessionId' parameter in search_files is described as optional and says it 'boosts previously viewed files', but there is no documentation of what a session ID looks like, how long it's valid, or what happens if an invalid sessionId is passed.