# adibitz/github-repo-finding-plugin architecture

> Architecture diagram of the GitHub repository adibitz/github-repo-finding-plugin, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/adibitz/github-repo-finding-plugin
- Repository: https://github.com/adibitz/github-repo-finding-plugin

## Overview

find-github-tool is an MCP-based open-source tool finder. An AI assistant structures a user’s request, searches federated catalogs, ranks and filters candidates, then can inspect finalists, verify must-haves against documentation, gather community opinions, and render a comparison. Separate MCP tools expose these stages; the server owns dispatch. The README also documents multi-host installation. Some source adapters and verification details were not excerpted, so those relationships are shown only where the README or source index supports them.

Main entry points: [`src/server/server.ts`](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/server/server.ts) (MCP server), [`src/engine/search.ts`](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/engine/search.ts) (Search orchestration), [`src/sources/http.ts`](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/sources/http.ts) (HTTP client), [`src/sources/registry.ts`](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/sources/registry.ts) (Source selection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Assistant interface"]
  node_mcp["MCP server<br/>[server.ts]"]
  node_playbook["Interview playbook<br/>[playbook.ts]"]
end

subgraph group_discovery["Discovery and ranking"]
  node_spec["Request spec<br/>[spec.ts]"]
  node_search["Search orchestration<br/>[search.ts]"]
  node_registry["Source selection<br/>[registry.ts]"]
  node_merge["Candidate merging<br/>[merge.ts]"]
  node_ranking["Filters and ranking<br/>[score.ts]"]
end

subgraph group_assessment["Candidate assessment"]
  node_details["Tool details<br/>[details.ts]"]
  node_assess["Health, setup, license<br/>[health.ts]"]
  node_docs["Documentation reader<br/>[docs.ts]"]
  node_verify["Lead verification<br/>[verify.ts]"]
  node_report["Comparison renderer<br/>[report.ts]"]
end

subgraph group_sources["External sources"]
  node_forge["Forge searches<br/>[github.ts]"]
  node_catalogs["Catalog adapters"]
  node_community["Community opinions<br/>[community.ts]"]
  node_http["HTTP client<br/>[http.ts]"]
  node_cache[("Response cache<br/>[cache.ts]")]
end

subgraph group_setup["Installation"]
  node_installer["Host installer<br/>[install.ts]"]
  node_hosts["Host configuration<br/>[hosts.ts]"]
end

node_user(("Tool seeker"))
node_assistant(("AI assistant"))
node_services{{"Search and catalog services"}}
node_hostapps{{"Supported AI apps"}}

node_user -->|"describes need"| node_assistant
node_assistant -->|"invokes tools"| node_mcp
node_mcp -->|"serves prompt"| node_playbook
node_mcp -->|"parses request"| node_spec
node_mcp -->|"dispatches search"| node_search
node_search -->|"selects sources"| node_registry
node_search -->|"merges candidates"| node_merge
node_search -->|"filters and scores"| node_ranking
node_registry -->|"dispatches searches"| node_forge
node_registry -->|"dispatches searches"| node_catalogs
node_forge -->|"requests data"| node_http
node_catalogs -.->|"requests data"| node_http
node_http -->|"reads and writes"| node_cache
node_services -->|"provides repository data"| node_forge
node_services -->|"provides listings"| node_catalogs
node_mcp -->|"dispatches details"| node_details
node_details -->|"assesses candidates"| node_assess
node_mcp -->|"dispatches reading"| node_docs
node_mcp -->|"dispatches verification"| node_verify
node_verify -->|"uses details"| node_details
node_verify -->|"checks documentation"| node_docs
node_mcp -->|"dispatches opinions"| node_community
node_community -->|"requests discussions"| node_http
node_mcp -->|"renders comparison"| node_report
node_user -->|"requests installation"| node_installer
node_installer -->|"configures hosts"| node_hosts
node_installer -->|"registers server"| node_hostapps

click node_mcp "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/server/server.ts"
click node_playbook "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/server/playbook.ts"
click node_spec "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/core/spec.ts"
click node_search "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/engine/search.ts"
click node_registry "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/sources/registry.ts"
click node_merge "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/core/merge.ts"
click node_ranking "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/core/score.ts"
click node_forge "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/sources/github.ts"
click node_catalogs "https://github.com/adibitz/github-repo-finding-plugin/tree/main/src/sources"
click node_community "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/sources/community.ts"
click node_http "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/sources/http.ts"
click node_cache "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/sources/cache.ts"
click node_details "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/engine/details.ts"
click node_assess "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/core/health.ts"
click node_docs "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/engine/docs.ts"
click node_verify "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/engine/verify.ts"
click node_report "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/core/report.ts"
click node_installer "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/installer/install.ts"
click node_hosts "https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/installer/hosts.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mcp,node_playbook toneBlue
class node_spec,node_search,node_registry,node_merge,node_ranking toneAmber
class node_details,node_assess,node_docs,node_verify,node_report toneMint
class node_forge,node_catalogs,node_community,node_http,node_cache toneRose
class node_installer,node_hosts,node_user,node_assistant,node_services,node_hostapps toneIndigo
```

## Components

### Assistant interface

- [MCP server](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/server/server.ts): `src/server/server.ts`
- [Interview playbook](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/server/playbook.ts): `src/server/playbook.ts`

### Discovery and ranking

- [Request spec](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/core/spec.ts): `src/core/spec.ts`
- [Search orchestration](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/engine/search.ts): `src/engine/search.ts`
- [Source selection](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/sources/registry.ts): `src/sources/registry.ts`
- [Candidate merging](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/core/merge.ts): `src/core/merge.ts`
- [Filters and ranking](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/core/score.ts): `src/core/score.ts`

### Candidate assessment

- [Tool details](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/engine/details.ts): `src/engine/details.ts`
- [Health, setup, license](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/core/health.ts): `src/core/health.ts`
- [Documentation reader](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/engine/docs.ts): `src/engine/docs.ts`
- [Lead verification](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/engine/verify.ts): `src/engine/verify.ts`
- [Comparison renderer](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/core/report.ts): `src/core/report.ts`

### External sources

- [Forge searches](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/sources/github.ts): `src/sources/github.ts`
- [Catalog adapters](https://github.com/adibitz/github-repo-finding-plugin/tree/main/src/sources): `src/sources`
- [Community opinions](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/sources/community.ts): `src/sources/community.ts`
- [HTTP client](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/sources/http.ts): `src/sources/http.ts`
- [Response cache](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/sources/cache.ts): `src/sources/cache.ts`

### Installation

- [Host installer](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/installer/install.ts): `src/installer/install.ts`
- [Host configuration](https://github.com/adibitz/github-repo-finding-plugin/blob/main/src/installer/hosts.ts): `src/installer/hosts.ts`

### Other components

- **Tool seeker**
- **AI assistant**
- **Search and catalog services**
- **Supported AI apps**

## Connections

- Tool seeker → AI assistant: describes need (evidence: `README.md`)
- AI assistant → MCP server: invokes tools (evidence: `README.md`)
- MCP server → Interview playbook: serves prompt (evidence: `src/server/server.ts`)
- MCP server → Request spec: parses request (evidence: `src/server/server.ts`)
- MCP server → Search orchestration: dispatches search (evidence: `src/server/server.ts`)
- Search orchestration → Source selection: selects sources (evidence: `src/engine/search.ts`)
- Search orchestration → Candidate merging: merges candidates (evidence: `src/engine/search.ts`)
- Search orchestration → Filters and ranking: filters and scores (evidence: `src/engine/search.ts`)
- Source selection → Forge searches: dispatches searches (evidence: `src/sources/registry.ts`)
- Source selection → Catalog adapters: dispatches searches (evidence: `src/sources/registry.ts`)
- Forge searches → HTTP client: requests data (evidence: `src/sources/github.ts`)
- Catalog adapters → HTTP client: requests data (evidence: `src/sources/github.ts`)
- HTTP client → Response cache: reads and writes (evidence: `src/sources/http.ts`)
- Search and catalog services → Forge searches: provides repository data (evidence: `src/sources/github.ts`)
- Search and catalog services → Catalog adapters: provides listings (evidence: `README.md`)
- MCP server → Tool details: dispatches details (evidence: `src/server/server.ts`)
- Tool details → Health, setup, license: assesses candidates (evidence: `src/engine/details.ts`)
- MCP server → Documentation reader: dispatches reading (evidence: `src/server/server.ts`)
- MCP server → Lead verification: dispatches verification (evidence: `src/server/server.ts`)
- Lead verification → Tool details: uses details (evidence: `src/engine/verify.ts`)
- Lead verification → Documentation reader: checks documentation (evidence: `src/engine/verify.ts`)
- MCP server → Community opinions: dispatches opinions (evidence: `src/server/server.ts`)
- Community opinions → HTTP client: requests discussions (evidence: `src/sources/community.ts`)
- MCP server → Comparison renderer: renders comparison (evidence: `src/server/server.ts`)
- Tool seeker → Host installer: requests installation (evidence: `README.md`)
- Host installer → Host configuration: configures hosts (evidence: `src/installer/install.ts`)
- Host installer → Supported AI apps: registers server (evidence: `README.md`)
