Skip to content

MCP protocol surface ​

nene-mcp implements a subset of MCP over newline-delimited JSON-RPC on stdio.

Supported methods ​

MethodDescription
initializeReturns server info and capabilities
tools/listBuilt-in + catalog tools
tools/callExecute tool (builtin or HTTP-backed)
notifications/initializedAcknowledged with no response

Unsupported methods return JSON-RPC -32601.

Built-in tool ​

NameSafetyDescription
nene_mcp_aboutreadPackage version, PHP version, resolved paths (no secrets)

Tool list shape ​

Each tool includes:

  • name, title, description
  • inputSchema (JSON Schema)
  • annotations.readOnlyHint — true when safety: read

tools/call result ​

HTTP-backed tools return structured content:

json
{
  "statusCode": 200,
  "requestId": "...",
  "body": { }
}

HTTP errors set isError: true while still returning structured content.

Protocol version ​

initialize reports protocolVersion: 2024-11-05.

Publicado sob a licença MIT.