|
|
| Line 1: |
Line 1: |
| <noinclude>
| |
| Template for storing MCP tools using Cargo.
| |
|
| |
| {{#cargo_declare:
| |
| _table = Tools
| |
| |ToolName = String
| |
| |Description = Text
| |
| |RepoURL = URL
| |
| |Author = String
| |
| |ToolType = String
| |
| }}
| |
|
| |
| <templatedata>
| |
| {
| |
| "description": "Registers an MCP tool in the shared tools database.",
| |
| "params": {
| |
| "ToolName": {"label":"Tool name","type":"string","required":true},
| |
| "Description": {"label":"Description","type":"string","required":true},
| |
| "RepoURL": {"label":"Repository URL","type":"string"},
| |
| "Author": {"label":"Author","type":"string"},
| |
| "ToolType": {"label":"Tool type","type":"string"}
| |
| }
| |
| }
| |
| </templatedata>
| |
| </noinclude>
| |
|
| |
| <includeonly>
| |
| {{#cargo_store: | | {{#cargo_store: |
| _table = Tools | | _table = TestCargo |
| |ToolName = {{{ToolName|}}} | | |Name=Hello |
| |Description = {{{Description|}}}
| |
| |RepoURL = {{{RepoURL|}}}
| |
| |Author = {{{Author|}}}
| |
| |ToolType = {{{ToolType|}}}
| |
| }} | | }} |
| | | Stored |
| '''Tool:''' {{{ToolName}}}
| |
| '''Description:''' {{{Description}}}
| |
| </includeonly>
| |