# שרת MCP מותאם אישית

> כל שרת MCP מרוחק, לפי הכתובת שלו. אפשר להציע את הכלים שלו לסוכני ה-AI שלכם, כלי אחר כלי.

Source: https://docs.go-lumen.ai/he/reference/connections/mcp

## במבט אחד

| מאפיין | ערך |
| --- | --- |
| **Class name** | `mcp` |
| **Resource** | ConnectorClass (`lumen.ai/v1alpha1`); a workspace creates a Connector with `classRef: {name: mcp}` |
| **Driver** | `mcp` |
| **Provides** | `mcp` |
| **Mode** | pull (Lumen reaches out to the system) |
| **Credential keys** | `headerValue` (kept in a Secret, never in config) |
| **Installation must provide** | `mcp` |

A workspace adds this connection on the Connections page or with `lumen connect`; credentials are kept in a Secret, never in the flow.

## הגדרות

Set under `config:` on the Connector.

| הגדרה | סוג | ברירת מחדל | תיאור |
| --- | --- | --- | --- |
| `auth` | string | `"none"` | How Lumen signs in (one of none, header) |
| `headerName` | string |  | The header the key goes in. Empty is Authorization. (maxLength 64) |
| `tools` | map of object |  | Tools agents may use |
| `url` (חובה) | string |  | The MCP server's address, for example https://mcp.example.com/mcp. It must start with https:// and carry no query: put a key in the header value instead. (minLength 8; maxLength 2048) |

ה-JSON Schema המלא של ההגדרות: [mcp.schema.json](https://docs.go-lumen.ai/schemas/connections/mcp.schema.json).

## Guided setup

`lumen connect` and the web app guide a person through adding this connection.

**Credentials asked for**

-   `headerValue`: Header value

## שימוש

```yaml title="connector.yaml"
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
  name: my-mcp
  namespace: tenant-acme
spec:
  classRef: {name: mcp}
  config: {}
```
