Javalens MCP 标志

Javalens MCP

社区
pzalutski-pixel

MCP server providing semantic Java code analysis for AI agents. Built on Eclipse JDT with tools for navigation, refactoring, search, and metrics.

发布者pzalutski-pixel
代码仓库javalens-mcp
语言Java
复刻数
12
星标数
44
可用工具
0
传输类型stdio
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    Javalens MCP 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 44 个星标和 12 个复刻。

JavaLens: AI-First Code Analysis for Java

GitHub release License: MIT Java 21

An MCP server providing 75 semantic analysis tools for Java, built directly on Eclipse JDT for compiler-accurate code understanding.

Built for AI Agents

JavaLens exists because AI systems need compiler-accurate insights that reading source files cannot provide. When an AI uses grep or Read to find usages of a method, it cannot distinguish:

  • A method call from a method with the same name in an unrelated class
  • A field read from a field write
  • An interface implementation from an unrelated class
  • A cast to a type from other references to that type

This leads to incorrect refactorings, missed usages, and incomplete understanding of code behavior.

Compiler-Accurate Analysis

JavaLens provides compiler-accurate code analysis through Eclipse JDT—the same engine that powers Eclipse IDE. Unlike text search, JDT understands:

  • Type resolution across inheritance hierarchies
  • Method overloading and overriding
  • Generic type arguments
  • Import resolution and classpath dependencies
  • Java source from version 1.1 through Java 25 (markdown Javadoc, module imports, compact source files, flexible constructor bodies)
  • Lombok-generated members — a bundled agent makes @Data accessors and the like resolve, so code using them is not flagged as undefined

Example: Finding all places where UserService.save() is called:

ApproachResult
grep "save("Returns 47 matches including orderService.save(), saveButton, comments
find_referencesReturns exactly 12 calls to UserService.save()

AI Training Bias Warning

⚠️ Important for AI developers and users

AI models may exhibit trained bias toward native tools (Grep, Read, LSP) over MCP server tools, even when semantic analysis provides better results. This happens because:

  1. Training data contains extensive grep/text-search patterns
  2. Native tools are "always available" in the model's experience
  3. The model may not recognize when semantic analysis is superior

To get the best results:

Add guidance to your project instructions or system prompt (e.g., CLAUDE.md for Claude Code):

markdown
## Code Analysis Preferences

For Java code analysis, prefer JavaLens MCP tools over text search:
- Use `find_references` instead of grep for finding usages
- Use `find_implementations` instead of text search for implementations
- Use `analyze_type` to understand a class before modifying it
- Use refactoring tools (rename_symbol, extract_method) for safe changes

Semantic analysis from JDT is more accurate than text-based search,
especially for overloaded methods, inheritance, and generic types.

What is JavaLens?

JavaLens is an MCP server that gives AI assistants deep understanding of Java codebases. It provides semantic analysis, navigation, refactoring, and code intelligence tools that go beyond simple text search.

Why Not LSP?

Language Server Protocol was designed for IDE autocomplete and basic navigation—not for AI agent workflows that require deep semantic analysis.

CapabilityNative LSPJavaLens
Find all @Annotation usages❌✅
Find all new Type() instantiations❌✅
Find all casts to a type❌✅
Distinguish field reads from writes❌✅
Detect circular package dependencies❌✅
Calculate cyclomatic complexity❌✅
Find unused private methods❌✅
Detect possible null pointer bugs❌✅
Project-wide dead-code reachability from entry points❌✅
Find the tests that exercise a symbol, transitively❌✅

JavaLens wraps Eclipse JDT Core directly via OSGi, providing:

  • Fine-grained reference types: Find specifically casts, annotations, throws clauses, catch blocks, instanceof checks, method references, type arguments
  • Read vs write access distinction: Track where fields are mutated vs just read
  • Indexed search: JDT pre-builds an index at load time, so symbol/reference queries do not walk source files
  • Full AST access: Direct manipulation for complex refactorings

Installation

Prerequisites

  • Java 21 or later (must be on PATH or set JAVA_HOME) — required for both install paths.
  • Node.js 18+ — required only if you use the npm/npx install path below. Skip if you use the direct-download path.

JavaLens is an analytical server, not a compiler. It uses Eclipse JDT 2025-12 to parse and understand Java source code from version 1.1 through 25. Java 21 is required only as the server runtime.

Install from GitHub Releases (recommended — Java only)

This is the simplest path if you already have Java 21 and don't have Node.js. Download from Releases:

PlatformFile
All platformsjavalens.zip or javalens.tar.gz

Extract to a location of your choice (e.g., /opt/javalens or C:\javalens). Then point your MCP client at the bundled jar — see Configure MCP Client below.

Install via npm (requires Node.js 18+)

If you already have Node.js, npx will download and cache the JavaLens distribution (~23 MB) on first run:

json
{
  "mcpServers": {
    "javalens": {
      "command": "npx",
      "args": ["-y", "javalens-mcp"],
      "env": {
        "JAVA_PROJECT_PATH": "/path/to/your/java/project"
      }
    }
  }
}

Configure MCP Client

Add to your MCP configuration (e.g., .mcp.json for Claude Code):

json
{
  "mcpServers": {
    "javalens": {
      "command": "java",
      "args": ["-jar", "/path/to/javalens/javalens.jar", "-data", "/path/to/javalens-workspaces"]
    }
  }
}

The -data argument specifies where JavaLens stores its workspace metadata. See How Workspaces Work below.

Auto-Load a Project

Set JAVA_PROJECT_PATH to auto-load a project when the server starts:

json
{
  "mcpServers": {
    "javalens": {
      "command": "java",
      "args": ["-jar", "/path/to/javalens/javalens.jar", "-data", "/path/to/javalens-workspaces"],
      "env": {
        "JAVA_PROJECT_PATH": "/path/to/your/java/project"
      }
    }
  }
}

Note: Project loading happens asynchronously in the background. The MCP server responds immediately while the project loads. Use health_check to monitor loading status—it will show "project.status": "loading" until complete, then "loaded" when ready.

How Workspaces Work

Unlike in-memory code models, Eclipse JDT requires a workspace directory to store:

  • Search indexes for fast symbol lookup
  • Compilation state and caches
  • Project metadata

Workspaces Are Outside Your Source

JavaLens creates its workspace outside your source project to keep your codebase clean:

Your Java Project (unchanged)
├── src/main/java/
├── pom.xml
└── (no Eclipse files added)

JavaLens Workspace (specified by -data)
└── {session-uuid}/
    ├── .metadata/          <- JDT indexes and state
    └── javalens-project/   <- Links to your source (not copies)

Why this matters:

  1. No pollution: Your source tree stays clean—no .project or .classpath files
  2. No conflicts: Works alongside any build system without interference
  3. Session isolation: Each MCP session gets its own workspace, enabling concurrent analysis

Session Lifecycle

  1. JavaLens starts and creates a unique workspace: {base}/{uuid}/
  2. load_project creates linked folders pointing to your source
  3. JDT builds indexes in the workspace (not in your project)
  4. When the session ends, the workspace is cleaned up

Tools

Navigation (10 tools)

ToolDescription
search_symbolsSearch types, methods, fields by glob pattern
go_to_definitionNavigate to symbol definition
find_referencesFind all usages of a symbol
find_implementationsFind interface/class implementations
get_type_hierarchyGet inheritance chain
get_document_symbolsGet all symbols in a file
get_symbol_infoGet detailed symbol information at position
get_type_at_positionGet type details at cursor
get_method_at_positionGet method details at cursor
get_field_at_positionGet field details at cursor

Fine-Grained Reference Search (9 tools)

These use JDT's unique reference type constants—not available through LSP:

ToolDescription
find_annotation_usagesFind all @Annotation usages
find_type_instantiationsFind all new Type() calls
find_castsFind all (Type) expr casts
find_instanceof_checksFind all x instanceof Type
find_throws_declarationsFind all throws Exception in signatures
find_catch_blocksFind all catch(Exception e) blocks
find_method_referencesFind all Type::method expressions
find_type_argumentsFind all List<Type> usages
find_reflection_usageFind Class.forName(), Method.invoke(), and other reflection calls

Analysis (20 tools)

ToolDescription
get_diagnosticsGet compilation errors and warnings
validate_syntaxFast syntax-only validation
get_call_hierarchy_incomingFind all callers of a method
get_call_hierarchy_outgoingFind all methods called by a method
find_field_writesFind where fields are mutated
find_testsDiscover JUnit/TestNG test methods
find_unused_codeFind unused private members
find_unreachable_codeProject-wide dead code — members unreachable from any main method or test, over the whole-program call graph
find_affected_testsThe tests that exercise a symbol, directly or transitively — the set to run after changing it
find_possible_bugsDetect null risks, empty catches, resource leaks
get_hover_infoGet documentation/signature for symbol
get_javadocGet parsed Javadoc
get_signature_helpGet method signature at call site
get_enclosing_elementGet containing method/class at position
analyze_change_impactBlast radius — direct call sites by depth, or the full transitive closure over the project graph (transitive=true)
analyze_data_flowVariable read/write/declaration tracking within a method; opt-in followCalls tracks null/taint facts across calls to sinks
analyze_control_flowBranching, loops, return/throw points, nesting depth
get_di_registrationsFind Spring DI registrations (@Component, @Bean, @Autowired, @Inject)
get_jpa_modelAssembled JPA entity model — tables, id fields, relationships with resolved targets and mappedBy sides
get_http_endpointsAssembled HTTP route table — Spring and JAX-RS paths composed from class prefixes, mapped to handler methods

Compound Analysis (4 tools)

Combine multiple queries to reduce round-trips:

ToolDescription
analyze_fileGet imports, types, diagnostics in one call
analyze_typeGet members, hierarchy, usages, diagnostics
analyze_methodGet signature, callers, callees, overrides
get_type_usage_summaryGet instantiations, casts, instanceof counts

Refactoring (16 tools)

All refactoring tools return text edits (and new-file content where a refactoring creates one) rather than applying changes directly:

ToolDescription
rename_symbolRename across entire project
organize_importsSort and clean imports
extract_variableExtract expression to local variable
extract_methodExtract code block to new method
extract_constantExtract to static final field
extract_interfaceCreate interface from class methods
extract_superclassMove a member into a newly created superclass
inline_variableReplace variable with its initializer
inline_methodReplace call with method body
change_method_signatureModify params/return, update all callers
convert_anonymous_to_lambdaConvert anonymous class to lambda
encapsulate_fieldGenerate accessors and rewrite all direct field accesses
pull_upMove a member into the superclass
push_downMove a member into the subclasses
introduce_parameter_objectBundle a method's parameters into a new class, updating callers
move_type_to_new_fileMove a nested type into its own top-level file

Quick Fixes (5 tools)

ToolDescription
suggest_importsFind import candidates for unresolved type
get_quick_fixesList available fixes for problem at position
apply_quick_fixApply fix by ID (add import, remove import, add throws, try-catch)
apply_cleanupApply one of 10 JDT clean-ups (convert loops, pattern matching, switch expressions, text blocks, ...) and return rewritten source
diagnose_and_fixDiagnose a file and return each problem's top quick-fix edits in one call

Metrics (5 tools)

ToolDescription
get_complexity_metricsCyclomatic/cognitive complexity, LOC per method
get_dependency_graphPackage/type dependencies as nodes and edges
find_circular_dependenciesDetect package cycles using Tarjan's SCC algorithm
find_large_classesFind types exceeding method/field/line count thresholds
find_naming_violationsCheck against Java naming conventions

Project & Infrastructure (6 tools)

ToolDescription
health_checkServer status and capabilities
load_projectLoad Maven/Gradle/Bazel/plain Java project
get_project_structureGet package hierarchy
get_classpath_infoGet classpath entries
get_type_membersGet members by type name
get_super_methodFind overridden method in superclass

Usage

Basic Workflow

1. load_project(projectPath="/path/to/java/project")
2. search_symbols(query="*Service", kind="Class")
3. find_references(filePath="...", line=10, column=15)
4. analyze_type(typeName="com.example.UserService")

Coordinate System

All line/column parameters are zero-based:

  • Line 0, Column 0 = first character of file

Path Handling

  • Response paths are relative by default
  • All paths use forward slashes for cross-platform consistency
  • Input paths can be relative or absolute

Important Notes

Disk Synchronization

Every answer is verified against the files on disk at query time. Before any tool logic runs, JavaLens content-hashes the known source files, detects edits, additions, and deletions (the agent reports nothing — the server discovers changes itself), repairs exactly what changed, waits for the search index to absorb the repair, and only then answers. There is no file watcher and no background thread — verification is synchronous inside the query the agent issued, so there are no race conditions.

The agent's loop is just: edit → query.

1. Use JavaLens tools to analyze
2. Write changes to files
3. Use JavaLens tools to verify — answers already reflect the changes

load_project is needed only on first use, when a response reports RELOAD_REQUIRED (a build file like pom.xml changed, so the classpath must be rebuilt), or to rebuild everything from scratch. If verification itself fails, the query returns VERIFICATION_FAILED rather than an unverified answer.

Cost: verification is hash-based and parallel — measured per query at ~2 ms for a 72-file project, ~25 ms at 1,000 files, ~180 ms at 10,000 files. Repairs cost only what changed (one edited file reconciles in well under a second), never a full reindex.

Manual mode: set JAVALENS_DISK_SYNC=manual to restore the pre-1.5.0 contract — answers reflect the last load and the agent calls load_project after editing files. Tool descriptions and the MCP instructions field always state the active contract, and health_check reports it as diskSync.

Refactoring Returns Edits

Refactoring tools return text edits but don't modify files. This gives visibility into what would change before applying.

Session Isolation

Each MCP session is independent with its own workspace UUID. Multiple sessions can analyze the same project concurrently.

Build System Support

JavaLens loads three real build systems plus plain Java directories. Each is exercised end-to-end in CI against synthetic real-shaped fixtures (multi-module reactors with cross-module deps, real external libraries, annotation processors).

SystemDetectionSingle-moduleMulti-module / multi-projectCompiler compliance from build filesGenerated sourcesAnnotation processors
Mavenpom.xml✅✅ (the reactor, ../ modules and per-module classpaths as Maven's effective model reports them; reactor modules are linked as sources, never as jars)✅ (each module's level as maven-compiler-plugin applies it: release before source, plugin configuration before properties, inherited from parents)✅ (subdirectories of each module's generated-sources under its effective build directory)✅ (<annotationProcessorPaths>, resolved in Maven's local repository)
Gradlesettings.gradle(.kts) / build.gradle(.kts)✅✅ (projects, custom projectDirs, included builds, source sets and classpaths as Gradle reports them)✅ (each project's sourceCompatibility)✅ (the generated-source directories Gradle reports)✅ (annotationProcessor configuration)
BazelMODULE.bazel / WORKSPACE.bazel / WORKSPACE✅✅ (the Java targets and their sources from bazel query; the classpath from each target's javac action)✅ (each javac action's level as javac takes it: the toolchain default, .bazelrc flags, then the target's javacopts)n/a (Bazel actions write into bazel-bin/, not target/generated-sources/)✅ (each javac action's processor path)
Plain Javasrc/ directory✅n/a✅ (falls back to Runtime.version().feature() when no build file)n/an/a

JavaLens asks the build tool itself during the load and takes the model from its answer, writing nothing into the project tree:

  • Maven: one run (--fail-at-end) of help:effective-pom and dependency:build-classpath. A module Maven cannot resolve (one that depends on a module of the same build that is not installed, typically) is named by a BUILD_TOOL_FAILED; the rest of the model is still Maven's. Modules declared only in an inactive profile, and Gradle projects of a settings.gradle beside the root pom, stay linked with INCLUDED_OUTSIDE_BUILD.
  • Gradle: one run with an init script that reports projects, custom projectDirs, included builds, source sets, generated-source directories, classpath and per-project levels.
  • Bazel: bazel query for the Java targets and sources and the build files, bazel aquery for each javac action, bazel info execution_root, all with --lockfile_mode=off.

When the tool cannot run or reports no model, JavaLens reads the build files itself as code (comments and strings declare nothing: poms as XML, Gradle settings and Bazel BUILD files through a lexer), lays modules out by convention where the files say nothing, and reports buildModel.source = static-read with a BUILD_MODEL_STATIC warning naming what such a read cannot see.

A change to any file the build reads, including one created after the load (gradle.properties, a version catalog, buildSrc, .mvn/maven.config, .bazelrc, a .bzl file, the pom of a module outside the root), makes the next query report RELOAD_REQUIRED naming it.

load_project and health_check both report a buildModel summary (build system, where the structure came from: build-tool, static-read or convention, analysis level, modules) and every load warning, so a degraded load is visible wherever the agent looks, including projects auto-loaded through JAVA_PROJECT_PATH. Warning codes:

CodeMeaning
BUILD_TOOL_UNAVAILABLE / BUILD_TOOL_FAILED / BUILD_TOOL_TIMEOUTThe build tool could not start, failed, or ran out of time; the message carries its last output
BUILD_MODEL_STATICThe build tool reported no model, so the build files were read statically; the message says what that cannot see
MODULE_NOT_LOADEDA declared module or subproject was not loaded (directory missing, invalid path)
MODULE_LAYOUT_ASSUMEDA module's source roots were assumed from the conventional layout
INCLUDED_OUTSIDE_BUILDA conventional source folder the build does not declare, a module of an inactive Maven profile, or a Gradle project beside a Maven build, stays linked
COMPILED_OUTPUT_INCLUDEDA module's compiled output holds classes with no source and stays on the classpath
COMPLIANCE_LEVEL_MIXED / COMPLIANCE_LEVEL_UNKNOWN / COMPLIANCE_LEVEL_UNSUPPORTEDModules declare different levels, none, or one outside JDT's range
APT_PROCESSOR_JARS_MISSINGDeclared annotation-processor jars are missing
BAZEL_NOT_BUILTBazel output the classpath needs has not been built
INDEX_INCOMPLETE / LIBRARY_INDEX_INCOMPLETESource files or libraries JDT's search index still lacks after repair; index-backed tool responses name them while it lasts
JRE_REGISTRATION_FAILEDThe JDK could not be registered with JDT
EARLIER_PROJECT_KEPTAn earlier load's workspace project could not be removed
TIMEOUT_SECONDS_INVALIDJAVALENS_TIMEOUT_SECONDS is out of range or not a number

Configuration

Environment VariableDescriptionDefault
JAVA_PROJECT_PATHAuto-load project on startup(none)
JAVALENS_TIMEOUT_SECONDSTime limit on each tool call, a whole number of seconds from 5 to 300 (values outside are clamped, other values ignored, each with a TIMEOUT_SECONDS_INVALID load warning); a call past it returns TIMEOUT. load_project and health_check are not limited(none: no limit)
JAVALENS_DISK_SYNCstrict (every answer verified against disk) or manual (agent calls load_project after edits)strict
JAVALENS_LOG_LEVELTRACE/DEBUG/INFO/WARN/ERROR (case-insensitive); logs go to stderr, stdout carries only JSON-RPCINFO
JAVA_TOOL_OPTIONSJVM options, e.g. -Xmx2g for large projects(default: 512m via eclipse.ini)
JAVALENS_LOMBOK_JARPath to the Lombok agent jar attached at launch; overrides the bundled one(bundled)
JAVALENS_MAVEN_ARGSExtra arguments for the Maven runs that read the model, e.g. -Pextras -Dskip.x=true (split like shell words)(none)
JAVALENS_GRADLE_ARGSExtra arguments for the Gradle run that reads the model, e.g. -Penv=ci(none)
JAVALENS_BAZEL_ARGSExtra build flags for bazel aquery and bazel info, e.g. --config=ci(none)

Building from Source

bash
git clone https://github.com/pzalutski-pixel/javalens-mcp.git
cd javalens-mcp
./mvnw clean verify

Distributions are output to org.javalens.product/target/products/.

Build Requirements

  • Java 21+ (server runtime)
  • Maven 3.9+ (wrapper included as ./mvnw)

To run the full test suite (which includes end-to-end tests against real Maven, Gradle, and Bazel builds), the corresponding tools must also be on PATH:

  • Maven (provided by the wrapper)
  • Gradle 8+
  • Bazel 9+ (or bazelisk)

Tests gracefully skip when a tool is missing on a developer machine. Set JAVALENS_TESTS_REQUIRE_TOOLS=true to flip the gate: missing tools cause a hard failure instead of a skip. CI runs with this flag set so any provisioning gap surfaces as a real failure rather than weakening the suite silently.

Testing

bash
# Full suite, gentle (missing tools skip)
./mvnw verify

# Full suite, strict (missing tools fail; what CI does)
JAVALENS_TESTS_REQUIRE_TOOLS=true ./mvnw verify

Build-system coverage is structured as focused per-bug tests plus realistic end-to-end tests. The end-to-end tests load a single representative project per build system that exercises every fix in one pass — multi-module Maven with Lombok APT and cross-module references; multi-project Gradle with annotation processors; multi-target Bazel with cross-target deps. CI runs them on Linux and macOS; Windows line endings are covered by tests that write CRLF files explicitly.

Architecture

License

MIT License - see LICENSE for details.

安装

TypingMind
{
  "mcpServers": {
    "javalens-mcp": {
      "command": "/path/to/javalens/javalensc",
      "args": [
        "-data",
        "/path/to/javalens-workspaces"
      ]
    }
  }
}

将 Javalens MCP MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Javalens MCP 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 Javalens MCP 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Javalens MCP MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "javalens-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Javalens MCP MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Javalens MCP MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Javalens MCP 帮我完成这项任务吗?
Javalens MCP
当然,我看过了。
以下是我使用 Javalens MCP 得到的结果。

常见问题

Javalens MCP MCP 服务器有什么用途?

Javalens MCP 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Javalens MCP MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 Javalens MCP。

为什么在 TypingMind 中使用 Javalens MCP MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 Javalens MCP 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Javalens MCP MCP 连接到 TypingMind?

Javalens MCP 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Javalens MCP MCP 在 TypingMind 中提供哪些工具?

Javalens MCP 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Javalens MCP MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 Javalens MCP 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