# Tenant Onboarding & Templates

Create tenants and populate them with document templates in minutes. Authenticate once to manage onboarding tasks and template updates. Extend workflows with custom requests to external services.

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add santiago.blanco.vilchez/la-final

# Browse available tools
npx -y @smithery/cli@latest tool list santiago.blanco.vilchez/la-final

# Get full schema for a tool
npx -y @smithery/cli@latest tool get santiago.blanco.vilchez/la-final add-template

# Call a tool
npx -y @smithery/cli@latest tool call santiago.blanco.vilchez/la-final add-template '{}'
```

## Direct MCP Connection

Endpoint: `https://la-final--santiago.blanco.vilchez.run.tools`

## Tools (4)

- `add-template` — Add a new template with sections to an existing tenant via the seed-template endpoint
- `auth-login` — Authenticate user via the login endpoint and get JWT access token
- `create-tenant` — Create a new tenant via the bootstrap endpoint with tenant, service type, admin user, and document sections
- `http-request` — Make HTTP requests to external APIs

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get santiago.blanco.vilchez/la-final <tool-name>
```

## Resources

- `auth://login` — Obtain JWT tokens for API authorization
- `tenants://bootstrap` — Create a new tenant with admin user, service type and initial template
- `tenants://seed-template` — Add a new document template to an existing tenant

## Prompts (3)

- `add-template` (tenantId, serviceTypeName, serviceTypeDescription, templateName, sections) — Add a new document template to an existing tenant
- `create-tenant` (name, url, logoUrl, email, password, firstName, lastName, phone, address, serviceTypeName, serviceTypeDescription, templateName, sections) — Create a new tenant with admin user and initial document template
- `system-prompt` (baseUrl, accessToken) — System prompt for CPA Assistant API operations
