search-registry
Skill956 starsChanged 2 months agoApache-2.0View on GitHub
Search the MCP Gateway Registry using semantic search. Takes a natural language query, calls the /api/search/semantic endpoint, and returns formatted results directly in the conversation.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- agentcore-registerSkill
- benchmark-reportSkill
- create-milestoneSkill
- debugSkill
- explainerSkill
- generate-agent-cardSkill
- generate-server-cardSkill
- infra-syncSkill
- macos-setupSkill
- new-feature-designSkill
- pr-reviewSkill
- release-notesSkill
- search-benchmarkSkill
- terraform-setupSkill
- usage-reportSkill
- usage-report-v0Skill
- writingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 16 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Search the MCP Gateway Registry for MCP servers, tools, A2A agents, skills, and virtual servers using the ai-registry-tools MCP server.
- Distinctive: line 39
If no query is provided, ask the user: "What would you like to search for in the registry?"
- Very specific: line 54
Look for the search_registry tool from the ai-registry-tools MCP server.
- Distinctive: line 62
Use ToolSearch to find the correct tool name if none of the above work.
- Distinctive: line 64
If the tool cannot be found, tell the user:
- Very specific: line 69
Call the search_registry tool with:
- Distinctive: line 119
After the tables, provide a brief plain-text summary of the top 3-5 most relevant results.
- Very specific: line 123
IMPORTANT: After presenting results, if any MCP servers were found that have an endpoint_url, ask the user:
- Distinctive: line 131
If the user says yes and picks a server, determine which AI Assistant is being used and add the server using the appropriate method for …
- Distinctive: line 135
Check for configuration files to determine the assistant in use:
- Very specific: line 137
Claude Code: Look for .mcp.json in the project root or ~/.claude/settings.json
- Very specific: line 138
Codex CLI: Look for codex.json or .codex/ configuration directory
- Distinctive: line 139
Other assistants: Ask the user which assistant they are using if it cannot be determined automatically
- Very specific: line 145
Run this command (either in a terminal or prefixed with !
- Very specific: line 161
Add the new server to the mcpServers object in ~/.claude.json (the user-level config file where ai-registry-tools and other MCP Gateway …
- Very specific: line 179
Update the Codex MCP configuration file (typically ~/.codex/mcp.json or the project-level equivalent):
- Distinctive: line 199
If the AI Assistant cannot be determined or is not one of the above, provide the user with the raw connection details and let them …
- Distinctive: line 213
Remove the leading slash
- Distinctive: line 215
Remove dots or replace them with hyphens
- Very specific: line 216
If the result is still unclear, use the server_name field as inspiration for a short, descriptive name
- Distinctive: line 225
After successfully adding the server, tell the user:
- Distinctive: line 233
If the semantic search returns no relevant results (or the user is unsure what to search for), fall back to listing the full catalog using …
- Distinctive: line 264
Server already exists in config: If the user picks a server that's already in their MCP configuration, tell them it's already configured.
- Distinctive: line 268
Always search ALL entity types.
- Distinctive: line 271
Do NOT add servers without user confirmation.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Search Registry Skill
Search the MCP Gateway Registry for MCP servers, tools, A2A agents, skills, and virtual servers using the ai-registry-tools MCP server.
Prerequisites
The user must have the AI Registry MCP server connected to their AI Assistant session. It may be registered under various names including:
ai-registry-toolsairegistry-toolsai_registry_toolsregistry-toolsmcp-registry
The key indicator is that one of these tools should be available:
mcp__ai-registry-tools__search_registrymcp__airegistry-tools__search_registry- or similar variations
Input
The skill accepts a natural language search query:
/search-registry <query>- query - What capability, tool, server, or agent the user is looking for (natural language)
If no query is provided, ask the user: "What would you like to search for in the registry?"
Examples
/search-registry tools for weather data
/search-registry exchange rates currency conversion
/search-registry document processing PDF
/search-registry travel booking flightsWorkflow
Step 1: Find the Registry Search Tool
Look for the search_registry tool from the ai-registry-tools MCP server. It may be available under different prefixes depending on how the user registered the server. Try these in order:
mcp__ai-registry-tools__search_registrymcp__airegistry-tools__search_registrymcp__ai_registry_tools__search_registrymcp__registry-tools__search_registrymcp__mcp-registry__search_registry
Use ToolSearch to find the correct tool name if none of the above work. Search for "search_registry" or "registry search".
If the tool cannot be found, tell the user:
"The AI Registry MCP server is not connected to this AI Assistant session. You need to add it first. See the registry documentation for connection instructions specific to your AI Assistant (Claude Code, Codex CLI, etc.)."
Step 2: Execute the Search
Call the search_registry tool with:
query: the user's natural language querymax_results: 10
Step 3: Present Results
Display the results in this format:
### Registry Search Results
**Query:** {query}
**Found:** {count} servers, {count} tools, {count} agents, {count} skills
---For each result category that has results, show a table:
MCP Servers
| Name | Path | Score | Tools | Transport | Endpoint |
| {server_name} | {path} | {relevance_score} | {num_tools} | {supported_transports} | {endpoint_url} |
For servers with matching_tools, list them below:
{server_name} matching tools:
| Tool | Description |
| {tool_name} | {description truncated to 80 chars} |
Tools
| Tool | Server | Score | Endpoint | Description |
| {tool_name} | {server_name} | {relevance_score} | {endpoint_url} | {description truncated to 80 chars} |
A2A Agents
| Name | Path | Score | URL | Description |
| {name} | {path} | {relevance_score} | {url} | {description truncated to 80 chars} |
Skills
| Name | Path | Score | Description |
| {skill_name} | {path} | {relevance_score} | {description truncated to 80 chars} |
After the tables, provide a brief plain-text summary of the top 3-5 most relevant results.
Step 4: Offer to Add MCP Servers
IMPORTANT: After presenting results, if any MCP servers were found that have an endpoint_url, ask the user:
"Would you like to add any of these MCP servers to your AI Assistant configuration? If so, which one(s)?"
Present the available servers as options (only those with a valid endpoint_url).
Step 5: Add Server to AI Assistant
If the user says yes and picks a server, determine which AI Assistant is being used and add the server using the appropriate method for that assistant.
Detecting the AI Assistant
Check for configuration files to determine the assistant in use:
- Claude Code: Look for
.mcp.jsonin the project root or~/.claude/settings.json - Codex CLI: Look for
codex.jsonor.codex/configuration directory - Other assistants: Ask the user which assistant they are using if it cannot be determined automatically
Adding for Claude Code
Method 1 (preferred): Use the claude mcp add command
Run this command (either in a terminal or prefixed with ! inside a Claude Code session):
claude mcp add --transport http --scope user <server-name> <endpoint_url>For example:
claude mcp add --transport http --scope user real-server-fake-tools https://mcpgateway.ddns.net/realserverfaketools/mcpThis saves the server to ~/.claude.json at user scope, making it available across all projects.
Method 2: Update ~/.claude.json directly
Add the new server to the mcpServers object in ~/.claude.json (the user-level config file where ai-registry-tools and other MCP Gateway servers are configured):
{
"mcpServers": {
"existing-server": { ... },
"new-server-name": {
"type": "http",
"url": "<endpoint_url from the search result>"
}
}
}Note: Do NOT add servers to the project-level .mcp.json file. That file is committed to git and should not contain user-specific MCP server configurations. Use ~/.claude.json (user scope) for servers that persist across projects.
Adding for Codex CLI
Update the Codex MCP configuration file (typically ~/.codex/mcp.json or the project-level equivalent):
{
"servers": {
"new-server-name": {
"url": "<endpoint_url from the search result>"
}
}
}Or use the Codex CLI command if available:
codex mcp add <server-name> --url <endpoint_url>Adding for Other Assistants
If the AI Assistant cannot be determined or is not one of the above, provide the user with the raw connection details and let them configure it manually:
"Here are the connection details for the server:
- Name: {server_name}
- Endpoint URL: {endpoint_url}
- Transport: streamable-http
Add this to your AI Assistant's MCP server configuration using the method appropriate for your tool."
Server Name Convention
Claude Code only allows server names containing letters, numbers, hyphens, and underscores. Dots and slashes are not allowed.
To derive a valid server name from the server's path field:
- Remove the leading slash
- Replace slashes with hyphens
- Remove dots or replace them with hyphens
- If the result is still unclear, use the
server_namefield as inspiration for a short, descriptive name
Examples:
- Path
/ai.agenticshelf-graffeowith server_name "ai.agenticshelf/graffeo" (a coffee catalog) becomesgraffeo-coffee - Path
/realserverfaketools/becomesreal-server-fake-tools - Path
/ai.com.mcp-openai-toolsbecomesopenai-tools
Step 6: Inform User About New Session
After successfully adding the server, tell the user:
"Server '{server_name}' has been added to your AI Assistant's MCP configuration.
You will need to start a new session to use this server's tools. I cannot start the new session for you, but you can continue this conversation in that session. The new tools from '{server_name}' will be available once you restart."
Fallback: Browse the Full Catalog
If the semantic search returns no relevant results (or the user is unsure what to search for), fall back to listing the full catalog using these tools:
list_services- Lists all registered MCP servers (unfiltered). Good for browsing what is available.list_agents- Lists all registered A2A agents.list_skills- Lists all registered skills.
Tell the user:
"The semantic search did not find a close match. Let me list the full catalog so you can browse what is available."
Then call the appropriate listing tool(s) and present the results in a similar table format. If the user finds something of interest from the listing, continue with Step 4 (offer to add it).
Additionally, if a skill is found that looks useful, offer to fetch its full instructions using get_skill_content with the skill name.
Available Registry Tools Reference
The ai-registry-tools MCP server provides these tools:
| Tool | Purpose |
search_registry | Semantic search across all entity types (primary search tool) |
list_services | List all MCP servers in the registry (unfiltered) |
list_agents | List all A2A agents in the registry (unfiltered) |
list_skills | List all skills in the registry (unfiltered) |
get_skill_content | Fetch full SKILL.md instructions for a skill by name |
healthcheck | Check registry health status and statistics |
Error Handling
- Tool not found: Tell the user the ai-registry-tools MCP server is not connected and how to add it.
- No results from search: Tell the user no results were found, then offer to list the full catalog using
list_services,list_agents, orlist_skillsso they can browse what is available. - Search error: Display the error message from the tool response and suggest the user check their registry connection.
- Server already exists in config: If the user picks a server that's already in their MCP configuration, tell them it's already configured.
Notes
- Always search ALL entity types. Do not ask the user to filter by category.
- The
endpoint_urlfield on servers is the streamable-http MCP endpoint that can be added directly to any AI Assistant that supports MCP. - Some servers may have authentication requirements. If the endpoint requires auth headers, note this to the user when offering to add the server. They may need to add headers manually to the config after.
- Do NOT add servers without user confirmation. Always ask first.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

