Chief Tools Logo
Server Chief

Connect an AI agent

Use this guide to connect an MCP-compatible AI client to Server Chief so it can search your servers, check their updates, vulnerabilities, certificates, and metrics, and manage tags, alert rules, and new servers for one team or all your teams.

Choose your task

Connect an AI client

Before you connect

Your AI client must support remote MCP servers and browser-based sign-in. Use this server URL:

Code
https://server.chief.app/mcp

Connect a client

Look for MCP or integrations in your client's settings, then:

  1. Open the client's MCP or integrations settings.
  2. Add a remote MCP server with the URL above.
  3. Sign in with your Chief account.
  4. Under Select a team, choose the team the agent may use, or All my teams.
  5. Review the requested scopes and select Authorize.

Server Chief asks for read access to servers, tags, and alerts when you first connect. The agent can then search your inventory and read vulnerabilities, certificates, metrics, and alerts, but it cannot change anything.

Review the requested access

The authorization screen presents all requested scopes as one set. You must approve the full set or cancel the connection.

Choose one team or all your teams

The team you select in step 4 decides which Server Chief data the agent can reach.

ChoiceWhat the agent can use
A single teamOnly that team. The agent never has to pick a team.
All my teamsEvery team you belong to, including teams you join later. The agent picks a team for each request.

With All my teams, the agent gets the same scopes in every team. Name the team in your request, such as "In the Production team, list the servers that need a reboot", so the agent does not have to guess. It should ask you when the team is unclear and tell you which team it used. Before you approve a change, check that the agent named the right team.

A team also sees the servers other teams share with it through a tag. The agent can read those servers but cannot change, refresh, or tag them.

To switch between one team and all teams, reconnect the client and make a different choice.

What happens next

After connecting, give the client a specific task. For example:

  • Which servers have security updates waiting, and which of those updates fix a known exploited vulnerability?
  • Which servers does CVE-2024-6387 affect, and does a pending update fix it?
  • Which site certificates expire in the next 14 days without automatic renewal?
  • When did disk usage on web-1 start to climb this week?
  • Which Laravel applications run a release past its end of life?
  • Which of my teams have servers that need a reboot?

The last example only works with All my teams.

Available tools

Your client may list every tool, but each tool only works when the connection has its required scope. A higher-level scope also works. For example, serverchief:servers:write covers serverchief:servers:read.

Teams

ToolActionRequired scope
list-teamsList the teams the connection can use and mark your default teamAny Server Chief scope

list-teams is only available to connections authorized for All my teams. These connections name a team on every other tool call. Your default team is a hint for the agent, not an automatic choice.

Servers and packages

ToolActionRequired scope
list-serversSearch servers with the dashboard's search languageserverchief:servers:read
get-serverRetrieve one serverserverchief:servers:read
get-server-inventoryRead the system, hardware, network, resolver, cloud, or update details an agent reportedserverchief:servers:read
list-server-changesList the change history of a serverserverchief:servers:read
list-server-packagesList the packages of a server and their pending updatesserverchief:servers:read
search-packagesFind a package version across all serversserverchief:servers:read
list-server-repositoriesList the package repositories of a server and their issuesserverchief:servers:read
update-serverRename a server, change its tags or metadata, or override its locationserverchief:servers:write
refresh-server-inventoryAsk the agent of a server to report its inventory nowserverchief:servers:write

Sites and certificates

ToolActionRequired scope
list-server-vhostsList the sites of a server with their PHP version and certificateserverchief:servers:read
find-domainFind which servers host a domainserverchief:servers:read
list-certificatesList the certificates of sites, mail services, and panelsserverchief:servers:read
get-certificateRetrieve one certificate and the checks it failsserverchief:servers:read
list-expiring-certificatesList site certificates that expire within a number of daysserverchief:servers:read
find-certificate-issuesFind certificates without renewal, with a weak key, an incomplete chain, or other problemsserverchief:servers:read

Vulnerabilities and applications

ToolActionRequired scope
list-server-vulnerabilitiesList the open vulnerabilities of a server, the most urgent firstserverchief:servers:read
find-affected-serversFind which servers a CVE or advisory affectsserverchief:servers:read
get-advisoryRetrieve a security advisory and its fixed versionsserverchief:servers:read
list-applicationsList the WordPress, Laravel, Symfony, Composer, and npm applications of your sitesserverchief:servers:read
get-applicationRetrieve one applicationserverchief:servers:read
list-application-packagesList the packages, plugins, and themes of an applicationserverchief:servers:read
list-application-vulnerabilitiesList the vulnerable and malicious packages of an applicationserverchief:servers:read

