# The library

Covers: the skills and MCP servers every instance of your organization starts with, and how a change reaches instances.

For: Admins and developers who set up what their agents can use.

The library is where you give all your agents the same skills and MCP servers once, instead of on every instance. You
add an item from a catalog or by hand, limit what it may do, and each new instance starts with it.

## How the library works

The library is the skills and MCP servers that every instance starts with, for an agent that reads them (Claude Code).
It has two levels, the widest first:

- your organization's, on the [Skills & tools](https://client-test.poema.dev/dashboard/skills) page, for every instance;
- the instance's own, on New instance ([Deploy from git](https://client-test.poema.dev/docs/git.md)).

An entry of the same name at the instance's level replaces the organization's, and a skill of that name inside the repository
itself wins over all of them: the organization's skills are defaults, not policy, since the agent can change the files
it works with.

The page has three tabs: MCP servers, Tools and Skills, each with a search, the filters In use and Unused, and what uses
each item.

## Add an MCP server

**New MCP server** opens a catalog of servers in one click, GitHub among them, then a custom URL and a program. An MCP
server is a name and either the https URL of a remote server or a command that starts one in the instance. The host of
a remote server has to be one your instances may reach ([Network rules](https://client-test.poema.dev/docs/network.md)), which Add can allow with it,
and its calls then go through poema, so a rule there can limit its methods and add a key. GitHub's server is
`api.githubcopilot.com`: add a key for that host on [Keys](https://client-test.poema.dev/dashboard/secrets), a GitHub token, which poema adds to its
calls.

A server's row opens its one sheet: where it runs, what it needs, whether its host is allowed, the key poema adds, the
tools its agent may call, all of it in plain English, and the instances made with it, with Save and Remove.

## Add a skill

**New skill** offers Anthropic's skills, then a skill repository. A skill is a GitHub or GitLab repository with a
`SKILL.md` at its root, or a repository that holds several, in `skills/NAME` or `.claude/skills/NAME`: the sheet lists
what it finds in a public GitHub repository, with what each `SKILL.md` says it is for, and you pick which to add. A
private repository or a GitLab one is taken as it is, and a wrong one shows as an error in the instance's status.

## A snapshot, and Update

An instance takes the library when it is made and keeps it: a change reaches the instances made after it, and the ones
that run go on with what they had. The instance's page says so when the library has changed since. Its **Update**
button makes the instance again from the library as it is now: the skills and servers of its own are kept, the ones it
took from the library are replaced.

> **Warning:** Update resets the instance, so its files are deleted.

Your organization runs its instances under one quota, and every one of them takes your organization's skills and tools.
What people and keys did stays after an instance is deleted; what the instance itself did and met (its blocked calls, a
failed start, its model calls and commands) goes with it, as the [Activity](https://client-test.poema.dev/dashboard/activity) page says.

## What limits an agent's tools

A remote MCP server's sheet lets you choose the tools the agent may call, from its list or by typing their names.
With no tools selected, every tool is allowed. poema's gateway enforces the choice.
A saved choice reaches instances made after it; existing instances keep their previous choice until Update recreates them.

The agent's own tools, and the servers an instance runs itself, are limited on New instance: see
[What the agent may do](https://client-test.poema.dev/docs/git.md#what-the-agent-may-do).

Claude Code with a task acts without asking (Auto mode), using only the tools its permissions leave it. New instance's **Mode** picker changes that: **Accept edits**, **Plan** or **Ask first**. Codex has Default, Edit files and Run everything; Gemini CLI has Default, Plan, Accept edits and Run everything; Pi and Hermes have no mode. **Common flags** adds one flag that was tried with the agent, and **Custom flags**, under Advanced, takes any other flag its command line accepts. Flags go onto its command line as written, after poema's own, the mode's and the common flag's, and are stored as plain text: no secrets. Gemini CLI's command trusts its folder (`--skip-trust`), as it does not start otherwise, so a repository's own `.gemini/settings.json` applies.

## Limits

- The library holds 30 entries.
- An instance holds 20 skills and 10 servers in all.

Last checked: unreleased checkout.
