diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b510f3e..3163cc0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,7 @@ name: Test on: pull_request: push: - branches-ignore: + branches: - main jobs: diff --git a/docs/src/app/mcp/page.tsx b/docs/src/app/mcp/page.tsx new file mode 100644 index 0000000..11df87c --- /dev/null +++ b/docs/src/app/mcp/page.tsx @@ -0,0 +1,93 @@ +export default function McpPage() { + return ( +
+ Use the PolicyEngine API as an MCP server for AI assistants like Claude. +
+ +
+ The Model Context Protocol (MCP) is a standard for AI assistants to interact with external tools and data sources.
+ The PolicyEngine API exposes all endpoints as MCP tools at /mcp,
+ allowing AI assistants to calculate taxes and benefits, run economic impact analyses, and query policy data.
+
+ Run this command: +
+
+{`claude mcp add --transport http policyengine https://v2.api.policyengine.org/mcp/`}
+
+
+ Add this to your claude_desktop_config.json file:
+
+{`{
+ "mcpServers": {
+ "policyengine": {
+ "type": "url",
+ "url": "https://v2.api.policyengine.org/mcp/"
+ }
+ }
+}`}
+
+ + All API endpoints are exposed as MCP tools. Key capabilities include: +
++ Once connected, you can ask Claude things like: +
+