# 令牌

Canonical URL: https://developers.iagenify.com/zh/sdk/mcp/tokens/
Language: zh

仅返回给业主,从不在 URL 并且清理了一次在路上, 因为一个标志周围的东西 通常会打破它。

Status: encrypted at rest · never in a URL · cleaned once

## 清洁什么清除 {#cleaning}

| 粘贴 | 结果成果成果成果成果成果成果成果成果 |
| --- | --- |
| `&nbsp;abc123` - 主导空间 | 删除 |
| `"abc123"` - 引号 | 删除 |
| `Bearer abc123` | 将这个词删除—— 添加是属于我们的 |
| `abc123&nbsp;` - 后方空间 | 删除 |
| `abc 123` - 内部空间 | **拒绝拒绝** |

> **为什么清洁不是礼貌**
>
> A leading space, quotes or a copied « Bearer » make some servers refuse the header without ever reading the token — and the refusal points at the token while the problem is what surrounds it. A trailing space leaves the header readable and fails authentication, which is worse because it looks like a wrong token.

一个空间空间 *内* 拒绝拒绝时 `mcp_token_malformed` 而不是修补:重新加入它将猜想是哪一种象征。

## 休息休息 {#storage}

加密,并解密 仅为认证的所有人。 [(列表)](/zh/sdk/ref/mcp/list) 永远不携带; [(c) () 获得](/zh/sdk/ref/mcp/get) 和 [代理()](/zh/sdk/ref/mcp/for-agent) 因为软件包需要它来联系服务器

## 从未在地址 {#never-url}

地址以页眉为标题,地址以日志、裁判和历史为结尾;一个字母的证书是每个跳跃时的证书漏漏。

## 旋转 1 {#rotating}

```javascript
await api.mcp.update("example", { token: process.env.EXAMPLE_TOKEN_NEW });
await api.mcp.update("example", { token: null });   // remove it
```

## 不记录随带带带的是什么 {#logging}

`get()` 和 `forAgent()` 返回服务器对象中的标记。 登录该对象时将证明书写到您的日志去到何处 。

- [update()](/zh/sdk/ref/mcp/update): 旋转
- [错误](/zh/sdk/mcp/errors): 拒绝的象征看起来像什么

```python
import os

api.mcp.update("example", token=os.environ["EXAMPLE_TOKEN_NEW"])
api.mcp.update("example", token=None)   # remove it
```
