Setup guide
Connect Macau Law MCP to ChatGPT or Claude.ai with OAuth, or use a Bearer key in a compatible client. You can then search Macau legislation and open official publications from a conversation.
Before you start
OpenAI documents full custom MCP support on ChatGPT web for eligible Business and Enterprise/Edu users. Pro has limited read/fetch access. Availability depends on your workspace role, permissions and the tools ChatGPT exposes.
In Business workspaces, admins and owners create custom connections. Enterprise and Edu admins can also authorize selected members. Ask your workspace admin for access if the option is missing.
Check current plans and workspace permissions ↗Connect to ChatGPT
Create a free account
Register with Windo-C Accounts and verify your email. If you already have a verified account, continue to step 2.
Get started for free-
Add Macau Law MCP
Open Plugins in ChatGPT web. Select +, choose Add custom MCP server, and enter Macau Law MCP as its name.
MCP server URLhttps://macau-law-mcp.windo-c.com/mcpAuthenticationOAuthUnder Connection, enter the full server URL. Choose OAuth, review ChatGPT’s connection notice, and create the plugin. Complete authorization when prompted.
Using the legacy Apps settings?
If your workspace uses the legacy Apps interface, open Settings → Apps → Advanced settings and enable Developer Mode where available. Return to Apps and choose Create. Enter the same name and URL, select OAuth, and follow the prompts to scan tools and create the app. Workspace admins may manage this in Workspace settings → Apps.
Authorize and start researching
Sign in with your verified Windo-C account and approve access. Start a new chat, type @, and select Macau Law MCP. Try this prompt.
Find Article 1 of the Macau Basic Law and link to the official text.
If you cannot connect
Check that the URL ends in /mcp and that OAuth is selected. If Add custom MCP server is missing or you cannot select the plugin, check your workspace permissions. If authorization expires, sign in and approve access again.
See OpenAI’s connection and testing guide ↗Connect to Claude.ai
On Claude.ai, go to Customize → Connectors → Add → Add custom connector.
Name the connector Macau Law MCP and enter this server URL.
https://macau-law-mcp.windo-c.com/mcpChoose Sign in now and Use Claude’s published identity. Sign in with a verified Windo-C account and approve access.
Enable Macau Law MCP in a chat and try this prompt.
Find Article 1 of the Macau Basic Law and link to the official text.
Connect with a Bearer key
Use a Bearer key for a client that supports remote MCP over Streamable HTTP and can send a custom Authorization header.
- Sign in to Windo-C Accounts with a verified email. If you are new, create an account first. Get started for free
- Under Macau Law MCP · Tool call, select Create key on the Bearer keys page. Open Bearer keys →
- Copy the full key when it appears and store it securely. Each account has one key for this feature. It has no automatic expiry. If you revoke it, update every client that used it.
For examples that use an environment variable, provide the raw key in the environment of the process that connects to the MCP server. Use the variable MACAU_LAW_MCP_TOKEN.
Claude Code
Merge this entry into the project’s .mcp.json and start Claude Code with the environment variable available.
{
"mcpServers": {
"macau-law": {
"type": "http",
"url": "https://macau-law-mcp.windo-c.com/mcp",
"headers": { "Authorization": "Bearer ${MACAU_LAW_MCP_TOKEN}" }
}
}
}
Approve the project server if prompted, then check it with /mcp. Client documentation ↗
Codex
Add this table to ~/.codex/config.toml.
[mcp_servers.macau-law]
url = "https://macau-law-mcp.windo-c.com/mcp"
bearer_token_env_var = "MACAU_LAW_MCP_TOKEN"
Start Codex with the environment variable available and check the connection with /mcp. Client documentation ↗
VS Code
For an editor-managed connection, add this to .vscode/mcp.json. Run MCP: List Servers, start macau-law, and paste the raw key when prompted.
{
"inputs": [
{
"id": "macau-law-token",
"type": "promptString",
"description": "Macau Law MCP Bearer key",
"password": true
}
],
"servers": {
"macau-law": {
"type": "http",
"url": "https://macau-law-mcp.windo-c.com/mcp",
"headers": { "Authorization": "Bearer ${input:macau-law-token}" }
}
}
}
For a native Copilot harness session, put the following in the workspace-root .mcp.json or ~/.copilot/mcp-config.json. Set the environment variable on the machine or container running that session.
{
"mcpServers": {
"macau-law": {
"type": "http",
"url": "https://macau-law-mcp.windo-c.com/mcp",
"headers": { "Authorization": "Bearer ${MACAU_LAW_MCP_TOKEN}" },
"tools": ["*"]
}
}
}
OpenClaw
Merge this into openclaw.json and set the environment variable for the Gateway process. If switching an existing entry from OAuth, remove its auth and oauth fields.
{
"mcp": {
"servers": {
"macau-law": {
"url": "https://macau-law-mcp.windo-c.com/mcp",
"transport": "streamable-http",
"headers": { "Authorization": "Bearer ${MACAU_LAW_MCP_TOKEN}" }
}
}
}
}
Reload the MCP configuration and probe the server with these commands in order. openclaw mcp reload, openclaw mcp probe macau-law. Client documentation ↗
Hermes Agent
Add the entry to ~/.hermes/config.yaml. Set the variable in ~/.hermes/.env or in the environment for the Hermes profile you run.
mcp_servers:
macau-law:
url: "https://macau-law-mcp.windo-c.com/mcp"
headers:
Authorization: "Bearer ${MACAU_LAW_MCP_TOKEN}"
Reload the connection with /reload mcp. Client documentation ↗
DeepSeek Harness
For a current Web or Desktop profile with the built-in MCP manager, append this row to the active profile’s cordis.patch.yml. Use Open configuration file in Settings to find the file. Launch the Harness with the variable available or store it under the matching name in its credential provider.
- insert:
- id: mcp-server-macau-law
name: '@deepseek-ai/dsh-mcp-manager/server'
config:
serverName: macau-law
transport: streamable-http
url: https://macau-law-mcp.windo-c.com/mcp
headers:
Authorization: 'Bearer ${credential:MACAU_LAW_MCP_TOKEN}'
The server’s tools use the prefix mcp__macau-law__. If your build lacks the MCP manager, check the available configuration in the Harness documentation. Client documentation ↗
LiteLLM
Set the variable in the LiteLLM proxy environment and add this entry to its config.yaml. In the UI, select Streamable HTTP and Bearer Token, then enter the raw key.
mcp_servers:
macau_law:
url: "https://macau-law-mcp.windo-c.com/mcp"
transport: http
auth_type: bearer_token
auth_value: os.environ/MACAU_LAW_MCP_TOKEN
Other Streamable HTTP clients
Use the full MCP endpoint and send this header with each MCP request. If the client has a dedicated Bearer Token field, enter the raw key there.
https://macau-law-mcp.windo-c.com/mcp
Authorization: Bearer <key>
Check your connection
Confirm that the client lists the Macau Law MCP tools, then ask it to look up an article.
Find Article 1 of the Macau Basic Law and link to the official text.
If you receive HTTP 401, check that the URL ends in /mcp, your client can read the secret, and the key is still active in Windo-C Accounts. If the tool reports that you have reached your quota, check your account’s allowance.