
在运行时提供 AI MCP 服务器 arg。
概览
允许在运行时设置MCP服务器的ARG。在与助手交互时为任意节点提供参数,而不是在初始设置时。无论是认证令牌、环境变量还是其他CLI参数,Superargs都让运行时提供变量变得简单。 - : 运行 stdio MCP 服务器的 shell 命令,运行时替换 args,格式为 {{argName}}。- (可选)用于更新/重启 args 的工具自定义名称。默认为 update_args。 --stdio 命令中的 args 用 {{argName}} 表示。例如: 在这个命令里:- {{githubToken}} 是一个 arg,可以在运行时使用 update_args 工具(或指定自定义工具名)设置。 - : 在开始时,MCP服务器不会设置任何ARGS。 - 如果底层MCP标准服务器可以无ARG启动,则会尝试在没有ARG的情况下启动,以提供工具列表和其他MCP服务器功能。
概述(AI 翻译)
Superargs 允许在运行时设置 MCP 服务器 args。 在与助手交互时,向任何 **MCP 服务器*提供参数,而不是在初始设置时。 无论是认证令牌、环境变量还是其他CLI参数,Superargs都让运行时提供这些参数变得简单。
得到了 superinterface.ai、supermachine.ai 和 supercorp.ai 的支持。
安装与使用
通过npx运行Superargs:
--stdio:运行一个标准MCP服务器的shell命令,运行时将以{{argName}}形式替换的args。--update-args-tool-name:(可选)用于更新/重启 args 的工具自定义名称。默认为update_args。
Args
--stdio 命令中的 args 用 {{argName}} 表示。例如:
在这条命令中:
{{githubToken}}是一个可通过运行时使用update_args工具(或指定自定义工具名)设置的 ARG。
一旦开始
-
初始状态:在开始时,MCP服务器不会设置任何ARG。
-
如果底层MCP标准服务器可以无ARG启动,则会尝试在没有ARG的情况下启动,以提供工具列表和其他MCP服务器功能。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。

Superargs allows setting up MCP server args during runtime. Provide arguments to any MCP server during interaction with assistant instead of during initial setup. Whether it’s authentication tokens, environment variables, or other CLI arguments, Superargs makes it easy to provide it during runtime.
Supported by superinterface.ai, supermachine.ai and supercorp.ai.
Installation & Usage
Run Superargs via npx:
npx -y superargs --stdio "npx -y @modelcontextprotocol/server-postgres {{databaseUrl}}"
--stdio: Shell command that runs a stdio MCP server with args to be replaced during runtime in the form{{argName}}.--update-args-tool-name: (Optional) Custom name for the tool used to update/restart args. Defaults toupdate_args.
Args
Args in the --stdio command are denoted by {{argName}}. For example:
npx -y superargs --stdio "GITHUB_PERSONAL_ACCESS_TOKEN={{githubToken}} npx -y @modelcontextprotocol/server-github"
In this command:
{{githubToken}}is an arg that can be set at runtime using theupdate_argstool (or a custom tool name if specified).
Once Started
-
Initial state: At the start, the MCP server will not have any args set.
-
If underlying MCP stdio server can start without args, it will try to start without them to provide tools lists and other MCP server functions. If it can work without args, the only difference will be that it will have an additional update_args tool to update args.
-
If the server requires args to start, it will not start until the args are set and it will only have the update_args tool. All other MCP server functions will either return an empty list or an error message.
-
When update_args is used: The server will restart with the new args and all MCP server functions will be available.
-
Tool to Update Args: By default, named
update_args, allows updating args and restarting the child MCP server.
Examples
Another example with GitHub MCP server:
npx -y superargs --stdio "GITHUB_PERSONAL_ACCESS_TOKEN={{githubToken}} npx -y @modelcontextprotocol/server-github"
And with SQLite MCP server:
npx -y superargs --stdio "uv mcp-server-sqlite --db-path={{dbPath}}"
Example with MCP Inspector
-
Run MCP Inspector with Superargs:
npx @modelcontextprotocol/inspector npx -y superargs --stdio "npx -y @modelcontextprotocol/server-postgres {{databaseUrl}}"This command starts Superargs and connects it to MCP Inspector, enabling you to manage your PostgreSQL MCP server through the inspector interface.
-
Manage MCP Server:
With MCP Inspector, you can list tools, run prompts, access resources, or perform other MCP actions through Superargs.
安装
npx -y superargs --stdio "npx -y @modelcontextprotocol/server-postgres {{databaseUrl}}"