makostechsolutions
MCP Servermakostechsolutionspublic

mcp analyzer

用于解析和可视化 Modular Code Protocol (MCP) 标准注释代码的现代 React 应用。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
TypeScript
Language
-
License

About This Server

用于解析和可视化 Modular Code Protocol (MCP) 标准注释代码的现代 React 应用。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

MCP Analyzer

MCP Analyzer is a modern React application for analyzing code annotated with the Modular Code Protocol (MCP) standard. It enables users to parse, validate, and visualize MCP blocks from pasted code or GitHub repositories, providing a clear overview of tools, prompts, and resources in a project.

Features

  • MCP Parsing: Extracts and validates MCP-annotated blocks (tools, prompts, resources) from code.
  • Repository Integration: Analyze public GitHub repositories for MCP blocks.
  • Graph Visualization: Visualizes tools, prompts, and resources as a graph with color-coded nodes and tooltips.
  • Export/Share: Export parsed results as JSON.
  • Error Feedback: Displays detailed errors for invalid MCP blocks.
  • Modern UI: Built with Chakra UI for a clean, responsive interface.

Documentation

  • Architecture
  • Implementation Notes: Plan vs. Actual
  • Reflection
  • MCP Parser
  • Github Service

Getting Started

Prerequisites

  • Node.js (v16+ recommended)
  • npm or yarn

Installation

git clone git@github.com:makostechsolutions/mcp-analyzer.git
cd mcp-analyzer
npm install
# or
yarn install

Running the App

npm run dev

The app will be available at http://localhost:5173.

Running Tests

npm test

Usage

1. Analyze Code

  • Paste MCP-annotated code into the input area.
  • Click Analyze to parse and visualize the code.

2. Analyze a GitHub Repository

  • Switch to the GitHub Repo tab.
  • Enter a public repository URL (must contain MCP annotations).
  • Click Analyze.

3. View Results

  • Parsed tools, prompts, and resources are listed.
  • Errors are shown for invalid MCP blocks.
  • The graph visualizes relationships between components.
  • Hover nodes for tooltips; click to see details (if enabled).

4. Export Results

  • Click Export as JSON to download the parsed results.

MCP Annotation Example

@tool{
  "name": "myTool",
  "description": "Does something",
  "parameters": {
    "type": "object",
    "properties": {
      "input": { "type": "string", "description": "Input value" }
    },
    "required": ["input"]
  }
}

@prompt{
  "name": "myPrompt",
  "description": "A prompt",
  "template": "Hello {{name}}!",
  "variables": ["name"]
}

@resource{
  "name": "myResource",
  "type": "file",
  "path": "/data/file.txt"
}

Project Structure

src/
  components/
    MCPDemo.tsx        # Main demo component
    MCPGraph.tsx       # Graph visualization component
    MCPResults.tsx     # Results display component
    RepoOrPasteInput.tsx # Input component for repo or code paste
  services/
    analyzer/          # Analysis service - sudo code for future features
    github/            # GitHub API integration - tests included
    parser/            # MCP parsing and validation - tests included
  types/              # TypeScript types
  assets/             # Static assets
  App.tsx             # Main application component
  main.tsx            # Application entry point
  index.css           # Global styles

docs/                # Documentation
public/              # Public assets

Contributing

  1. Fork the repo and create a feature branch.
  2. Add/fix code and tests.
  3. Run npm test to ensure all tests pass.
  4. Submit a pull request with a clear description.

Future Enhancements

  • Node click details in the graph
  • Edge customization and validation feedback
  • Repository file browsing
  • Support for private repositories (with authentication)
  • Improved MCP block validation and suggestions

License

MIT

Quick Start

1

Clone the repository

git clone https://github.com/makostechsolutions/mcp-analyzer
2

Install dependencies

cd mcp-analyzer
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownermakostechsolutions
Repomcp-analyzer
LanguageTypeScript
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation