Skip to main content
Glama
SaltfishSheep

CNPC JavaDoc MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
searchA

Search CustomNPCs (CNPC) JavaDoc API — methods and fields across versions and forks.

expression syntax: term — case-insensitive substring term:modifier — substring match in column; term::modifier — exact match in column a&b (AND) | a|b (OR) | {expr} (grouping). & has higher precedence than |. "noppes.npcs.api.entity.ICustomNpc" auto-expands to "/" and "$" paths.

Modifiers: all (default) — all columns class — class (full path) classname — class name after last '/' package — package before last '/' name — name (methods+fields) method — same column, methods only field — same column, fields only desc — desc (JVM descriptor) modifier — access, is_static side — sideonly (always common for CNPC)

Scoring: exact case hit = 1.0, case-insensitive = 0.5, then by mismatch (less unmatched chars ranks higher).

Common patterns: "ICustomNpc::classname" → exact class name only "Script:classname" → all classes containing "Script" "noppes/npcs/api/entity:package" → all classes under a package "health:field" → fields only, no methods "()Z:desc" → methods returning boolean "get:method&static::modifier" → static methods containing "get" output="%class%" → deduplicated class list

Version format: "1.12.2" for standard, "cnpc+:1.7.10" for CustomNPC+ fork.

show-hierarchyA

Display the class inheritance hierarchy for a CustomNPCs (CNPC) class.

Returns two sections:

  1. Hierarchy: inheritance chain from the class up to root (-> separated)

  2. Subs: direct subclasses (if any)

Example output for BlockEvent: Hierarchy: BlockEvent -> CustomNPCsEvent -> Event -> Object Subs: BlockEvent$BreakEvent BlockEvent$ClickedEvent ...

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SaltfishSheep/AI-MCP-CNPCAPIAccess'

If you have feedback or need assistance with the MCP directory API, please join our Discord server