baidubce/app-builder
appbuilder-sdk, 千帆AppBuilder-SDK帮助开发者灵活、快速的搭建AI原生应用
76a7316c0671appbuilder1.1.3 in java/pom.xmlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 318 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 4 of 16 tools, prompts and resources could not be followed through the code
- 2 places in the code register tools whose names are computed at run time; how many tools that makes cannot be read from the code
- 2 tools, prompts and resources registered only in the repository's tests are not counted on this page
Top risks in plain words
- HIGHTool
upload_documentreads or writes any file path by design: an agent steered by prompt injection can use it that way. - HIGH1 production dependency has known vulnerabilities (worst: high).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it only the folder it needs
upload_documentcan read or write any file path. Mount a single project folder, read-only where you can. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
upload_document, switch them off. - Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
mcp1.28.1 or later. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 13 tools, 1 resource. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
upload_documentAIsearch, describe_knowledge_base, list_apps, list_documents, list_knowledge_bases, upload_documentNo tool was seen to: start other programs on the machine; connect to the internet or other hosts; read passwords, tokens or keys; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files1 tool · upload_document
Not all three are present in the tools the scanner traced.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (14: 13 tools, 1 resource)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
upload_documenttool Upload documents to a KnowledgeBase.FilesEnv varsoutside textReads/writes files
Upload documents to a KnowledgeBase.
Args:
id: KnowledgeBase ID
file_path: Path to the file to upload
template: Optional processing template to use. Options:
- ppt: PPT slides
- paper: Academic papers
- resume: Resume documents
- default: Default configuration(name computed at run time)resource
No description.
(name computed at run time)tool
No description.
AIsearchtool 执行搜索。Env vars
执行搜索。
Args:
query (str): 搜索请求。
stream (bool, optional): 是否以流的形式接收响应数据。默认为False。
instruction (Instruction, optional): 指令信息对象。默认为None。
temperature (float, optional): 温度参数,控制生成文本的随机性。默认为1e-10。
top_p (float, optional): 累积概率阈值,用于控制生成文本的多样性。默认为1e-10。
search_top_k (int, optional): 搜索候选结果的数量。默认为4。
hide_corner_markers (bool, optional): 是否隐藏响应中的边界标记。默认为True。
Returns:
Message: 处理后的信息对象。
Raises:
AppBuilderServerException: 如果输入信息或指令过长,将抛出此异常。create_conversationtool Create a new conversation session for a specific AppBuilder application.
Create a new conversation session for a specific AppBuilder application.
Args:
app_id (str): The unique identifier of the target application
Returns:
str: A unique conversation identifier that can be used for subsequent interactions
Example:
conversation_id = create_conversation("fcc766c4-2bf2-46a3-a63b-1341b05bac49")create_knowledge_basetool Create a new KnowledgeBase.
Create a new KnowledgeBase.
Args:
name: Name of the KnowledgeBase
description: Description of the KnowledgeBasedescribe_knowledge_basetool Get details of a specific KnowledgeBase.Env vars
Get details of a specific KnowledgeBase.
Args:
id: ID of the KnowledgeBasehandlertool
No description.
list_appstool Retrieve a list of all available AppBuilder applications.
Env vars
Retrieve a list of all available AppBuilder applications.
Returns:
List[Dict]: A list of dictionaries containing app details with the following keys:
- id (str): Unique identifier of the app
- name (str): Name of the app
- description (str): Description of the app
- appType (str): Type of the app
- isPublished (bool): Publication status of the app
- updateTime (str): Last update timestamplist_documentstool Get all documents in a KnowledgeBase.Env vars
Get all documents in a KnowledgeBase.
Args:
id: Knowledge base IDlist_knowledge_basestool List all KnowledgeBase.Env vars
List all KnowledgeBase.
Args:
max_keys: Maximum number of KnowledgeBase to return (default: 10)query_knowledge_basetool Query content from KnowledgeBases.
Query content from KnowledgeBases.
Args:
query: Search query string
id_list: List of KnowledgeBase ID to search inruntool Execute a conversation query with a specific AppBuilder application.
Execute a conversation query with a specific AppBuilder application.
Args:
app_id (str): The unique identifier of the target application
conversation_id (str): The conversation session identifier
query (str): The input text/query to send to the application
Returns:
str: The response content from the conversation
Example:
response = run_conversation(
"fcc766c4-2bf2-46a3-a63b-1341b05bac49",
"conv-123",
"今天北京天气如何"
)tool_fntool
No description.
Text the model reads (14)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
AIsearch tool
执行搜索。
Args:
query (str): 搜索请求。
stream (bool, optional): 是否以流的形式接收响应数据。默认为False。
instruction (Instruction, optional): 指令信息对象。默认为None。
temperature (float, optional): 温度参数,控制生成文本的随机性。默认为1e-10。
top_p (float, optional): 累积概率阈值,用于控制生成文本的多样性。默认为1e-10。
search_top_k (int, optional): 搜索候选结果的数量。默认为4。
hide_corner_markers (bool, optional): 是否隐藏响应中的边界标记。默认为True。
Returns:
Message: 处理后的信息对象。
Raises:
AppBuilderServerException: 如果输入信息或指令过长,将抛出此异常。list_apps tool
Retrieve a list of all available AppBuilder applications.\x0d
\x0d
Returns:\x0d
List[Dict]: A list of dictionaries containing app details with the following keys:\x0d
- id (str): Unique identifier of the app\x0d
- name (str): Name of the app\x0d
- description (str): Description of the app\x0d
- appType (str): Type of the app\x0d
- isPublished (bool): Publication status of the app\x0d
- updateTime (str): Last update timestampcreate_conversation tool
Create a new conversation session for a specific AppBuilder application.\x0d
\x0d
Args:\x0d
app_id (str): The unique identifier of the target application\x0d
\x0d
Returns:\x0d
str: A unique conversation identifier that can be used for subsequent interactions\x0d
\x0d
Example:\x0d
conversation_id = create_conversation("fcc766c4-2bf2-46a3-a63b-1341b05bac49")run tool
Execute a conversation query with a specific AppBuilder application.\x0d
\x0d
Args:\x0d
app_id (str): The unique identifier of the target application\x0d
conversation_id (str): The conversation session identifier\x0d
query (str): The input text/query to send to the application\x0d
\x0d
Returns:\x0d
str: The response content from the conversation\x0d
\x0d
Example:\x0d
response = run_conversation(\x0d
"fcc766c4-2bf2-46a3-a63b-1341b05bac49",\x0d
"conv-123",\x0d
"今天北京天气如何"\x0d
)create_knowledge_base tool
Create a new KnowledgeBase.
Args:
name: Name of the KnowledgeBase
description: Description of the KnowledgeBasedescribe_knowledge_base tool
Get details of a specific KnowledgeBase.
Args:
id: ID of the KnowledgeBaselist_knowledge_bases tool
List all KnowledgeBase.
Args:
max_keys: Maximum number of KnowledgeBase to return (default: 10)query_knowledge_base tool
Query content from KnowledgeBases.
Args:
query: Search query string
id_list: List of KnowledgeBase ID to search inupload_document tool
Upload documents to a KnowledgeBase.
Args:
id: KnowledgeBase ID
file_path: Path to the file to upload
template: Optional processing template to use. Options:
- ppt: PPT slides
- paper: Academic papers
- resume: Resume documents
- default: Default configurationlist_documents tool
Get all documents in a KnowledgeBase.
Args:
id: Knowledge base ID(name computed at run time) tool
handler tool
tool_fn tool
(name computed at run time) resource
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 12 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 12 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file path HIGH1 finding in upload_document
- Requests any addressNo tool sends a request to an address the caller supplies — 12 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 12 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 14 capabilities; 10 more call code the scanner could not follow, where it may happen
- Tools that touch files1 of 14 capabilities touch files; 9 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 14 capabilities; 10 more call code the scanner could not follow, where it may happen
Where the code is: 14 handlers in 4 files at commit 76a7316c0671
python/mcp_server/ai_search/ai_search_server.pyAIsearchpython/mcp_server/app/app_server.pylist_apps, create_conversation, runpython/mcp_server/knowledge_base/knowledge_base_server.pycreate_knowledge_base, describe_knowledge_base, list_knowledge_bases, query_knowledge_base, upload_document, list_documentspython/mcp_server/server.py(name computed at run time), (name computed at run time), handler, tool_fn
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests4 manifests: docs/Tools/SphinxSh/requirements.txt, go/appbuilder/go.mod, java/pom.xml, requirements.txt
- Lockfiles checked against OSV3 files resolved and checked against the OSV database; 3 not resolved: docs/Tools/SphinxSh/requirements.txt: 3 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile; requirements.txt: 17 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile
- Known vulnerabilities in production dependencies HIGH1 production package with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionmcp ==1.3.0
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 14 capabilities; 10 more call code the scanner could not follow, where it may happen
- Environment variables6 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (1 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
mcpPyPI 1.3.0 HIGH 10 advisories 1.9.41.10.01.23.0+2 more
- HIGHGHSA-vj7q-gjh5-988w CVE-2026-59950 PYSEC-2026-3483MCP Python SDK: WebSocket server transport does not support Host/Origin validation
- HIGHGHSA-jpw9-pfvf-9f58 CVE-2026-52869 PYSEC-2026-3482MCP Python SDK: HTTP transports serve session requests without verifying the authenticated principal
- HIGHGHSA-9h52-p55h-vw2f CVE-2025-66416 PYSEC-2026-1617Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default
- HIGHGHSA-j975-95f5-7wqh CVE-2025-53365 PYSEC-2026-1618MCP Python SDK has Unhandled Exception in Streamable HTTP Transport, Leading to Denial of Service
- HIGHGHSA-3qhf-m339-9g5v CVE-2025-53366 PYSEC-2026-1616MCP Python SDK vulnerability in the FastMCP Server causes validation error, leading to DoS
- MEDIUMPYSEC-2026-1616 CVE-2025-53366 GHSA-3qhf-m339-9g5vMCP Python SDK vulnerability in the FastMCP Server causes validation error, leading to DoS
- MEDIUMPYSEC-2026-3482 CVE-2026-52869 GHSA-jpw9-pfvf-9f58MCP Python SDK: HTTP transports serve session requests without verifying the authenticated principal
- MEDIUMPYSEC-2026-1618 CVE-2025-53365 GHSA-j975-95f5-7wqhMCP Python SDK has Unhandled Exception in Streamable HTTP Transport, Leading to Denial of Service
- MEDIUMPYSEC-2026-1617 CVE-2025-66416 GHSA-9h52-p55h-vw2fModel Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default
- MEDIUMPYSEC-2026-3483 CVE-2026-59950 GHSA-vj7q-gjh5-988wMCP Python SDK: WebSocket server transport does not support Host/Origin validation
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | mcp ==1.3.0 |
| Servers in the code | 4 (AB Component Server, AppBuilder App MCP Server, AppBuilder KnowledgeBase MCP Server, weather) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-04-26 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 3 catalogs (awesome_habitoai, glama, mcp_toplist) |
|---|---|
| License | Apache-2.0 |
| Created | 2023-12-05 |
| Topics | ai-native erniebot large-language-models llm llms qianfan agent appbuilder assistant-api rag |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.