Skip to content

Built-in Tools

In addition to the tools defined in your config, MCP General provides built-in tools for discovery and initialization.

Available when: No config file is found.

Creates an example config file and agent rule files in the current working directory. The config format is auto-detected based on the project setup. Agent rules instruct AI assistants to use list_namespaces and list_actions for context discovery. Existing rule files are not overwritten.

PropertyValue
Nameinit
ParametersNone
DescriptionCreate an example mcp-general config and agent rules in the project

Files created:

  • Config: mcp-general.config.ts, .js, or .mcp-generalrc.json
  • .amazonq/rules/mcp-general.md
  • .github/instructions/mcp-general.instructions.md
  • .cursor/rules/mcp-general.mdc
  • .gitignore — adds .mcpg (cache directory) if not already present

Available when: A config file is found.

Returns a newline-separated list of all namespace names (with descriptions if provided) from the current config.

PropertyValue
Namelist_namespaces
ParametersNone
DescriptionList all available namespaces with their tools, resources, and prompts counts. Use list_actions to see the specific action names.

Available when: A config file is found.

Returns all tools, resources, and prompts registered under a given namespace.

PropertyValue
Namelist_actions
Parametersnamespace (string) — The namespace to list actions for
DescriptionList all tools, resources, and prompts for a namespace
[tools] exampleui_get_components — All available components
[tools] exampleui_get_styles — https://example.com/bla.md
[resources] exampleui_readme — https://example.com/README.md