Add the Deftro MCP server to your agent
The @deftro/mcp server lets an MCP client search, install, sync and publish skills and read your Knowledge, signed in through deftro login.
@deftro/mcp is an MCP server. Once added, your coding agent can work with Deftro directly from the chat.
What it lets your agent do
- Find skills: search what you can see, find by text, or suggest skills for a task. Suggestions never install anything.
- Install and update: install one pinned version, list what is installed (from
bv.lock), check for newer versions, and sync everything your projects say this workspace should have. - Upload: list the accounts and projects you may upload to, then publish a skill folder as a new version. It is private unless you say otherwise.
- Improve and report: propose a change to someone else's skill (the owner reviews it), or report a skill to its moderators once you have seen the evidence.
- Search Knowledge: search your Knowledge documents and read one in full. Agents treat document text as reference, not instructions.
Some things are always left to you in the web app: making something public, approving a review or a sign-in code, changing members or roles, yanking a version, and deleting anything.
Add it
-
Sign in first with
npx @deftro/cli loginand approve the code on the device page. The MCP server reads the same saved sign-in. -
Add the server to your agent. For Claude Code:
claude mcp add deftro --scope user -- npx -y @deftro/mcpFor Cursor, Codex or any other MCP client, add a stdio server that runs
npxwith the arguments-y @deftro/mcp. -
Restart your agent so it loads the new tools.
The easiest route is the Onboard your agent button on Connect an agent: it gives your agent the setup guide, which has the exact settings for each agent.
If it does not work
- "Not signed in": the sign-in did not finish. Run the login again, then restart the agent.
- The tools do not appear: restart the agent, and check its MCP settings file is valid.
- A tool returns a refusal: the result names the reason and a next step. Follow it rather than retrying.
Checked against the product on .
Connect a coding agent to Deftro
Paste one setup sentence into your agent, or generate an agent brief, then approve the sign-in code on the device page in your browser.Use the deftro command-line tool
Run deftro with npx to sign in, install pinned skill versions into your agent's folders, keep them in sync, and publish your own.Give your agents documents to search with Knowledge
Knowledge (Beta) holds text and Markdown documents, private to you or shared with an organisation, that your agents search through the MCP server.