원클릭으로
molclaw-file-transfer
Implement data transmission between the local computer and the MCP Server using Base64 encoding
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Implement data transmission between the local computer and the MCP Server using Base64 encoding
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Predict the ADMET (absorption, distribution, metabolism, excretion, and toxicity) properties of the input molecules.
Predict binding affinity between target protein sequence and small molecule SMILES using Boltz-2.
Predict protein structures with Chai-1 from sequence or FASTA input and return model scoring summaries.
Chroma toolkit skill covering chroma_monomer for single-chain generation, chroma_complex for multi-chain assembly generation, and chroma_symmetry for symmetry-constrained protein design.
Retrieve SMILES strings from PubChem database using compound names.
Generate new molecules de novo.
| name | molclaw-file-transfer |
| description | Implement data transmission between the local computer and the MCP Server using Base64 encoding |
| license | MIT license |
| metadata | {"skill-author":"PJLab"} |
Note:
molclaw-file-transfer before execution.molclaw-pdbfixer before execution.molclaw-scp-server to complete tool invocation.Example code:
import base64
client = DrugSDAClient("https://scp.intern-ai.org.cn/api/v1/mcp/2/DrugSDA-Tool")
if not await client.connect():
print("connection failed")
return
## Convert local file to base64 string
local_file = "/path/a.txt" #Input local file path
with open(local_file, "rb") as f:
file_content = f.read()
file_base64_string = base64.b64encode(file_content).decode('utf-8')
## Call tool base64_to_server_file to save base64 string as server file
response = await client.session.call_tool(
"base64_to_server_file",
arguments={
"file_name": "a.txt",
"file_base64_string": file_base64_string
}
)
result = client.parse_result(response)
save_file = result["save_file"] #Server file path after transfer
await client.disconnect()
Example code:
import base64
client = DrugSDAClient("https://scp.intern-ai.org.cn/api/v1/mcp/2/DrugSDA-Tool")
if not await client.connect():
print("connection failed")
return
## Call tool server_file_to_base64 to convert server file to base64 string
response = await client.session.call_tool(
"server_file_to_base64",
arguments={
"file_path": "/path/a.txt" #Input server file path
}
)
result = client.parse_result(response)
base64_string = result["base64_string"]
file_name = result["file_name"]
## Convert base64 string to local file
file_data = base64.b64decode(base64_string)
local_file_path = "/path/" + file_name
with open(local_file_path, "wb") as f:
f.write(file_data)
await client.disconnect()