MCP (Meta-Powered Coding)
knowledge skill
Implements the Model Context Protocol to connect LLMs to external data sources and tools. The agent configures MCP servers and generates the JSON-RPC configuration files required for tool discovery and resource access.
Worked examples
- {"input": {"server_type": "filesystem", "connection_params": {"args": ["npx", "-y", "@modelcontextprotocol/server-filesystem", "/Users/dev/project"]}, "allowed_resources": ["/Users/dev/project/src"]}, "output": {"mcp_config_json": "{\"mcpServers\": {\"filesystem\": {\"command\": \"npx\", \"args\": [\"-y\", \"@modelcontextprotocol/server-filesystem\", \"/Users/dev/project\"]}}}", "tool_definitions": ["read_file", "write_file", "list_directory"]}}
- {"input": {"server_type": "postgres", "connection_params": {"connection_string": "postgresql://user:pass@localhost:5432/db"}, "allowed_resources": ["public.users", "public.orders"]}, "output": {"mcp_config_json": "{\"mcpServers\": {\"postgres\": {\"env\": {\"DATABASE_URL\": \"postgresql://user:pass@localhost:5432/db\"}, \"command\": \"npx\", \"args\": [\"-y\", \"@modelcontextprotocol/server-postgres\"]}}}", "tool_definitions": ["query", "list_tables", "describe_table"]}}
Input
- server_type: string: the MCP server implementation (e.g., postgres, filesystem, slack)
- connection_params: object: environment variables and endpoint URLs for the server
- allowed_resources: array: specific paths or tables the agent is permitted to access
Output
- mcp_config_json: string: the formatted JSON configuration for the MCP client
- tool_definitions: array: list of JSON-RPC tool schemas exposed by the server
Details
- Skill type: knowledge skill
- Safety level: safe_public_research
- Version: 1.0.0