# claude code vscode扩展使用glm视觉mcp

**URL:** <https://linux.do/t/topic/1143234>\
**Category:** 开发调优\
**Tags:** Claude, 人工智能, GLM\
**Created:** [2025 年11 月 7 日 02:18 UTC](https://linux.do/t/topic/1143234 "2025-11-07T02:18:42Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![llej](https://cdn.ldstatic.com/user_avatar/linux.do/llej/32/920045_2.png) [@llej](https://linux.do/u/llej)\
发布日期： [2025 年11 月 7 日 02:18 UTC](https://linux.do/t/topic/1143234/1 "2025-11-07T02:18:42Z")

</div>

在 vscode cc 扩展中直接使用 /mcp 会看到无法连接这个 zai-mcp-server

 ![image](https://cdn3.ldstatic.com/original/4X/c/c/b/ccbfe551e0bcf06ddb51a2c36c977dc8751623a5.png)

但是其他 http 类型的他能够连接，所以我怀疑是 vscode cc扩展还不支持 stdio 的mcp  
经过搜索发现 `mcp-proxy​` 这个npm包支持将 stdio 类型的转 http。

所以先安装安装： `npm install -g mcp-proxy​`

然后在 windows 上可以使用 powerShell 运行如下命令

```bash
$env:Z_AI_API_KEY = "你的密钥"
$env:Z_AI_MODE = "ZHIPU" 
$env:NPM_CONFIG_REGISTRY = "https://registry.npmmirror.com"
mcp-proxy --port 3000 --shell pnpx @z_ai/mcp-server

```

有如下日志表示成功

```json

[2025-11-07T01:53:14.082Z] INFO: MCP Server Application initialized 
[2025-11-07T01:53:14.083Z] INFO: Starting MCP server... 
[2025-11-07T01:53:14.084Z] INFO: Image analysis tool registered successfully [2025-11-07T01:53:14.084Z] INFO: Video analysis tool registered successfully 
[2025-11-07T01:53:14.084Z] INFO: Successfully registered all tools [2025-11-07T01:53:14.085Z] INFO: MCP Server started successfully [{"mode":"ZHIPU","name":"zai-mcp-server","version":"0.1.0"}] 
starting server on port 3000

```

## 成功

修改原来的 stdio 类型的mcp为刚才的 http 类型的mcp，再返回去vscode 中运行 /mcp 命令查看连接状态，成功！

 ![image](https://cdn3.ldstatic.com/original/4X/8/e/2/8e21a8d24c9e4772b4667ac914cc79b01fcb21ea.png)  
 ![image](https://cdn3.ldstatic.com/original/4X/8/b/4/8b49379653d265491a8cdbcc0adfb0360b1a3496.png)

[原文](https://shenzilong.cn/index/claude%20code%20vscode%E6%89%A9%E5%B1%95%E4%BD%BF%E7%94%A8glm%E8%A7%86%E8%A7%89mcp.html#20251107094133-naqhw8n)

---

_[View the full topic](https://linux.do/t/topic/1143234)._
