Mcp grep code

From Dicklesworthstone/pi_agent_rust · View interactive version

Mcp grep code is an AI agent skill from the GitHub repository Dicklesworthstone/pi_agent_rust. Search real-world code examples from over a million public GitHub repositories. Use when finding code patterns, implementation examples, or how libraries are used in practice. Triggers on "find code examples", "how is [library] used", "search GitHub code", "grep.app search", "code pattern".

How to use this skill

Skill file

Grep.app Code Search

MCP service at https://mcp.grep.app (http) with 1 tool.

Requirements

```bash

curl -fsSL https://raw.githubusercontent.com/vaayne/mcphub/main/scripts/install.sh | sh

```

Usage

List tools: mh -u https://mcp.grep.app -t http list

Get tool details: mh -u https://mcp.grep.app -t http inspect searchGitHub

Invoke tool: mh -u https://mcp.grep.app -t http invoke searchGitHub '{"query": "pattern"}'

Notes

Tools

| Tool | Description |

| -------------- | --------------------------------------------------------------------------------------------------------------------------- |

| searchGitHub | Find real-world code examples from public GitHub repositories. Searches for literal code patterns across millions of repos. |

Search Tips

Good queries (literal code patterns):

Bad queries (keywords - won't work well):

Examples

# Find useState usage patterns
mh -u https://mcp.grep.app -t http invoke searchGitHub '{"query": "useState("}'

# Find async/await patterns
mh -u https://mcp.grep.app -t http invoke searchGitHub '{"query": "async function fetch"}'

# Find import patterns
mh -u https://mcp.grep.app -t http invoke searchGitHub '{"query": "from \"openai\""}'
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.