ImOrenge/MslMcpServer1.0.0
If you are the rightful owner of MslMcpServer1.0.0 and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The MSL MCP Server is an AI-powered platform designed for generating and analyzing Macro Scripting Language (MSL) scripts, with integration of OpenAI's advanced models.
parse_msl
MSL script parsing and syntax analysis
generate_msl
Generates MSL scripts from natural language
validate_msl
Validates scripts and detects errors
optimize_msl
Optimizes script performance
explain_msl
Provides educational explanations of scripts
msl_examples
Offers categorized examples
MSL MCP Server
๐ฎ MSL (Macro Scripting Language) MCP Server with OpenAI Integration
AI ๊ธฐ๋ฐ MSL ์คํฌ๋ฆฝํธ ์์ฑ ๋ฐ ๋ถ์์ ์ํ Model Context Protocol (MCP) ์๋ฒ์ ๋๋ค.
โจ ์ฃผ์ ๊ธฐ๋ฅ
๐ค AI ๊ธฐ๋ฐ MSL ์์ฑ
- ์์ฐ์ด โ MSL ๋ณํ: "Qํค ๋๋ฅด๊ณ 500ms ํ Wํค ๋๋ฅด๊ธฐ" โ
Q,(500),W
- OpenAI GPT-4o ํตํฉ: ์ต์ AI ๋ชจ๋ธ๋ก ์ ํํ ์คํฌ๋ฆฝํธ ์์ฑ
- ๊ฒ์ ์ปจํ ์คํธ ์ธ์: FPS, MMORPG, RTS ๋ฑ ๊ฒ์๋ณ ์ต์ ํ
๐ ์คํฌ๋ฆฝํธ ๋ถ์ ๋ฐ ๊ฒ์ฆ
- ๊ตฌ๋ฌธ ๋ถ์: MSL ๋ฌธ๋ฒ ๊ฒ์ฆ ๋ฐ AST ์์ฑ
- ์ฑ๋ฅ ๋ถ์: ์คํ ์๊ฐ ๋ฐ ๋ณต์ก๋ ๊ณ์ฐ
- ๋ณด์ ๊ฒ์ฆ: ์ ์ฌ์ ์ํ ์์ ํ์ง
โก ์ต์ ํ ๋ฐ ๊ต์ก
- ์๋ ์ต์ ํ: ์คํฌ๋ฆฝํธ ์ฑ๋ฅ ํฅ์ ๋ฐ ์ค๋ณต ์ ๊ฑฐ
- ๊ต์ก์ ์ค๋ช : ์ด๋ณด์๋ฅผ ์ํ ์์ธํ ์คํฌ๋ฆฝํธ ํด์ค
- ์นดํ ๊ณ ๋ฆฌ๋ณ ์์ : ์์ค๋ณ, ๊ฒ์๋ณ ํ์ต ์๋ฃ
๐ ๏ธ MCP ๋๊ตฌ
๋๊ตฌ | ์ค๋ช | AI ํ์ฉ |
---|---|---|
parse_msl | MSL ์คํฌ๋ฆฝํธ ํ์ฑ ๋ฐ ๊ตฌ๋ฌธ ๋ถ์ | โ |
generate_msl | ์์ฐ์ด๋ก MSL ์คํฌ๋ฆฝํธ ์์ฑ | โ |
validate_msl | ์คํฌ๋ฆฝํธ ๊ฒ์ฆ ๋ฐ ์ค๋ฅ ํ์ง | โ |
optimize_msl | ์คํฌ๋ฆฝํธ ์ต์ ํ | โ |
explain_msl | ์คํฌ๋ฆฝํธ ๊ต์ก์ ์ค๋ช | โ |
msl_examples | ์นดํ ๊ณ ๋ฆฌ๋ณ ์์ ์ ๊ณต | โ |
๐ ๋น ๋ฅธ ์์
1. ํ์ ์๊ตฌ์ฌํญ
- Python 3.11+
- OpenAI API ํค
2. ์ค์น ๋ฐ ์คํ
# ์์กด์ฑ ์ค์น
pip install -r requirements.txt
# ํ๊ฒฝ๋ณ์ ์ค์
export OPENAI_API_KEY="your-api-key-here"
# ์๋ฒ ์คํ
python server.py
3. Docker ์คํ
# ์ด๋ฏธ์ง ๋น๋
docker build -t msl-mcp-server .
# ์ปจํ
์ด๋ ์คํ
docker run -e OPENAI_API_KEY="your-api-key" msl-mcp-server
๐ ์ฌ์ฉ ์์
MSL ์คํฌ๋ฆฝํธ ์์ฑ
# ์์ฐ์ด๋ก ๋งคํฌ๋ก ์์ฑ
generate_msl(
prompt="๊ณต๊ฒฉํค Q๋ฅผ ๋๋ฅด๊ณ 500ms ํ ์คํฌํค W๋ฅผ ๋๋ฅด๋ ๋งคํฌ๋ก",
game_context="MMORPG",
complexity="medium"
)
์คํฌ๋ฆฝํธ ์ต์ ํ
# ๊ธฐ์กด ์คํฌ๋ฆฝํธ ์ต์ ํ
optimize_msl(
script="Q,(500),W,(500),E,(500),R",
level="standard",
target="performance"
)
์คํฌ๋ฆฝํธ ์ค๋ช
# ๊ต์ก์ ์ค๋ช
์์ฑ
explain_msl(
script="Q+Shift,(100),W*3",
audience="beginner",
include_tips=True
)
๐ฏ MSL ์ธ์ด ํน์ง
๊ธฐ๋ณธ ์ฐ์ฐ์
,
(์์ฐจ): ํค๋ฅผ ์์๋๋ก ์คํ+
(๋์): ํค๋ฅผ ๋์์ ์คํ>
(ํ๋): ํค๋ฅผ ๋๋ฅด๊ณ ์๊ธฐ|
(๋ณ๋ ฌ): ๋ณ๋ ฌ ์คํ~
(ํ ๊ธ): ํ ๊ธ ๋์*
(๋ฐ๋ณต): ๋ฐ๋ณต ์คํ&
(์ฐ์): ์ฐ์ ์คํ
ํ์ด๋ฐ ์ ์ด
(ms)
: ์ง์ฐ ์๊ฐ[ms]
: ํ๋ ์๊ฐ{ms}
: ๊ฐ๊ฒฉ ์๊ฐ<ms>
: ํ์ด๋ ์๊ฐ
๊ณ ๊ธ ๊ธฐ๋ฅ
$var
: ๋ณ์ ์ฌ์ฉ@(x,y)
: ๋ง์ฐ์ค ์ขํwheel+/-
: ๋ง์ฐ์ค ํ
โ๏ธ ์ค์
ํ๊ฒฝ๋ณ์
# OpenAI ์ค์
MSL_OPENAI_API_KEY=your_api_key
MSL_OPENAI_MODEL=gpt-4o
MSL_OPENAI_MAX_TOKENS=2000
# ์๋ฒ ์ค์
MSL_DEBUG=false
MSL_MAX_CONCURRENT_REQUESTS=10
๐ง ๊ฐ๋ฐ
ํ๋ก์ ํธ ๊ตฌ์กฐ
mslmcpserver/
โโโ server.py # MCP ์๋ฒ ๋ฉ์ธ
โโโ msl/ # MSL ํ์/AST
โโโ tools/ # MCP ๋๊ตฌ๋ค
โโโ ai/ # OpenAI ํตํฉ
โโโ config/ # ์ค์ ๊ด๋ฆฌ
โโโ requirements.txt # ์์กด์ฑ
โโโ Dockerfile # Docker ์ค์
โโโ smithery.yaml # Smithery ๋ฐฐํฌ
๊ฐ๋ฐ ํ๊ฒฝ ์ค์
# ๊ฐ๋ฐ ์์กด์ฑ ์ค์น
pip install -r requirements.txt
# ํ
์คํธ ์คํ
pytest
# ์ฝ๋ ํฌ๋งทํ
black .
flake8 .
๐ ๋ฌธ์
- MSL ์ธ์ด ๊ฐ์ด๋:
- API ์ฐธ์กฐ:
- ๊ฐ๋ฐ ๊ฐ์ด๋:
๐ค ๊ธฐ์ฌ
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
๐ ๋ผ์ด์ ์ค
MIT License - ์์ธํ ๋ด์ฉ์ ํ์ผ์ ์ฐธ์กฐํ์ธ์.
๐ ์ง์
- Issues: GitHub Issues
- Documentation: Wiki
- Discussions: GitHub Discussions
๐ฏ ํ๋ก์ ํธ ์ ๋ณด
- ๋ฒ์ : 1.0.0
- ์ ์ฅ์: MslMcpServer1.0.0
- ๋ผ์ด์ ์ค: MIT
- ์ธ์ด: Python 3.11+
Made with โค๏ธ for the gaming community