Local tool use with gpt-oss in Python or TypeScript
uv pip install lmstudio
uv pip install lmstudio
~/.lmstudio/mcp.json
## Policy Definitions
### Key Terms
**[Term 1]**: [Definition]
**[Term 2]**: [Definition]
**[Term 3]**: [Definition]
## Content Classification Rules
### VIOLATES Policy (Label: 1)
Content that:
Return exactly one character: 0 or 1.
Do not include any explanation or punctuation.
0 = Content does NOT violate this policy.
1 = Content violates this policy.
# Policy Name
## INSTRUCTIONS
Describe what oss-safeguard should do and how to respond.
## DEFINITIONS
Clarify key terms and context.
## VIOLATES (1)
Describe behaviors or content that should be
uv pip install vllm==0.10.2 –torch-backend=auto
vllm serve openai/gpt-oss-safeguard-120b
lms get openai/gpt-oss-safeguard-20b
lms get openai/gpt-oss-safeguard-120b
ollama run gpt-oss-safeguard:20b
transformers chat localhost:8000 –model-name-or-path openai/gpt-oss-safeguard-20b