Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions .agents/plugins/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,27 @@
},
"plugins": [
{
"name": "meter",
"source": { "source": "local", "path": "./" },
"policy": { "installation": "AVAILABLE", "authentication": "ON_INSTALL" },
"name": "meter-fleet",
"source": {
"source": "local",
"path": "./fleet"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_INSTALL"
},
"category": "Productivity"
},
{
"name": "meter-rides",
"source": {
"source": "local",
"path": "./rides"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_INSTALL"
},
"category": "Productivity"
}
]
Expand Down
14 changes: 10 additions & 4 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@
"email": "jonathan@welcome.meterapp.co",
"url": "https://www.meterapp.co"
},
"description": "Plugins by Meter. Meter: the taxi meter and fleet platform, for AI agents. Ride booking for riders, fleet insights, onboarding, safe settings changes and driver self-service over the hosted MCP server.",
"description": "Plugins by Meter, the taxi meter and fleet platform: Meter for Drivers & Fleets and Meter Rides, one plugin per hosted MCP server.",
"plugins": [
{
"name": "meter",
"source": "./",
"description": "Give your agent the signed-in person's view of Meter: book and track your own rides with a preview and your confirmation, plus fleets, trips, bookings, drivers, vehicles, earnings and accounting and confirmable settings changes. Six skills plus the hosted MCP server with OAuth sign-in; no API keys.",
"name": "meter-fleet",
"source": "./fleet",
"description": "See your fleet's trips, bookings, drivers, vehicles, earnings and accounting, or a driver's own trips and pay, and change settings with a preview and your confirmation. Five skills plus the hosted Meter for Drivers & Fleets server; sign in with your Meter account.",
"category": "productivity"
},
{
"name": "meter-rides",
"source": "./rides",
"description": "Book, follow and cancel your own taxi rides with a price preview and your confirmation, paid on Meter's checkout page, never in the chat. Two skills plus the hosted Meter Rides server; sign in with your Meter account.",
"category": "productivity"
}
]
Expand Down
19 changes: 0 additions & 19 deletions .claude-plugin/plugin.json

This file was deleted.

50 changes: 0 additions & 50 deletions .codex-plugin/plugin.json

This file was deleted.

44 changes: 7 additions & 37 deletions .github/workflows/endpoint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,49 +13,19 @@ permissions:

jobs:
mcp:
name: MCP endpoint (${{ matrix.server }})
name: MCP endpoint (${{ matrix.plugin }})
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
server: [meter-fleet, meter-rides]
plugin: [fleet, rides]
steps:
- uses: actions/checkout@v7

- name: The URL in .mcp.json answers with the OAuth challenge
run: |
url="$(node -p "require('./.mcp.json').mcpServers['${{ matrix.server }}'].url")"
echo "checking $url"
# No token here, so 401 is the healthy answer: the server is up and
# demanding authentication. Hosts find the sign-in through the
# resource_metadata pointer in WWW-Authenticate, so its absence is
# an outage for every OAuth client even if the status is right.
headers="$(mktemp)"
status="$(curl -sS -o /dev/null -D "$headers" -w '%{http_code}' -X POST "$url" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' || echo 000)"
echo "status $status"
case "$status" in
401)
grep -i '^www-authenticate:.*resource_metadata=' "$headers" \
|| { echo "401 without a resource_metadata challenge" >&2; cat "$headers" >&2; exit 1; }
echo "endpoint is up and advertises OAuth discovery, as expected" ;;
*) echo "unexpected status $status" >&2; cat "$headers" >&2; exit 1 ;;
esac
- uses: actions/setup-python@v6
with:
python-version: "3.12"

- name: The protected-resource metadata parses
run: |
# RFC 9728 section 3.1: each server's metadata sits at its path suffix.
metadata="$(node -p "const u = new URL(require('./.mcp.json').mcpServers['${{ matrix.server }}'].url); u.origin + '/.well-known/oauth-protected-resource' + u.pathname")"
# Saved to a file, then parsed: a response is never piped into an interpreter.
body="$(mktemp)"
curl -sSf -o "$body" "$metadata"
node -e '
const doc = JSON.parse(require("fs").readFileSync(process.argv[1], "utf8"));
if (!Array.isArray(doc.authorization_servers) || doc.authorization_servers.length === 0) {
console.error("no authorization_servers in", doc);
process.exit(1);
}
console.log("authorization server:", doc.authorization_servers[0]);' "$body"
- name: The server in .mcp.json answers with the OAuth challenge and metadata
run: python3 scripts/check_endpoint.py "${{ matrix.plugin }}"
16 changes: 10 additions & 6 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,25 @@ jobs:
run: |
npm install --global @anthropic-ai/claude-code
claude plugin validate . --strict
claude plugin validate .claude-plugin/plugin.json --strict
claude plugin validate ./fleet --strict
claude plugin validate ./rides --strict

- name: Codex installs the plugin by name
- name: Codex installs each plugin by name
run: |
npm install --global @openai/codex
CODEX_HOME="$(mktemp -d)"
export CODEX_HOME
codex plugin marketplace add . --json
codex plugin list --available --json | tee /tmp/codex-plugins.json
grep -q '"pluginId": "meter@meterapp-meter"' /tmp/codex-plugins.json
codex plugin add meter@meterapp-meter --json
for plugin in meter-fleet meter-rides; do
grep -q "\"pluginId\": \"$plugin@meterapp-meter\"" /tmp/codex-plugins.json
codex plugin add "$plugin@meterapp-meter" --json
done

- name: The skills CLI discovers every skill
run: |
npx -y skills@latest add . --list 2>&1 | tee /tmp/skills.txt
for skill in meter-fleet-insights meter-fleet-onboarding meter-settings-changes meter-driver-personal meter-api-explainer; do
npm install --global skills
skills add . --list 2>&1 | tee /tmp/skills.txt
for skill in meter-fleet-insights meter-fleet-onboarding meter-settings-changes meter-driver-personal meter-api-explainer meter-ride meter-rider-personal; do
grep -q "$skill" /tmp/skills.txt || { echo "missing skill: $skill" >&2; exit 1; }
done
23 changes: 0 additions & 23 deletions .plugin/plugin.json

This file was deleted.

Loading
Loading