MCP.so
ログイン

Time Complexity MCP Server

@Luzgan

基本情報

カテゴリ

生産性

最終更新

作者

Luzgan

Time Complexity MCP Server について

MCP server that estimates Big-O time complexity of your code through static analysis using tree-sitter

Time Complexity MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "time-complexity": {
      "type": "stdio",
      "command": "node",
      "args": [
        "/absolute/path/to/time-complexity-mcp/dist/index.js"
      ]
    }
  }
}

Time Complexity MCP Server のツール

5

Analyze all functions in a source file. Returns per-function Big-O with reasoning and line annotations.

Analyze a single function by name or line number.

Scan a directory for all supported files. Returns a summary with hotspots (top 5 most complex functions).

Clone a GitHub repo and analyze complexity. Accepts `owner/repo` or full URL. Requires `git` in PATH.

List supported languages with file extensions.

概要

What is Time Complexity?

MCP server that estimates Big-O time complexity of your code through static analysis using tree-sitter

How to use Time Complexity?

The README includes setup instructions such as No C++ compiler or npm installrequired — just Node.js 18+. Theanalyze_github_repotool also requiresgit in PATH..

Key features of Time Complexity

  • Recursion — linear recursion (O(n)) vs branching recursion like fibonacci (O(2^n))
  • Combined complexity — an O(n) method inside an O(n) loop correctly reports O(n^2)
  • Static analysis only. Code is parsed into ASTs and inspected — never evaluated, executed, or imported
  • Read-only file access. Source files are read for parsing. Nothing is written, modified, or deleted
  • Trusted native addons. Tree-sitter grammars are compiled NAPI addons from verified sources

Use cases of Time Complexity

  • Connect an MCP-compatible client to this repository's service.
  • Review the README-backed setup before enabling it in production.

よくある質問

1

Where is the source code for Time Complexity?

The source code is linked from the repository URL on this page.

2

Does Time Complexity include a standard MCP config?

If the README contains a parseable MCP configuration block, it is shown in the Config tab.

コメント

「生産性」の他のコンテンツ