You are getting close!
the mkp
command installs the plugin and all supporting files for the server.
The agent bakery or you take care of installing the plugin for the agent.
Read this thoroughly to understand the agent and this for further reading on MKPs.