> ## Documentation Index
> Fetch the complete documentation index at: https://developers.nexspace365.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code

> Install the NexSpace plugin for Claude Code

# Claude Code Integration

The NexSpace plugin for Claude Code lets you manage workforce operations
directly from the Claude Code IDE through MCP tools and slash commands.

## Install

```bash theme={null}
/plugin install nexspace
```

Or from the Plugins tab → search "NexSpace" → Install.

## Connect

Click **Connect NexSpace** in the plugin panel. This initiates OAuth 2.1 + PKCE:

1. Browser opens the NexSpace authorization page
2. Log in and grant the requested scopes
3. Claude Code receives tokens automatically

## Slash Commands

| Command                       | Description                                   |
| ----------------------------- | --------------------------------------------- |
| `/nexspace-fill-shift`        | Find credentialed staff and assign to a shift |
| `/nexspace-find-staff`        | Search available staff by specialty           |
| `/nexspace-verify-credential` | Run credential verification                   |
| `/nexspace-coverage-report`   | Generate a facility coverage report           |

## Natural Language

Once connected, Claude understands NexSpace context naturally:

> "Find a credentialed staff member at facility 12 for tomorrow's 7am shift"

Claude will call `findCredentialedStaff`, present candidates, ask for
confirmation, then call `fillShift`.

## Skill

The plugin includes a `nexspace-operations` skill that teaches Claude:

* **Read before write** — confirm scope before mutating
* **Compliance walls** — stop if credentials are flagged/revoked
* **Facility scoping** — respect API key scope boundaries
* **Billable outcomes** — don't call write verbs speculatively

You can also install or refresh the same skill via the CLI (useful when the
agent prefers subprocess commands over MCP):

```bash theme={null}
npm install -g @nexspace/cli
nexspace login
nexspace skill install --claude
nexspace agent playbook
```

Canonical loop when using the CLI: `nexspace search` → `mcp schema` →
`mcp call --dry-run` → execute (or first-class verbs like `nexspace shifts fill`).
