HUB
Sign inSign up
mcp-nae-plugin logo

netgrif/mcp-nae-plugin

By netgrif

•Updated 8 days ago

MCP server for Netgrif Application Engine, running as a NAE cluster plugin

Image
Machine learning & AI
Developer tools
0

193

netgrif/mcp-nae-plugin repository overview

⁠NAE MCP plugin

An MCP server for Netgrif Application Engine⁠ (NAE), packaged as a NAE cluster plugin. It registers itself on the admin node over gRPC and exposes one MCP endpoint per cluster instead of one per engine.

Development use only. /mcp is not authenticated and callers are identified through module-compatible impersonation tokens. Anyone who can reach port 8700 acts as the system user and, with a token, as that token's user. Process, user, node and application tools always run as the configured admin account. The jar binds to 127.0.0.1 by default; this image sets SERVER_ADDRESS=0.0.0.0 so container networking works. Publish port 8700 only to trusted hosts.

⁠What it does

The plugin runs next to an existing NAE cluster (admin + engines) as a separate Spring Boot service and serves the Model Context Protocol over Streamable HTTP at /mcp.

AreaChannel
Cases and tasksPlugin gRPC action API (impersonated user, else system user)
ProcessesAdmin REST /api/petrinet/** under the admin account
UsersAdmin REST /api/users/** under the admin account
Nodes, plugins, application packages, realmsAdmin REST, plugin-only tools

Processes are deployed by worker name (the admin imports onto a running replica) or as multi-process application packages (ZIP upload, then deploy). Use list_nodes to find worker names.

⁠Tools

38 tools in total:

  • 19 shared tools for the process, case, task, user and role lifecycle, identical to the module and standalone runtimes: whoami, list_processes, get_process, deploy_process, delete_process, create_case, get_case, delete_case, list_tasks_of_case, get_task, assign_task, cancel_task, finish_task, execute_task, set_data_at_task, get_user, create_user, delete_user, assign_role.
  • 19 plugin-only tools: list_nodes, get_node, list_plugins, get_plugin, list_applications, get_application, upload_application, deploy_application, delete_application, deploy_process_to_worker, plus realm and role-administration tools (list_realms, get_realm, create_realm, update_realm, delete_realm, switch_realm, current_realm, list_global_roles, list_process_roles).

The plugin also registers an mcp entry point, so a process action can inspect the server: Plugin.naeMcpPlugin.mcp.info() and Plugin.naeMcpPlugin.mcp.tools().

⁠Quick start

The cluster must be running and reachable. Start the plugin, point it at the admin REST API and tell it how the cluster reaches it:

docker run -d --name mcp-nae-plugin \
  --network netgrif-platformnet \
  -p 127.0.0.1:8700:8700 \
  -p 9090:9090 \
  -e NETGRIF_ENGINE_MCP_IMPERSONATION_ENABLED=true \
  -e NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_BASE_URL=http://nae-admin:8888 \
  -e NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_USERNAME=admin \
  -e NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_PASSWORD=change-me \
  -e NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_DEFAULT_WORKER_NAME="NETGRIF Root Worker" \
  -e NETGRIF_PLUGIN_SERVICE_HOST=mcp-nae-plugin \
  -e NETGRIF_PLUGIN_SERVICE_ADMIN_NODE_HOST=nae-admin \
  netgrif/mcp-nae-plugin:1.0.0

Then point your MCP client at:

http://<host>:8700/mcp

Health check: GET /manage/health returns UP (the image ships a HEALTHCHECK using it).

⁠Configuration

Environment variables follow Spring relaxed binding. NETGRIF_ENGINE_MCP_IMPERSONATION_ENABLED=true is required — the plugin refuses to start without it.

VariableDefaultPurpose
NETGRIF_ENGINE_MCP_IMPERSONATION_ENABLEDnone (required true)Acknowledges the development-only security model.
NETGRIF_ENGINE_MCP_IMPERSONATION_MCP_TOKEN_KEYnone (required)Base64 32-byte AES key for impersonation tokens.
NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_BASE_URLnone (required)Base URL of the admin REST API.
NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_USERNAME / ..._PASSWORDnone (required)Admin account for processes, users, nodes and applications.
NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_DEFAULT_REALM_IDAdminRealm for user operations and token resolution.
NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_DEFAULT_WORKSPACE_IDdefaultWorkspace for application tools.
NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_DEFAULT_WORKER_NAMEunsetWorker used by deploy_process.
NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_DEFAULT_USER_PASSWORDnone (required)Password for users created without one.
NETGRIF_PLUGIN_SERVICE_HOSTlocalhostAddress the cluster uses to reach this plugin.
NETGRIF_PLUGIN_SERVICE_GRPC_PORT9090Plugin gRPC port the cluster calls.
NETGRIF_PLUGIN_SERVICE_ADMIN_NODE_HOST / ..._GRPC_PORTlocalhost / 9999Where the plugin registers.
SERVER_PORT8700HTTP port of /mcp.

⁠Ports

PortProtocolPurpose
8700HTTP/mcp (unauthenticated) and /manage/health.
9090gRPCPlugin action API and registration; the cluster calls it.

⁠Image details

  • Base image eclipse-temurin:21-jre, Java 21, single executable jar.
  • Runs as non-root (10001:10001) with a writable /app/log (LOGGING_FILE_PATH).
  • Container defaults: SERVER_ADDRESS=0.0.0.0, SERVER_PORT=8700, NETGRIF_PLUGIN_SERVICE_GRPC_PORT=9090.
  • Includes LICENSE.txt and THIRD-PARTY.txt next to the jar.

⁠Known limits

  • delete_user is not supported: the admin REST API has no user-delete route, so the tool returns an error message.
  • The active realm is shared by all MCP clients of the server and resets to the default realm on restart. An impersonation token only works in its user's realm.
  • Engine failures reach the plugin as "no result"; the cause is only in the plugin log.

⁠License

NETGRIF Community License 2.0: free for development, testing, evaluation, education, and other non-production use. Production use requires a commercial license from NETGRIF, s.r.o. See netgrif.com/license⁠.

Tag summary
Recent tags
Content type
Image
Digest
sha256:e99622f11…
Size
165.8 MB
Last updated
8 days ago
docker pull netgrif/mcp-nae-plugin:1.0.0