Bounty #1200: MCP Server for Tolk Compiler#1214
Open
izzzzzi wants to merge 1 commit intoton-society:mainfrom
Open
Bounty #1200: MCP Server for Tolk Compiler#1214izzzzzi wants to merge 1 commit intoton-society:mainfrom
izzzzzi wants to merge 1 commit intoton-society:mainfrom
Conversation
|
我来认领!熟悉 Tolk 编译器和 MCP 协议。SOL 钱包:9xsvaaYbVrRuMu6JbXq5wVY9tDAz5S6BFzmjBkUaM865 |
🦞 Claiming this bounty!Developer: @zhuzhushiwojia ETA: PR within 72 hours Experienced with MCP servers and TON ecosystem. Ready to deliver! 🚀 |
🎯 Bounty ClaimI am claiming this bounty. Wallet Address
PlanWill implement MCP Server for Tolk Compiler:
Starting work immediately. ETA: 4-6 days. cc: @ton-society |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Submission for Bounty #1200
Repository: https://github.com/izzzzzi/izTolkMcp
npm: https://www.npmjs.com/package/iz-tolk-mcp
Implementation
Full MCP server for the Tolk compiler wrapping
@ton/tolk-js, published to npm asiz-tolk-mcp.4 Tools:
get_compiler_version— returns Tolk compiler versioncompile_tolk— compiles Tolk source code to Fift + BoC with all compiler options (optimization level, stack comments). Supports multi-file contracts withsourcesmap and automatic@stdlib/*resolutioncheck_tolk_syntax— quick syntax/type validation without full output, for faster iterationgenerate_deploy_link— computes deterministic contract address and generateston://deeplinks and Tonkeeper URLs for wallet deployment6 Resources:
tolk://docs/language-guide— complete Tolk language syntax referencetolk://docs/stdlib-reference— standard library modules and functionstolk://docs/changelog— compiler version history from v0.6 to latesttolk://docs/tolk-vs-func— FunC to Tolk migration guidetolk://examples/counter— counter contract exampletolk://examples/jetton— Jetton (fungible token) minter example3 Prompts:
write_smart_contract— guided workflow that injects language reference + relevant example, then iteratively compiles until error-freereview_smart_contract— security-focused review covering access control, gas management, integer overflow, TON-specific attack vectorsdebug_compilation_error— diagnoses compilation errors against the language reference and provides fixesQuality
fsReadCallbackQuick Start
Configuration for any MCP client:
{ "mcpServers": { "tolk": { "command": "npx", "args": ["-y", "iz-tolk-mcp"] } } }Beyond the Base Requirements
The bounty asks for
getTolkCompilerVersion()andrunTolkCompiler(). This implementation adds:check_tolk_syntaxtool for faster development iterationgenerate_deploy_linktool that computes contract addresses and generates wallet-ready deployment deeplinks@stdlib/*auto-resolutionWallet address for reward
UQBGH3T-zRXKgfKEZDysIiQSKfg1lIS0nwyZp5V5El2w1UDp