Skip to main content

Integrate Method

Use the API and MCP contract. MCP 5.2 reads saved methods and changes their names. Use Method CLI to author and save methods.
  1. Connect to https://mcp.withmethod.ai/mcp with OAuth discovery, PKCE, and token refresh.
  2. Call list_methods, then get_method with the selected method_id.
  3. Call get_method_source to read the saved source. Preserve its exact text when checking the returned hash.
  4. Save the source as task.method. Run method run task.method with the required inputs and resources.
  5. Check the saved run result. A source hash does not prove that the method ran correctly.
Use get_agent_prompt only for general agent instructions. A prompt alone does not run Method’s separate actions and checks. The old workflow tool names remain available for existing clients.