Metrics and alerts

ToolActionRequired scope
get-server-metricsRead the current CPU, memory, disk, network, and other metrics of a serverserverchief:servers:read
get-server-metric-seriesRead how up to 10 metrics of a server changed over a range from 1 hour to 1 yearserverchief:servers:read
list-alert-rulesList the team's metric alert rulesserverchief:alerts:read
list-alertsList firing and resolved alertsserverchief:alerts:read
create-alert-ruleCreate a metric alert ruleserverchief:alerts:write
update-alert-ruleChange a rule, or turn it off or onserverchief:alerts:write

Adding servers and agent updates

ToolActionRequired scope
list-install-commandsList the install commands that can still add serversserverchief:servers:read
list-agent-releasesList the agent releases and when their automatic rollout startsserverchief:servers:read
create-install-commandCreate a command that adds every server it runs onserverchief:servers:write
revoke-install-commandStop an install command from adding more serversserverchief:servers:write
create-serverAdd one named server and return its install commandserverchief:servers:write
issue-enrollment-tokenReturn a new install command for a server, for example to reinstall its agentserverchief:servers:write
update-server-agentUpdate the agent of a server to the newest release nowserverchief:servers:write

Tags

ToolActionRequired scope
list-tagsList the team's tags and the tags shared with itserverchief:tags:read
create-tagCreate a tagserverchief:tags:write
share-tagGive another team read-only access to the servers with a tagserverchief:tags:write
unshare-tagStop sharing a tag with a teamserverchief:tags:write

To put a tag on a server, the agent uses update-server, which needs serverchief:servers:write.

The agent cannot delete servers, tags, or alert rules, rename tags, or run commands on your servers. Use the Server Chief dashboard or the REST API for those tasks.

Allow changes

When you ask the agent to add a server, tag servers, create an alert rule, or change anything else, it needs the matching write scope from the tables above. Some clients ask you to approve the extra scope when the agent first needs it. If yours does not, reconnect the client and approve the write scopes.

Before you let the agent continue with a change, check that it states which team, server, tag, or rule it changes and what happens next. A few changes need extra care:

  • A new server only connects after you run its install command as root on the server.
  • Sharing a tag gives the other team read-only access to the inventory and metadata of every server with that tag, including servers you tag later.
  • Changing an alert rule closes its firing alerts. They fire again at the next check if the server still breaches the rule.

Install commands add servers to your team

Anyone with an install command can add a server to your team until the command is used or expires. Server Chief shows the command once, and the agent shows it in your conversation, so treat the conversation like the command itself. Revoke a command you no longer need.

Manage the connection

Change permissions

Start with read access. Approve write scopes only when you want the agent to change something, and reconnect without them when it no longer needs that access.

See Server Chief API scopes for the full scope hierarchy.

Choose MCP or REST

Use MCP when an AI client needs to choose and call Server Chief tools. Use the REST API for application code and fixed workflows.

Troubleshooting

Why can't the client connect?

Confirm that the client supports remote MCP servers and browser-based authorization. Copy the server URL exactly, then reconnect and complete the Chief sign-in flow.

Why does a tool report insufficient scope?

The connection does not have the tool's required scope. Compare the tool with the tables above, then approve the additional scope when your client asks, or reconnect the client and approve it.

Why can't the agent see one of my teams?

The connection is limited to the team you selected when you connected. Reconnect the client and choose that team or All my teams. With All my teams, the agent can only use teams you are a member of.

Why did the agent use the wrong team?

With All my teams, the agent picks a team for each request. Name the team in your request and ask the agent which team it used. If you only work in one team, reconnect and select that team instead.

Why can't the agent change a server?

The server may be shared with your team by another team. Shared servers are read-only, so only their owner team can change, refresh, or tag them.

Why does the agent report too many requests?

Server Chief limits how often a connection can call the server. Wait a minute, then ask the agent to continue.

Why does the authorization screen request unexpected access?

Cancel the connection and review which tools or integration the client is trying to enable. Server Chief approves or rejects the requested scopes as one set.