analyze-codebase-for-mcp

Solid

Analyze an arbitrary codebase to identify functions, APIs, and data sources suitable for exposure as MCP tools, producing a tool specification document. Use when planning an MCP server for an existing project, auditing a codebase before wrapping it as an AI-accessible tool surface, comparing what a codebase can do versus what is already exposed via MCP, or generating a tool spec to hand off to scaffold-mcp-server.

AI & Automation 26 stars 3 forks Updated today MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
48
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Analyze Codebase for MCP Scan a codebase to discover functions, REST endpoints, CLI commands, and data access patterns that are good candidates for MCP tool exposure, then produce a structured tool specification document. ## When to Use - Planning an MCP server for an existing project and need to know what to expose - Auditing a codebase before wrapping it as an AI-accessible tool surface - Comparing what a codebase can do versus what is already exposed via MCP - Generating a tool specification document to hand off to `scaffold-mcp-server` - Evaluating whether a third-party library is worth wrapping as MCP tools ## Inputs - **Required**: Path to the codebase root directory - **Required**: Target language(s) of the codebase (e.g., TypeScript, Python, R, Go) - **Optional**: Existing MCP server code to compare against (gap analysis) - **Optional**: Domain focus (e.g., "data analysis", "file operations", "API integration") - **Optional**: Maximum number of tools to recommend (default: 20) ## Procedure ### Step 1: Scan Codebase Structure 1.1. Use `Glob` to map the directory tree, focusing on source directories: - `src/**/*.{ts,js,py,R,go,rs}` for source files - `**/routes/**`, `**/api/**`, `**/controllers/**` for endpoint definitions - `**/cli/**`, `**/commands/**` for CLI entry points - `**/package.json`, `**/setup.py`, `**/DESCRIPTION` for dependency metadata 1.2. Categorize files by role: - **Entry points**: main files, route handlers, CLI commands ...

Details

Author
pjt222
Repository
pjt222/agent-almanac
Created
1 years ago
Last Updated
today
Language
R
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category