parcadei / morph-search
Install for your project team
Run this command in your project directory to install the skill for your entire team:
mkdir -p .claude/skills/morph-search && curl -L -o skill.zip "https://fastmcp.me/Skills/Download/1096" && unzip -o skill.zip -d .claude/skills/morph-search && rm skill.zip
Project Skills
This skill will be saved in .claude/skills/morph-search/ and checked into git. All team members will have access to it automatically.
Important: Please verify the skill by reviewing its instructions before using it.
Fast codebase search via WarpGrep (20x faster than grep)
0 views
0 installs
Skill Content
---
name: morph-search
description: Fast codebase search via WarpGrep (20x faster than grep)
allowed-tools: [Bash, Read]
---
# Morph Codebase Search
Fast, AI-powered codebase search using WarpGrep. 20x faster than traditional grep.
## When to Use
- Search codebase for patterns, function names, variables
- Find code across large codebases quickly
- Edit files programmatically
## Usage
### Search for code patterns
```bash
uv run python -m runtime.harness scripts/mcp/morph_search.py \
--search "authentication" --path "."
```
### Search with regex
```bash
uv run python -m runtime.harness scripts/mcp/morph_search.py \
--search "def.*login" --path "./src"
```
### Edit a file
```bash
uv run python -m runtime.harness scripts/mcp/morph_search.py \
--edit "/path/to/file.py" --content "new content"
```
## Parameters
| Parameter | Description |
|-----------|-------------|
| `--search` | Search query/pattern |
| `--path` | Directory to search (default: `.`) |
| `--edit` | File path to edit |
| `--content` | New content for file (use with `--edit`) |
## Examples
```bash
# Find all async functions
uv run python -m runtime.harness scripts/mcp/morph_search.py \
--search "async def" --path "./src"
# Search for imports
uv run python -m runtime.harness scripts/mcp/morph_search.py \
--search "from fastapi import" --path "."
```
## vs ast-grep
| Tool | Best For |
|------|----------|
| **morph/warpgrep** | Fast text/regex search (20x faster) |
| **ast-grep** | Structural code search (understands syntax) |
## MCP Server Required
Requires `morph` server in mcp_config.json with `MORPH_API_KEY`.